Adding permission for the /mcstats command.

This commit is contained in:
U-YUE\Sean
2013-01-30 09:50:15 -08:00
parent 6d5cf2b139
commit b8eb6186ed
2 changed files with 6 additions and 4 deletions

View File

@ -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"));