Skip to content

Commit

Permalink
Fix whitelistadd Requiring a Server Restart (#219)
Browse files Browse the repository at this point in the history
# Changelog

:cl:
- fix: Newly whitelisted people no longer need to wait for the server to
restart to do whitelist things

Co-authored-by: Debug <[email protected]>
  • Loading branch information
DEATHB4DEFEAT and DebugOk committed Jan 28, 2024
1 parent d1a822d commit 136d7b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Whitelist/WhitelistCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 136d7b3

Please sign in to comment.