mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 13:13:24 +00:00
Prevent future warps being named as numbers.
This commit is contained in:
parent
fec3b61039
commit
98cd03ac57
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@ public class Commandsetwarp extends EssentialsCommand
|
|||
{
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
|
||||
if (args[0].matches("[0-9]+")) {
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
|
||||
final Location loc = user.getLocation();
|
||||
ess.getWarps().setWarp(args[0], loc);
|
||||
|
|
Loading…
Reference in a new issue