Fix name too short and long locale reference

https://github.com/BentoBoxWorld/BentoBox/issues/508
This commit is contained in:
tastybento 2019-02-01 17:57:04 -08:00
parent 16e57dc757
commit 5755a19e3d

View File

@ -51,11 +51,11 @@ public class IslandSetnameCommand extends CompositeCommand {
// Check if the name isn't too short or too long // Check if the name isn't too short or too long
if (name.length() < getSettings().getNameMinLength()) { if (name.length() < getSettings().getNameMinLength()) {
user.sendMessage("commands.island.setname.too-short", TextVariables.NUMBER, String.valueOf(getSettings().getNameMinLength())); user.sendMessage("commands.island.setname.name-too-short", TextVariables.NUMBER, String.valueOf(getSettings().getNameMinLength()));
return false; return false;
} }
if (name.length() > getSettings().getNameMaxLength()) { if (name.length() > getSettings().getNameMaxLength()) {
user.sendMessage("commands.island.setname.too-long", TextVariables.NUMBER, String.valueOf(getSettings().getNameMaxLength())); user.sendMessage("commands.island.setname.name-too-long", TextVariables.NUMBER, String.valueOf(getSettings().getNameMaxLength()));
return false; return false;
} }