From fdbfa30e7aacca21369f2ad69d883e260b0ce97e Mon Sep 17 00:00:00 2001 From: SamB440 Date: Wed, 26 Apr 2023 13:11:45 +0100 Subject: [PATCH] Make another argument greedy --- .../net/islandearth/rpgregions/commands/RPGRegionsCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpgregions/src/main/java/net/islandearth/rpgregions/commands/RPGRegionsCommand.java b/rpgregions/src/main/java/net/islandearth/rpgregions/commands/RPGRegionsCommand.java index 5e777aa..503081a 100644 --- a/rpgregions/src/main/java/net/islandearth/rpgregions/commands/RPGRegionsCommand.java +++ b/rpgregions/src/main/java/net/islandearth/rpgregions/commands/RPGRegionsCommand.java @@ -331,7 +331,7 @@ public class RPGRegionsCommand { @CommandMethod("rpgregions|rpgr setschematic ") 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.");