mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-23 18:55:25 +01:00
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) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user