Merge pull request #646 from DarkSeraphim/patch-1

Actually supporting custom ban messages now.
This commit is contained in:
Olof Larsson 2014-07-13 15:22:50 +02:00
commit 904d955c02

View File

@ -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;