summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-02-28 04:55:40 -0800
committerKHobbits <rob@khobbits.co.uk>2013-02-28 04:55:40 -0800
commitdb78a5dcb9d460905e1c2f03b253ad4ce9c65b05 (patch)
tree3d6e443d290b13fd33a6379befe4ecf04cdddef2
parentadcaf6450bf4a233406c0857622f115d2c33e505 (diff)
parent4e8160fb7fca7c3eae59b4be252ad9190c3e2048 (diff)
downloadEssentials-db78a5dcb9d460905e1c2f03b253ad4ce9c65b05.tar
Essentials-db78a5dcb9d460905e1c2f03b253ad4ce9c65b05.tar.gz
Essentials-db78a5dcb9d460905e1c2f03b253ad4ce9c65b05.tar.lz
Essentials-db78a5dcb9d460905e1c2f03b253ad4ce9c65b05.tar.xz
Essentials-db78a5dcb9d460905e1c2f03b253ad4ce9c65b05.zip
Merge pull request #364 from necrodoom/patch-69
deny empty warp name
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java b/Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java
index 2469f6ec1..542299c13 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java
@@ -23,7 +23,7 @@ public class Commandsetwarp extends EssentialsCommand
throw new NotEnoughArgumentsException();
}
- if (Util.isInt(args[0]))
+ if (Util.isInt(args[0]) || args[0].isEmpty())
{
throw new NoSuchFieldException(_("invalidWarpName"));
}