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

Fix whitelistadd requiring server restart #218

Merged
merged 1 commit into from
Oct 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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