mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-03 20:41:37 +00:00
Update essentials to support 3rd party vanish toggling.
This commit is contained in:
parent
0f6625aea9
commit
6269ce9a3f
14 changed files with 122 additions and 46 deletions
|
@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue