From 6d486401b5dcae04adb218b220f5a41c3a760568 Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Mon, 4 Feb 2013 11:58:00 -0800 Subject: [PATCH] Adding a permission for the /mcc command. --- .../java/com/gmail/nossr50/commands/player/MccCommand.java | 4 ++++ src/main/resources/plugin.yml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/commands/player/MccCommand.java b/src/main/java/com/gmail/nossr50/commands/player/MccCommand.java index 7e12e5f3f..56cc1f761 100644 --- a/src/main/java/com/gmail/nossr50/commands/player/MccCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/player/MccCommand.java @@ -17,6 +17,10 @@ public class MccCommand implements CommandExecutor { return true; } + if (!Permissions.hasPermission(sender, "mcmmo.commands.mcc")) { + return true; + } + Player player = (Player) sender; player.sendMessage(LocaleLoader.getString("Commands.mcc.Header")); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 256604243..22db8a80c 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -728,6 +728,7 @@ permissions: mcmmo.commands.herbalism: true mcmmo.commands.inspect: true mcmmo.commands.mcability: true + mcmmo.commands.mcc: true mcmmo.commands.mchud: true mcmmo.commands.mcmmo: true mcmmo.commands.mcrank: true @@ -790,6 +791,8 @@ permissions: description: Allows access to the mcability command mcmmo.commands.mcability.others: description: Allows access to the mcability command for other players + mcmmo.commands.mcc: + description: Allows access to the mcc command mcmmo.commands.mcgod: description: Allows access to the mcgod command mcmmo.commands.mcgod.others: