예제 #1
0
        /// <summary>
        /// Unbans the user
        /// </summary>
        public void Unban()
        {
            // Check not banned
            if (!IsBanned)
            {
                return;
            }

            // Set to unbanned
            ServerAdministrator.DeleteBlacklist(player.Id);
        }
예제 #2
0
        /// <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?
        }
예제 #3
0
        /// <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?
        }
예제 #4
0
    void RPC_S2C_DeleteBlackList(uLink.BitStream stream, uLink.NetworkMessageInfo info)
    {
        int id = stream.Read <int>();

        ServerAdministrator.DeleteBlacklist(id);
    }