summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandspeed.java
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-05-05 07:05:43 +0100
committerKHobbits <rob@khobbits.co.uk>2013-05-05 07:15:33 +0100
commita6ad9c9ecdd58a306c9b626f5313cdabd2c3c574 (patch)
treeb5f3e4f0bc6c7bde7b298a2577d1bb2be6416aa5 /Essentials/src/com/earth2me/essentials/commands/Commandspeed.java
parent4d82264761af76de55a6aac43010e87d0943a5a6 (diff)
downloadEssentials-a6ad9c9ecdd58a306c9b626f5313cdabd2c3c574.tar
Essentials-a6ad9c9ecdd58a306c9b626f5313cdabd2c3c574.tar.gz
Essentials-a6ad9c9ecdd58a306c9b626f5313cdabd2c3c574.tar.lz
Essentials-a6ad9c9ecdd58a306c9b626f5313cdabd2c3c574.tar.xz
Essentials-a6ad9c9ecdd58a306c9b626f5313cdabd2c3c574.zip
Cleanup player argument matching in loops
Cleanup ess cleanup timestamp matching
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandspeed.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandspeed.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandspeed.java b/Essentials/src/com/earth2me/essentials/commands/Commandspeed.java
index 591ea638e..a13ba60c1 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandspeed.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandspeed.java
@@ -49,6 +49,10 @@ public class Commandspeed extends EssentialsCommand
speed = getMoveSpeed(args[1]);
if (args.length > 2 && user.isAuthorized("essentials.speed.others"))
{
+ if (args[2].trim().length() < 2)
+ {
+ throw new Exception(_("playerNotFound"));
+ }
speedOtherPlayers(server, user, isFly, isBypass, speed, args[2]);
return;
}