Explorar o código

Updating the permission for the /mcpurge command.

Glitchfinder %!s(int64=12) %!d(string=hai) anos
pai
achega
84d01362f9

+ 1 - 1
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;
         }
 

+ 4 - 0
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: