quantum-space-buddies/QSB/ServerSettings/ServerSettingsManager.cs
2023-07-28 19:30:57 +01:00

12 lines
387 B
C#

using QSB.Utility;
using UnityEngine;
namespace QSB.ServerSettings;
public class ServerSettingsManager : MonoBehaviour, IAddComponentOnStart
{
public static bool ServerShowPlayerNames;
public static bool ShowPlayerNames => (ServerShowPlayerNames || QSBCore.IsHost) && QSBCore.ShowPlayerNames;
public static bool ShowExtraHUD => ShowPlayerNames && QSBCore.ShowExtraHUDElements;
}