From 8ff84019eea24af5aee85dbc143bf253b64d4926 Mon Sep 17 00:00:00 2001 From: Oli Date: Wed, 29 Jun 2011 14:45:51 +0100 Subject: [PATCH] Made faction home respawning obey the 'worldsNoPowerLoss' config --- src/org/mcteam/factions/listeners/FactionsPlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/mcteam/factions/listeners/FactionsPlayerListener.java b/src/org/mcteam/factions/listeners/FactionsPlayerListener.java index 53785410..23505b6d 100644 --- a/src/org/mcteam/factions/listeners/FactionsPlayerListener.java +++ b/src/org/mcteam/factions/listeners/FactionsPlayerListener.java @@ -334,7 +334,7 @@ public class FactionsPlayerListener extends PlayerListener{ public void onPlayerRespawn(PlayerRespawnEvent event) { FPlayer me = FPlayer.get(event.getPlayer()); Location home = me.getFaction().getHome(); - if (Conf.homesEnabled && Conf.homesTeleportToOnDeath && home != null) { + if (Conf.homesEnabled && Conf.homesTeleportToOnDeath && home != null && !Conf.worldsNoPowerLoss.contains(event.getPlayer().getWorld().getName())) { event.setRespawnLocation(home); } }