1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-09-02 11:13:55 +02:00

Prevent future warps being named as numbers.

This commit is contained in:
KHobbits
2011-12-19 10:57:18 +00:00
parent 6298af0039
commit 4581121750

View File

@@ -21,6 +21,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);
user.sendMessage(_("warpSet", args[0]));