Merge pull request #22 from oliverw92/master
Made Faction Homes Obey Worlds
This commit is contained in:
commit
2f61e83a8a
@ -334,7 +334,7 @@ public class FactionsPlayerListener extends PlayerListener{
|
|||||||
public void onPlayerRespawn(PlayerRespawnEvent event) {
|
public void onPlayerRespawn(PlayerRespawnEvent event) {
|
||||||
FPlayer me = FPlayer.get(event.getPlayer());
|
FPlayer me = FPlayer.get(event.getPlayer());
|
||||||
Location home = me.getFaction().getHome();
|
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);
|
event.setRespawnLocation(home);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user