Actually supporting custom ban messages now.
Seriously people, this was just a pain to look at.
This commit is contained in:
parent
3a3d5cd4fb
commit
daab85102b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user