9
0
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:
SamB440
2023-04-26 13:11:45 +01:00
parent 8118e03bdb
commit fdbfa30e7a

View File

@@ -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.");