mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 11:45:31 +01:00
Use the Flag#getHintReference() in the sendMessage()
That is to ensure an easier maintenance process.
This commit is contained in:
parent
460911c92b
commit
146331d0fe
@ -34,7 +34,8 @@ public class IslandGoCommand extends CompositeCommand {
|
|||||||
}
|
}
|
||||||
if ((getIWM().inWorld(user.getWorld()) && Flags.PREVENT_TELEPORT_WHEN_FALLING.isSetForWorld(user.getWorld()))
|
if ((getIWM().inWorld(user.getWorld()) && Flags.PREVENT_TELEPORT_WHEN_FALLING.isSetForWorld(user.getWorld()))
|
||||||
&& user.getPlayer().getFallDistance() > 0) {
|
&& user.getPlayer().getFallDistance() > 0) {
|
||||||
user.sendMessage("protection.flags.PREVENT_TELEPORT_WHEN_FALLING.hint");
|
// We're sending the "hint" to the player to tell them they cannot teleport while falling.
|
||||||
|
user.sendMessage(Flags.PREVENT_TELEPORT_WHEN_FALLING.getHintReference());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!args.isEmpty() && NumberUtils.isDigits(args.get(0))) {
|
if (!args.isEmpty() && NumberUtils.isDigits(args.get(0))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user