/// <summary> /// Delete if you don't have any banlist /// </summary> private void HandleBanListRequest(BanListRequestPacket packet) { if (!Authorized) { SendPacket(new AuthorizationDisconnectPacket { Reason = "Not authorized!" }); return; } // SendPacket(new BanListResponsePacket { BanList = new BanList() }); }
/// <summary> /// Delete if you don't have any banlist /// </summary> private void HandleBanListRequest(BanListRequestPacket packet) { if (!Authorized) { SendPacket(new AuthorizationDisconnectPacket { Reason = "Not authorized!" }); return; } SendPacket(new BanListResponsePacket { Bans = new Ban[0] }); }