From 38b7fa64fa959966952f6684a2b13354763f51d0 Mon Sep 17 00:00:00 2001 From: Necrodoom Date: Tue, 26 Feb 2013 19:07:10 +0200 Subject: [PATCH] deny empty warp name --- .../src/com/earth2me/essentials/commands/Commandsetwarp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); }