ACR_ServerCommunicator.ACR_ServerCommunicator.SetCrossServerNotificationsEnabled C# (CSharp) Method

SetCrossServerNotificationsEnabled() public method

Sets whether a player wishes to receive cross server event notifications.
public SetCrossServerNotificationsEnabled ( uint PlayerObject, bool Enabled ) : void
PlayerObject uint Supplies the PC object to adjust the /// notification state of.
Enabled bool Supplies true if the PC wishes to receive /// cross server notifications, else false if the PC doesn't want to /// receive them.
return void
        public void SetCrossServerNotificationsEnabled(uint PlayerObject, bool Enabled)
        {
            PlayerState State = GetPlayerState(PlayerObject);

            GetDatabase().ACR_IncrementStatistic("SET_CROSS_SERVER_NOTIFICATIONS");

            if (Enabled == false)
                State.Flags |= PlayerStateFlags.DisableCrossServerNotifications;
            else
                State.Flags &= ~(PlayerStateFlags.DisableCrossServerNotifications);
        }
ACR_ServerCommunicator