Made faction home respawning obey the 'worldsNoPowerLoss' config
This commit is contained in:
parent
69d1427552
commit
8ff84019ee
@ -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