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: