mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-10-22 20:40:30 +02:00
parent
96dda2c96d
commit
bce30ce83d
@ -64,7 +64,8 @@ public class PortalTeleportationListener implements Listener {
|
||||
e.setTo(plugin.getIWM().getEndWorld(fromWorld).getSpawnLocation());
|
||||
}
|
||||
// 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);
|
||||
plugin.getIslands().homeTeleport(Util.getWorld(fromWorld), e.getPlayer());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user