Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Fix whitelistadd requiring server restart (#218)
Browse files Browse the repository at this point in the history
Pro Webedit
  • Loading branch information
DebugOk authored Oct 14, 2023
1 parent d75b282 commit 3f63d6d
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 3f63d6d

Please sign in to comment.