fixed clans banned players counting as being online after joining and their territory then being blown up

This commit is contained in:
NewGarbo 2016-01-11 18:02:03 +00:00
parent 3773ab3f0b
commit d656c7a212

View File

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