From 283dc9b3c13b0ccf5f861e8629b2987ced1b9ab8 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sun, 1 Jan 2012 18:18:29 -0600 Subject: No sending to all players, must specify target. --- Essentials/src/com/earth2me/essentials/commands/Commandpay.java | 5 +++++ 1 file changed, 5 insertions(+) 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\\.]", "")); -- cgit v1.2.3