Actually supporting custom ban messages now.

Seriously people, this was just a pain to look at.
This commit is contained in:
DarkSeraphim 2014-07-08 16:02:37 +02:00
parent 3a3d5cd4fb
commit daab85102b

View File

@ -433,7 +433,8 @@ public class FactionsListenerMain implements Listener
Player player = event.getPlayer(); Player player = event.getPlayer();
// ... and if the if player was banned (not just kicked) ... // ... 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 ... // ... and we remove player data when banned ...
if (!MConf.get().removePlayerDataWhenBanned) return; if (!MConf.get().removePlayerDataWhenBanned) return;