deny empty warp name

This commit is contained in:
Necrodoom 2013-02-26 19:07:10 +02:00
parent 0ddcfafbc0
commit 38b7fa64fa

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