mirror of
https://gitlab.com/SamB440/rpgregions-2.git
synced 2025-12-28 03:09:14 +00:00
Make another argument greedy
This commit is contained in:
@@ -331,7 +331,7 @@ public class RPGRegionsCommand {
|
||||
@CommandMethod("rpgregions|rpgr setschematic <region> <schematicName>")
|
||||
public void onAddSchematic(Player player,
|
||||
@Argument("region") ConfiguredRegion region,
|
||||
@Argument("schematicName") String schematicName) {
|
||||
@Argument("schematicName") @Greedy String schematicName) {
|
||||
IntegrationType integrationType = IntegrationType.valueOf(plugin.getConfig().getString("settings.integration.name").toUpperCase());
|
||||
if (integrationType != IntegrationType.WORLDGUARD) {
|
||||
player.sendMessage(ChatColor.RED + "Regeneration only supports WorldGuard integrations.");
|
||||
|
||||
Reference in New Issue
Block a user