mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 03:35:11 +01:00
Fix name too short and long locale reference
https://github.com/BentoBoxWorld/BentoBox/issues/508
This commit is contained in:
parent
16e57dc757
commit
5755a19e3d
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user