diff --git a/war/src/main/java/bukkit/tommytony/war/War.java b/war/src/main/java/bukkit/tommytony/war/War.java index 78c394a..0d69700 100644 --- a/war/src/main/java/bukkit/tommytony/war/War.java +++ b/war/src/main/java/bukkit/tommytony/war/War.java @@ -87,7 +87,7 @@ public class War extends JavaPlugin { pm.registerEvent(Event.Type.PLAYER_LOGIN, playerListener, Priority.Normal, this); pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Priority.Normal, this); - pm.registerEvent(Event.Type.PLAYER_MOVE, playerListener, Priority.Highest, this); + pm.registerEvent(Event.Type.PLAYER_MOVE, playerListener, Priority.High, this); pm.registerEvent(Event.Type.ENTITY_DAMAGEDBY_ENTITY, entityListener, Priority.Normal, this); diff --git a/war/src/main/java/bukkit/tommytony/war/WarPlayerListener.java b/war/src/main/java/bukkit/tommytony/war/WarPlayerListener.java index 2d64524..e3f26ec 100644 --- a/war/src/main/java/bukkit/tommytony/war/WarPlayerListener.java +++ b/war/src/main/java/bukkit/tommytony/war/WarPlayerListener.java @@ -231,6 +231,7 @@ public class WarPlayerListener extends PlayerListener { } else if (zone.getLobby().isInWarHubLinkGate(to)){ dropFromOldTeamIfAny(player); event.setTo(war.getWarHub().getLocation()); + player.teleportTo(war.getWarHub().getLocation()); player.sendMessage(war.str("Welcome to the War hub.")); } } else if(zone.getLobby().isLeavingZone(to)) { // already in a team and in warzone, leaving