Adding a permission for the /mcc command.

This commit is contained in:
Glitchfinder 2013-02-04 11:58:00 -08:00
parent 07df5edc86
commit 6d486401b5
2 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,10 @@ public class MccCommand implements CommandExecutor {
return true; return true;
} }
if (!Permissions.hasPermission(sender, "mcmmo.commands.mcc")) {
return true;
}
Player player = (Player) sender; Player player = (Player) sender;
player.sendMessage(LocaleLoader.getString("Commands.mcc.Header")); player.sendMessage(LocaleLoader.getString("Commands.mcc.Header"));

View File

@ -728,6 +728,7 @@ permissions:
mcmmo.commands.herbalism: true mcmmo.commands.herbalism: true
mcmmo.commands.inspect: true mcmmo.commands.inspect: true
mcmmo.commands.mcability: true mcmmo.commands.mcability: true
mcmmo.commands.mcc: true
mcmmo.commands.mchud: true mcmmo.commands.mchud: true
mcmmo.commands.mcmmo: true mcmmo.commands.mcmmo: true
mcmmo.commands.mcrank: true mcmmo.commands.mcrank: true
@ -790,6 +791,8 @@ permissions:
description: Allows access to the mcability command description: Allows access to the mcability command
mcmmo.commands.mcability.others: mcmmo.commands.mcability.others:
description: Allows access to the mcability command for other players description: Allows access to the mcability command for other players
mcmmo.commands.mcc:
description: Allows access to the mcc command
mcmmo.commands.mcgod: mcmmo.commands.mcgod:
description: Allows access to the mcgod command description: Allows access to the mcgod command
mcmmo.commands.mcgod.others: mcmmo.commands.mcgod.others: