Skip to content

Commit

Permalink
Only allow migration on paper
Browse files Browse the repository at this point in the history
  • Loading branch information
Joo200 committed Mar 5, 2022
1 parent 54aa62b commit f1d47b0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,10 @@ public void migrateComponents(CommandContext args, Actor sender) throws CommandE
throw new CommandPermissionsException();
}

if (!WorldGuard.getInstance().getPlatform().hasMiniMessage()) {
throw new CommandException("This command is only available when you're using a platform which supports MiniMessage such as Paper.");
}

if (!args.hasFlag('y')) {
throw new CommandException("This command is potentially dangerous.\n" +
"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.");
Expand Down

0 comments on commit f1d47b0

Please sign in to comment.