mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-26 02:34:42 +02:00
Adding a permission for the /mcc command.
This commit is contained in:
@ -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"));
|
||||
|
Reference in New Issue
Block a user