mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-03 22:11:42 +01:00
deny empty warp name
This commit is contained in:
parent
0ddcfafbc0
commit
38b7fa64fa
@ -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"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user