From b8eb6186ed7d52f67d009e8b9cee905c454b907f Mon Sep 17 00:00:00 2001 From: "U-YUE\\Sean" Date: Wed, 30 Jan 2013 09:50:15 -0800 Subject: [PATCH] Adding permission for the /mcstats command. --- .../com/gmail/nossr50/commands/general/McstatsCommand.java | 4 ++++ src/main/resources/plugin.yml | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/general/McstatsCommand.java b/src/main/java/com/gmail/nossr50/commands/general/McstatsCommand.java index 236dd291b..148592381 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/McstatsCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/McstatsCommand.java @@ -17,6 +17,10 @@ public class McstatsCommand implements CommandExecutor { return true; } + if (CommandHelper.noCommandPermissions(sender, "mcmmo.commands.mcstats")) { + return true; + } + Player player = (Player) sender; player.sendMessage(LocaleLoader.getString("Stats.Own.Stats")); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 687d5e94f..8bf78e758 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -697,19 +697,17 @@ permissions: mcmmo.commands.all: description: Implies all mcmmo.commands permissions. children: - mcmmo.commands.ability: true mcmmo.commands.addlevels: true mcmmo.commands.addlevels.others: true mcmmo.commands.addxp: true mcmmo.commands.addxp.others: true - mcmmo.commands.inspect: true - mcmmo.commands.party.all: true - mcmmo.commands.ptp: true + mcmmo.commands.defaults: true mcmmo.commands.defaults: description: Implies all default mcmmo.commands permissions. children: mcmmo.commands.ability: true mcmmo.commands.inspect: true + mcmmo.commands.mcstats: true mcmmo.commands.party.all: true mcmmo.commands.ptp: true mcmmo.commands.ability: