mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-09-27 14:22:48 +02:00
Use the "spawn protected" message when the island is a spawn
This commit is contained in:
parent
88b331d1e4
commit
4aba4e1137
@ -189,7 +189,7 @@ public abstract class FlagListener implements Listener {
|
||||
return true;
|
||||
}
|
||||
report(user, e, loc, flag, Why.NOT_ALLOWED_ON_ISLAND);
|
||||
noGo(e, flag, silent, "protection.protected");
|
||||
noGo(e, flag, silent, island.get().isSpawn() ? "protection.spawn-protected" : "protection.protected");
|
||||
return false;
|
||||
}
|
||||
// The player is in the world, but not on an island, so general world settings apply
|
||||
|
Loading…
Reference in New Issue
Block a user