mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
No sending to all players, must specify target.
This commit is contained in:
parent
791e8f2d14
commit
283dc9b3c1
1 changed files with 5 additions and 0 deletions
|
@ -21,6 +21,11 @@ public class Commandpay extends EssentialsCommand
|
||||||
{
|
{
|
||||||
throw new NotEnoughArgumentsException();
|
throw new NotEnoughArgumentsException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (args[0] == "")
|
||||||
|
{
|
||||||
|
throw new NotEnoughArgumentsException("You need to specify a player to pay.");
|
||||||
|
}
|
||||||
|
|
||||||
double amount = Double.parseDouble(args[1].replaceAll("[^0-9\\.]", ""));
|
double amount = Double.parseDouble(args[1].replaceAll("[^0-9\\.]", ""));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue