mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-11-11 14:20:50 +01:00
Adding permission for the /mcstats command.
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user