Class AppSettings
- Namespace
- McServerLauncher.Models
- Assembly
- McServerLauncher.dll
Global application settings (not per-server).
public class AppSettings
- Inheritance
-
AppSettings
- Inherited Members
Properties
CloseToTray
Closing the window with the X sends it to the tray instead of quitting the app. Off by default: the X quits, which is what most people expect.
public bool CloseToTray { get; set; }
Property Value
ConsoleChatColor
Colour for player chat in the console.
public string ConsoleChatColor { get; set; }
Property Value
ConsolePlayersColor
Colour for joins, leaves and deaths in the console.
public string ConsolePlayersColor { get; set; }
Property Value
Language
UI language (es, en, pt, fr, de). Empty = system language.
public string? Language { get; set; }
Property Value
LastVersionSeen
Last app version the user has already seen (to show the what's-new screen after updating).
public string? LastVersionSeen { get; set; }
Property Value
MinimizeToTray
Minimizing sends the window to the tray (it leaves the taskbar) instead of minimizing normally.
public bool MinimizeToTray { get; set; }
Property Value
Notifications
Global desktop-notification preferences: the master switch and which kinds are enabled. These apply to every server unless the server has its own override (see UseCustomNotifications).
public NotificationSettings Notifications { get; set; }
Property Value
PlayitAgentId
The agent id that pairs with PlayitAgentSecretKey (tunnel origin).
public string? PlayitAgentId { get; set; }
Property Value
PlayitAgentSecretKey
Per-user self-managed agent secret key obtained from the partner setup-code flow
(/v1/partner/create_agent). Used as the agent-key for all tunnel management. Stored
encrypted at rest (like PlayitApiKey).
public string? PlayitAgentSecretKey { get; set; }
Property Value
PlayitApiKey
Legacy Playit key with write permission, used to create/delete tunnels. Superseded by the partner setup-code flow (PlayitAgentSecretKey); kept for users still on the old model.
public string? PlayitApiKey { get; set; }
Property Value
Methods
ShallowCopy()
A field-for-field copy.
public AppSettings ShallowCopy()
Returns
Remarks
Saving needs an instance with the secrets swapped for their encrypted form while the caller's copy keeps the usable plaintext. Building that by listing the properties by hand is what silently stopped MinimizeToTray and CloseToTray from ever being written: they were added to this class and nobody added them there. Copying everything means a new setting is persisted without touching the save path at all.