From b01d80b1f49a6543aff98e92a2e5b4875bdd86b2 Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Sun, 3 Feb 2013 13:14:26 -0800 Subject: [PATCH] Updating the permissions for the /mcrank command. --- .../java/com/gmail/nossr50/commands/player/McrankCommand.java | 4 ++++ src/main/resources/plugin.yml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java b/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java index 5dfe640f0..ec374ccba 100644 --- a/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java @@ -39,6 +39,10 @@ public class McrankCommand implements CommandExecutor { break; case 1: + if (CommandHelper.noCommandPermissions(sender, "mcmmo.commands.mcrank.others")) { + return true; + } + playerName = args[0]; break; diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 18eb967f1..ed74c065b 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -715,6 +715,7 @@ permissions: mcmmo.commands.mcgod: true mcmmo.commands.mcgod.others: true mcmmo.commands.mcpurge: true + mcmmo.commands.mcrank.others: true mcmmo.commands.mmoedit: true mcmmo.commands.mmoedit.others: true mcmmo.commands.mmoupdate: true @@ -773,6 +774,8 @@ permissions: description: Allows access to the mcpurge command mcmmo.commands.mcrank: description: Allows access to the mcrank command + mcmmo.commands.mcrank.others: + description: Allows access to the mcrank command for other players mcmmo.commands.mcstats: description: Allows access to the mcstats command mcmmo.commands.mctop: