mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-05 01:59:46 +01:00
Merge pull request #646 from DarkSeraphim/patch-1
Actually supporting custom ban messages now.
This commit is contained in:
commit
904d955c02
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user