mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-09 18:08:27 +01:00
Fixed 'Island Respawn' not working for island members
It only worked for the island owner
This commit is contained in:
parent
ff95450638
commit
b6fa468b4a
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user