summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2012-01-01 16:38:05 -0800
committersnowleo <schneeleo@gmail.com>2012-01-01 16:38:05 -0800
commit9a568992f1b256da2265375ba99abf4d35e11068 (patch)
tree39cb343b17565f7c3b00edb88879671e41e69203
parent791e8f2d14029999028854c8da85bc074e84fe93 (diff)
parent283dc9b3c13b0ccf5f861e8629b2987ced1b9ab8 (diff)
downloadEssentials-9a568992f1b256da2265375ba99abf4d35e11068.tar
Essentials-9a568992f1b256da2265375ba99abf4d35e11068.tar.gz
Essentials-9a568992f1b256da2265375ba99abf4d35e11068.tar.lz
Essentials-9a568992f1b256da2265375ba99abf4d35e11068.tar.xz
Essentials-9a568992f1b256da2265375ba99abf4d35e11068.zip
Merge pull request #42 from jjkoletar/patch-1
No sending to all players, must specify target.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandpay.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandpay.java b/Essentials/src/com/earth2me/essentials/commands/Commandpay.java
index 53927e012..01e1fcffb 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandpay.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandpay.java
@@ -21,6 +21,11 @@ public class Commandpay extends EssentialsCommand
{
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\\.]", ""));