From 88d863293166fb30202a68cbf5a46c6800bdd590 Mon Sep 17 00:00:00 2001 From: taoneill Date: Wed, 19 Jan 2011 02:49:14 -0500 Subject: [PATCH] v0.3 Patton tested with Bukkit snapshot of build #87. --- war/src/main/java/bukkit/tommytony/war/War.java | 2 +- war/src/main/java/bukkit/tommytony/war/WarPlayerListener.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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