Use the "spawn protected" message when the island is a spawn

This commit is contained in:
Florian CUNY 2020-04-21 20:37:22 +02:00
parent 88b331d1e4
commit 4aba4e1137

View File

@ -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