diff options
author | Necrodoom <doomed.war@gmail.com> | 2013-02-26 19:07:10 +0200 |
---|---|---|
committer | Necrodoom <doomed.war@gmail.com> | 2013-02-26 19:07:10 +0200 |
commit | 4e8160fb7fca7c3eae59b4be252ad9190c3e2048 (patch) | |
tree | 706f0687a8f4223103a7ccda0881f12353728cd2 | |
parent | 3525a7e20128243d18be028c064ecaa74e99b4a8 (diff) | |
download | Essentials-4e8160fb7fca7c3eae59b4be252ad9190c3e2048.tar Essentials-4e8160fb7fca7c3eae59b4be252ad9190c3e2048.tar.gz Essentials-4e8160fb7fca7c3eae59b4be252ad9190c3e2048.tar.lz Essentials-4e8160fb7fca7c3eae59b4be252ad9190c3e2048.tar.xz Essentials-4e8160fb7fca7c3eae59b4be252ad9190c3e2048.zip |
deny empty warp name
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java | 2 |
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")); } |