Example #1
0
        public override async Task RunImpl()
        {
            L2Player player = L2World.GetPlayers().FirstOrDefault(x => x.Account.AccountId == _accountId);

            if (player == null)
            {
                GameServer.ServiceProvider.GetService <ClientManager>().Disconnect(_accountId);
                return;
            }

            await L2World.KickPlayer(player);
        }