mirror of
https://github.com/MassiveCraft/Factions.git
synced 2025-02-22 14:51:32 +01:00
Fix homes removed on special land (#9)
This commit is contained in:
parent
fb4292f746
commit
e0148702c0
@ -41,8 +41,9 @@ public class EssentialsListener implements Listener {
|
||||
Location loc = user.getHome(homeName);
|
||||
FLocation floc = new FLocation(loc);
|
||||
|
||||
Faction factionAt = Board.getInstance().getFactionAt(floc);
|
||||
// We're only going to remove homes in territory that belongs to THEIR faction.
|
||||
if (Board.getInstance().getFactionAt(floc).equals(faction)) {
|
||||
if (factionAt.equals(faction) && factionAt.isNormal()) {
|
||||
user.delHome(homeName);
|
||||
P.p.log(Level.INFO, "FactionLeaveEvent: Removing home %s, player %s, in territory of %s",
|
||||
homeName, event.getfPlayer().getName(), faction.getTag());
|
||||
|
Loading…
Reference in New Issue
Block a user