Pārlūkot izejas kodu

Updating the permission for the /mcremove command.

Glitchfinder 12 gadi atpakaļ
vecāks
revīzija
15f212c384

+ 1 - 1
src/main/java/com/gmail/nossr50/database/commands/McremoveCommand.java

@@ -24,7 +24,7 @@ public class McremoveCommand implements CommandExecutor {
         String usage = LocaleLoader.getString("Commands.Usage.1", "mcremove", "<" + LocaleLoader.getString("Commands.Usage.Player") + ">");
         String usage = LocaleLoader.getString("Commands.Usage.1", "mcremove", "<" + LocaleLoader.getString("Commands.Usage.Player") + ">");
         String success;
         String success;
 
 
-        if (CommandHelper.noCommandPermissions(sender, "mcmmo.tools.mcremove")) {
+        if (CommandHelper.noCommandPermissions(sender, "mcmmo.commands.mcremove")) {
             return true;
             return true;
         }
         }
 
 

+ 5 - 0
src/main/resources/plugin.yml

@@ -356,6 +356,8 @@ permissions:
             mcmmo.commands.mcgod: true
             mcmmo.commands.mcgod: true
     mcmmo.tools.mcremove:
     mcmmo.tools.mcremove:
         decription: Allows access to mcremove and mcpurge command
         decription: Allows access to mcremove and mcpurge command
+        children:
+            mcmmo.commands.mcremove: true
     mcmmo.ability.*:
     mcmmo.ability.*:
         description: Implies all mcmmo.ability permissions.
         description: Implies all mcmmo.ability permissions.
         children:
         children:
@@ -721,6 +723,7 @@ permissions:
             mcmmo.commands.mcrank.others.all: true
             mcmmo.commands.mcrank.others.all: true
             mcmmo.commands.mcrefresh: true
             mcmmo.commands.mcrefresh: true
             mcmmo.commands.mcrefresh.others: true
             mcmmo.commands.mcrefresh.others: true
+            mcmmo.commands.mcremove: true
             mcmmo.commands.mmoedit: true
             mcmmo.commands.mmoedit: true
             mcmmo.commands.mmoedit.others: true
             mcmmo.commands.mmoedit.others: true
             mcmmo.commands.mmoupdate: true
             mcmmo.commands.mmoupdate: true
@@ -799,6 +802,8 @@ permissions:
         description: Allows access to the mcrefresh command
         description: Allows access to the mcrefresh command
     mcmmo.commands.mcrefresh.others:
     mcmmo.commands.mcrefresh.others:
         description: Allows access to the mcrefresh command for other players
         description: Allows access to the mcrefresh command for other players
+    mcmmo.commands.mcremove:
+        description: Allows access to the mcremove command
     mcmmo.commands.mcstats:
     mcmmo.commands.mcstats:
         description: Allows access to the mcstats command
         description: Allows access to the mcstats command
     mcmmo.commands.mctop:
     mcmmo.commands.mctop: