mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-04 19:46:27 +00:00
deny empty warp name
This commit is contained in:
parent
0ddcfafbc0
commit
38b7fa64fa
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue