Skip to content

Commit f1d47b0

Browse files
committed
Only allow migration on paper
1 parent 54aa62b commit f1d47b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

worldguard-core/src/main/java/com/sk89q/worldguard/commands/region/RegionCommands.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,10 @@ public void migrateComponents(CommandContext args, Actor sender) throws CommandE
11691169
throw new CommandPermissionsException();
11701170
}
11711171

1172+
if (!WorldGuard.getInstance().getPlatform().hasMiniMessage()) {
1173+
throw new CommandException("This command is only available when you're using a platform which supports MiniMessage such as Paper.");
1174+
}
1175+
11721176
if (!args.hasFlag('y')) {
11731177
throw new CommandException("This command is potentially dangerous.\n" +
11741178
"Please ensure you have made a backup of your data, and then re-enter the command with -y tacked on at the end to proceed.");

0 commit comments

Comments
 (0)