1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-06 14:46:32 +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();
}
if (Util.isInt(args[0]))
if (Util.isInt(args[0]) || args[0].isEmpty())
{
throw new NoSuchFieldException(_("invalidWarpName"));
}