* Or else the player will get stuck in the loadingscreen * Tip: be evil and disable this to troll them :P */ if ($player->connected != 1) { continue; } /** * BLACKLIST * * Checks if the player is in the blacklist, if yes: kick */ /** * Delete all the expired bans */ $bl->deleteExpired(); $ban = $bl->checkPlayer($player->nucleusId); if ($ban['code'] == 'OK') { $reason = replace($settings['tool_bl_msg'], array('%reason%' => $ban['info']['reason'], '%until%' => !$ban['info']['until'] ? 'PERMANENTLY' : date("d-m-Y H:i", strtotime($ban['info']['until'])))); // Kick the player // We use the index instead of the playername, or else playernames with numbers only won't be kicked $pl->kick($player->index, $reason); // Log the kick $log->insertKickLog($player->nucleusId, $player->cdKeyHash, $player->name, $reason); // Skip, don't check for other limiters and stuff continue; } /** * Get the class of the player * * - UPDATE v0.6.0: More simple and efficient way */