/// <summary> /// Unbans the user /// </summary> public void Unban() { // Check not banned if (!IsBanned) { return; } // Set to unbanned ServerAdministrator.DeleteBlacklist(player.Id); }
/// <summary> /// Unbans the user /// </summary> /// <param name="id"></param> public void Unban(string id) { // Check if unbanned already if (!IsBanned(id)) { return; } // Set to unbanned ServerAdministrator.DeleteBlacklist(int.Parse(id)); //player.RPCOthers(EPacketType.PT_InGame_DelBlackList); // TODO: Needed? }
/// <summary> /// Unbans the user /// </summary> public void Unban() { // Check not banned if (!IsBanned) { return; } // Set to unbanned ServerAdministrator.DeleteBlacklist(player.Id); player.RPCOthers(EPacketType.PT_InGame_DelBlackList); // TODO: Needed? }
void RPC_S2C_DeleteBlackList(uLink.BitStream stream, uLink.NetworkMessageInfo info) { int id = stream.Read <int>(); ServerAdministrator.DeleteBlacklist(id); }