Added new permission node to control who can check version number

Negate this permission node to hide the version number from /mcmmo and
motd
This commit is contained in:
TfT_02
2014-02-17 16:31:59 +01:00
parent 0a6735110f
commit c51fde7f1f
4 changed files with 11 additions and 2 deletions

View File

@ -30,7 +30,10 @@ public class McmmoCommand implements CommandExecutor {
sender.sendMessage(ChatColor.GOLD + " - " + ChatColor.GREEN + "gjmcferrin@gmail.com" + ChatColor.GOLD + " Paypal");
}
sender.sendMessage(LocaleLoader.getString("MOTD.Version", mcMMO.p.getDescription().getVersion()));
if (Permissions.showversion(sender)) {
sender.sendMessage(LocaleLoader.getString("MOTD.Version", mcMMO.p.getDescription().getVersion()));
}
mcMMO.getHolidayManager().anniversaryCheck(sender);
return true;