From b6fa468b4a7c910beeff031042c6107c7e60cc5d Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Thu, 29 Aug 2019 14:18:14 +0200 Subject: [PATCH] Fixed 'Island Respawn' not working for island members It only worked for the island owner --- .../listeners/flags/worldsettings/IslandRespawnListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/IslandRespawnListener.java b/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/IslandRespawnListener.java index ed21f16e3..faad76e70 100644 --- a/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/IslandRespawnListener.java +++ b/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/IslandRespawnListener.java @@ -36,7 +36,7 @@ public class IslandRespawnListener extends FlagListener { if (!Flags.ISLAND_RESPAWN.isSetForWorld(e.getEntity().getWorld())) { return; // world doesn't have the island respawn flag } - if (!getIslands().hasIsland(e.getEntity().getWorld(), e.getEntity().getUniqueId())) { + if (!getIslands().hasIsland(e.getEntity().getWorld(), e.getEntity().getUniqueId()) || !getIslands().inTeam(e.getEntity().getWorld(), e.getEntity().getUniqueId())) { return; // doesn't have an island in this world }