From 136d7b34455e9391ac8f3c8c23d48fe8b68acdb3 Mon Sep 17 00:00:00 2001 From: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com> Date: Sun, 28 Jan 2024 11:02:02 -0800 Subject: [PATCH] Fix whitelistadd Requiring a Server Restart (#219) # Changelog :cl: - fix: Newly whitelisted people no longer need to wait for the server to restart to do whitelist things Co-authored-by: Debug <49997488+DebugOk@users.noreply.github.com> --- 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); }