diff --git a/src/main/java/com/gmail/nossr50/database/commands/McpurgeCommand.java b/src/main/java/com/gmail/nossr50/database/commands/McpurgeCommand.java index 04f6500d7..57631fb37 100644 --- a/src/main/java/com/gmail/nossr50/database/commands/McpurgeCommand.java +++ b/src/main/java/com/gmail/nossr50/database/commands/McpurgeCommand.java @@ -12,7 +12,7 @@ import com.gmail.nossr50.locale.LocaleLoader; public class McpurgeCommand implements CommandExecutor{ @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { - if (CommandHelper.noCommandPermissions(sender, "mcmmo.tools.mcremove")) { + if (CommandHelper.noCommandPermissions(sender, "mcmmo.commands.mcpurge")) { return true; } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index d6deb8887..18eb967f1 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -344,6 +344,7 @@ permissions: mcmmo.commands.addlevels.others: true mcmmo.commands.addxp: true mcmmo.commands.addxp.others: true + mcmmo.commands.mcpurge: true mcmmo.commands.mmoedit: true mcmmo.commands.mmoedit.others: true mcmmo.tools.mcgod: @@ -713,6 +714,7 @@ permissions: mcmmo.commands.mcability.others: true mcmmo.commands.mcgod: true mcmmo.commands.mcgod.others: true + mcmmo.commands.mcpurge: true mcmmo.commands.mmoedit: true mcmmo.commands.mmoedit.others: true mcmmo.commands.mmoupdate: true @@ -767,6 +769,8 @@ permissions: description: Allows access to the mcgod command for other players mcmmo.commands.mcmmo: description: Allows access to the mcmmo command + mcmmo.commands.mcpurge: + description: Allows access to the mcpurge command mcmmo.commands.mcrank: description: Allows access to the mcrank command mcmmo.commands.mcstats: