Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
fix: Main thread problem
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ryuu committed May 16, 2024
1 parent 6cb2770 commit 92a558c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions K4-System/src/Plugin/PluginDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,7 @@ public void LoadPlayerRowToCache(K4Player k4player, dynamic row, bool all)
if (!all)
{
K4Players.Add(k4player);

if (Config.UtilSettings.ConnectMessageEnable)
{
Server.PrintToChatAll(ReplacePlaceholders(k4player, ApplyPrefixColors(Config.UtilSettings.ConnectMessage)));
}
Server.NextWorldUpdate(() => Server.PrintToChatAll(ReplacePlaceholders(k4player, ApplyPrefixColors(Config.UtilSettings.ConnectMessage))));
}
}
}

0 comments on commit 92a558c

Please sign in to comment.