1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-18 04:21:31 +02:00

deny empty warp name

This commit is contained in:
Necrodoom
2013-02-26 19:07:10 +02:00
parent d7985c906a
commit 94a0cb684b

View File

@@ -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"));
}