1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-07 07:06:41 +02:00

Merge pull request #364 from necrodoom/patch-69

deny empty warp name
This commit is contained in:
KHobbits
2013-02-28 04:55:40 -08:00

View File

@@ -23,7 +23,7 @@ public class Commandsetwarp extends EssentialsCommand
throw new NotEnoughArgumentsException(); throw new NotEnoughArgumentsException();
} }
if (Util.isInt(args[0])) if (Util.isInt(args[0]) || args[0].isEmpty())
{ {
throw new NoSuchFieldException(_("invalidWarpName")); throw new NoSuchFieldException(_("invalidWarpName"));
} }