mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-09-09 13:58:06 +02:00
parent
96dda2c96d
commit
bce30ce83d
@ -64,7 +64,8 @@ public class PortalTeleportationListener implements Listener {
|
|||||||
e.setTo(plugin.getIWM().getEndWorld(fromWorld).getSpawnLocation());
|
e.setTo(plugin.getIWM().getEndWorld(fromWorld).getSpawnLocation());
|
||||||
}
|
}
|
||||||
// From standard end - check if player has an island to go to
|
// From standard end - check if player has an island to go to
|
||||||
else if (plugin.getIslands().hasIsland(Util.getWorld(fromWorld), e.getPlayer().getUniqueId())) {
|
else if (plugin.getIslands().hasIsland(Util.getWorld(fromWorld), e.getPlayer().getUniqueId())
|
||||||
|
|| plugin.getIslands().inTeam(Util.getWorld(fromWorld), e.getPlayer().getUniqueId())) {
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
plugin.getIslands().homeTeleport(Util.getWorld(fromWorld), e.getPlayer());
|
plugin.getIslands().homeTeleport(Util.getWorld(fromWorld), e.getPlayer());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user