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

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

        ServerAdministrator.DeleteBlacklist(id);
    }