From d656c7a21217e59d5d30133b0b6571dabce4a094 Mon Sep 17 00:00:00 2001 From: NewGarbo Date: Mon, 11 Jan 2016 18:02:03 +0000 Subject: [PATCH] fixed clans banned players counting as being online after joining and their territory then being blown up --- .../src/mineplex/game/clans/clans/ban/ClansBanManager.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/ban/ClansBanManager.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/ban/ClansBanManager.java index bf826cce3..eae662f37 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/ban/ClansBanManager.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/ban/ClansBanManager.java @@ -27,6 +27,8 @@ import mineplex.core.common.util.UtilTime.TimeUnit; import mineplex.core.donation.DonationManager; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; +import mineplex.game.clans.clans.ClanInfo; +import mineplex.game.clans.clans.ClansManager; import mineplex.game.clans.clans.ban.commands.ClansBanCommand; import mineplex.game.clans.clans.ban.commands.ClansBanListCommand; import mineplex.game.clans.clans.ban.ui.ClansBanListShop; @@ -116,6 +118,11 @@ public class ClansBanManager extends MiniPlugin ; event.getPlayer().kickPlayer(reason); + + ClanInfo clan = ClansManager.getInstance().getClan(event.getPlayer()); + String name = event.getPlayer().getName(); + + UtilServer.getServer().getScheduler().scheduleSyncDelayedTask(getPlugin(), () -> clan.playerOffline(name), 20L); } else {