mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-22 00:58:04 +01:00
/bsb range set : allow to set a value which is = to the max range
This commit is contained in:
parent
4df9f89e3e
commit
09c0eb846e
@ -56,7 +56,7 @@ public class AdminRangeSetCommand extends CompositeCommand {
|
|||||||
user.sendMessage("commands.admin.range.set.invalid-value.too-low", TextVariables.NUMBER, args.get(1));
|
user.sendMessage("commands.admin.range.set.invalid-value.too-low", TextVariables.NUMBER, args.get(1));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (range >= island.getRange()) {
|
if (range > island.getRange()) {
|
||||||
user.sendMessage("commands.admin.range.set.invalid-value.too-high", TextVariables.NUMBER, args.get(1));
|
user.sendMessage("commands.admin.range.set.invalid-value.too-high", TextVariables.NUMBER, args.get(1));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user