From aa88c974fd50b00778a3b144abd94ef72fa8ab49 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Mon, 9 Jan 2012 21:38:00 -0600 Subject: [PATCH] Players auto-removed due to inactivity or due to being banned now have their data deleted immediately; this should fix the log spam of the same players repeatedly being marked for deletion --- src/com/massivecraft/factions/FPlayers.java | 2 +- .../massivecraft/factions/listeners/FactionsPlayerListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/massivecraft/factions/FPlayers.java b/src/com/massivecraft/factions/FPlayers.java index d9a160d1..b33c699d 100644 --- a/src/com/massivecraft/factions/FPlayers.java +++ b/src/com/massivecraft/factions/FPlayers.java @@ -70,7 +70,7 @@ public class FPlayers extends PlayerEntityCollection fplayer.getFaction().promoteNewLeader(); fplayer.leave(false); - fplayer.markForDeletion(true); + fplayer.detach(); } } } diff --git a/src/com/massivecraft/factions/listeners/FactionsPlayerListener.java b/src/com/massivecraft/factions/listeners/FactionsPlayerListener.java index 72ba991a..95ef01ca 100644 --- a/src/com/massivecraft/factions/listeners/FactionsPlayerListener.java +++ b/src/com/massivecraft/factions/listeners/FactionsPlayerListener.java @@ -625,7 +625,7 @@ public class FactionsPlayerListener extends PlayerListener badGuy.getFaction().promoteNewLeader(); badGuy.leave(false); - badGuy.markForDeletion(true); + badGuy.detach(); } } }