From daab85102ba15e7fcbba194982f957f354cf2a7b Mon Sep 17 00:00:00 2001 From: DarkSeraphim Date: Tue, 8 Jul 2014 16:02:37 +0200 Subject: [PATCH] Actually supporting custom ban messages now. Seriously people, this was just a pain to look at. --- .../massivecraft/factions/listeners/FactionsListenerMain.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/listeners/FactionsListenerMain.java b/src/com/massivecraft/factions/listeners/FactionsListenerMain.java index 2a020a3b..7225d903 100644 --- a/src/com/massivecraft/factions/listeners/FactionsListenerMain.java +++ b/src/com/massivecraft/factions/listeners/FactionsListenerMain.java @@ -433,7 +433,8 @@ public class FactionsListenerMain implements Listener Player player = event.getPlayer(); // ... and if the if player was banned (not just kicked) ... - if (!event.getReason().equals("Banned by admin.")) return; + //if (!event.getReason().equals("Banned by admin.")) return; + if (!player.isBanned()) return; // ... and we remove player data when banned ... if (!MConf.get().removePlayerDataWhenBanned) return;