Merge pull request #22 from oliverw92/master

Made Faction Homes Obey Worlds
This commit is contained in:
Brett Flannigan 2011-06-29 23:43:39 -07:00
commit 2f61e83a8a

View File

@ -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);
}
}