New permission: essentials.repair.armor

If a player has this permission '/repair all' will also repair equipped armor.
This commit is contained in:
KHobbits 2011-11-15 23:54:26 +00:00
parent f51b92c99e
commit e4c3f7b115
2 changed files with 5 additions and 2 deletions

View file

@ -31,7 +31,8 @@ public class Commandbanip extends EssentialsCommand
else
{
final String ipAddress = u.getLastLoginAddress();
if (ipAddress.length() == 0) {
if (ipAddress.length() == 0)
{
throw new Exception(Util.i18n("playerNotFound"));
}
ess.getServer().banIP(u.getLastLoginAddress());