Update essentials to support 3rd party vanish toggling.

This commit is contained in:
KHobbits 2014-06-27 01:46:37 +01:00
parent 0f6625aea9
commit 6269ce9a3f
14 changed files with 122 additions and 46 deletions

View file

@ -27,7 +27,14 @@ public class Commandpay extends EssentialsLoopCommand
throw new NotEnoughArgumentsException();
}
amount = new BigDecimal(args[1].replaceAll("[^0-9\\.]", ""));
String stringAmount = args[1].replaceAll("[^0-9\\.]", "");
if (stringAmount.length() < 1)
{
throw new NotEnoughArgumentsException();
}
amount = new BigDecimal(stringAmount);
loopOnlinePlayers(server, user.getSource(), false, user.isAuthorized("essentials.pay.multiple"), args[0], args);
}
@ -43,6 +50,6 @@ public class Commandpay extends EssentialsLoopCommand
catch (MaxMoneyException ex)
{
sender.sendMessage(tl("maxMoney"));
}
}
}
}