From dee384c8b9525fd28738cdf0621b85648b2a9f7b Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Sun, 3 Feb 2013 13:45:37 -0800 Subject: [PATCH] Updating permissions for the /mcrefresh command. --- .../gmail/nossr50/commands/admin/McrefreshCommand.java | 6 +++++- src/main/resources/plugin.yml | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/commands/admin/McrefreshCommand.java b/src/main/java/com/gmail/nossr50/commands/admin/McrefreshCommand.java index 20744d6f7..3e0e9ddda 100644 --- a/src/main/java/com/gmail/nossr50/commands/admin/McrefreshCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/admin/McrefreshCommand.java @@ -19,7 +19,7 @@ public class McrefreshCommand implements CommandExecutor { PlayerProfile profile; String usage = LocaleLoader.getString("Commands.Usage.1", "mcrefresh", "[" + LocaleLoader.getString("Commands.Usage.Player") + "]"); - if (CommandHelper.noCommandPermissions(sender, "mcmmo.tools.mcrefresh")) { + if (CommandHelper.noCommandPermissions(sender, "mcmmo.commands.mcrefresh")) { return true; } @@ -36,6 +36,10 @@ public class McrefreshCommand implements CommandExecutor { break; case 1: + if (CommandHelper.noCommandPermissions(sender, "mcmmo.commands.mcrefresh.others")) { + return true; + } + player = mcMMO.p.getServer().getOfflinePlayer(args[0]); profile = Users.getProfile(player); String playerName = player.getName(); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 9c9c18762..37cdac4d1 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -336,6 +336,9 @@ permissions: mcmmo.tools.mcremove: true mcmmo.tools.mcrefresh: description: Allows access to mcrefresh command + children: + mcmmo.commands.mcrefresh: true + mcmmo.commands.mcrefresh.others: true mcmmo.tools.mmoedit: default: false description: Allows access to mmoedit command @@ -716,6 +719,8 @@ permissions: mcmmo.commands.mcgod.others: true mcmmo.commands.mcpurge: true mcmmo.commands.mcrank.others.all: true + mcmmo.commands.mcrefresh: true + mcmmo.commands.mcrefresh.others: true mcmmo.commands.mmoedit: true mcmmo.commands.mmoedit.others: true mcmmo.commands.mmoupdate: true @@ -790,6 +795,10 @@ permissions: description: Allows access to the mcrank command for far players mcmmo.commands.mcrank.others.offline: description: Allows access to the mcrank command for offline players + mcmmo.commands.mcrefresh: + description: Allows access to the mcrefresh command + mcmmo.commands.mcrefresh.others: + description: Allows access to the mcrefresh command for other players mcmmo.commands.mcstats: description: Allows access to the mcstats command mcmmo.commands.mctop: