From 3e3009ff59e1868e912cb7b24f98c362b8e60c5a Mon Sep 17 00:00:00 2001 From: Debug <49997488+DebugOk@users.noreply.github.com> Date: Sun, 15 Oct 2023 01:37:04 +0200 Subject: [PATCH] Fix whitelistadd requiring server restart Pro Webedit --- Content.Server/Whitelist/WhitelistCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Whitelist/WhitelistCommands.cs b/Content.Server/Whitelist/WhitelistCommands.cs index 44c6c09bb3..892460fd87 100644 --- a/Content.Server/Whitelist/WhitelistCommands.cs +++ b/Content.Server/Whitelist/WhitelistCommands.cs @@ -45,7 +45,7 @@ public async void Execute(IConsoleShell shell, string argStr, string[] args) if (player.TryGetPlayerDataByUsername(name, out var playerData) && player.TryGetSessionByUsername(name, out var session)) { - playerData.ContentData()!.Whitelisted = false; + playerData.ContentData()!.Whitelisted = true; playtime.SendWhitelistCached(session); }