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
commit 207a8d1b4f

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