Skip to content
This repository was archived by the owner on Jan 25, 2025. It is now read-only.

Commit de2b37e

Browse files
committed
fix: error log on connect message due to clantag getter
1 parent 5cb85c2 commit de2b37e

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- fix: remove unused code part
66
- fix: disconnect message not shown even if enabled
77
- fix: team-balance freeze/crash the server
8+
- fix: error log on connect message due to clantag getter
89
- chore: update README.md to use new team standards and fix broken links
910

1011
-- 2024.06.03 - V4.4.0

K4-SharedApi/src/K4-SharedApi.dll

0 Bytes
Binary file not shown.

K4-System/src/Plugin/PluginDatabase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,9 @@ public void LoadPlayerRowToCache(K4Player k4player, dynamic row, bool all)
566566

567567
if (Config.UtilSettings.ConnectMessageEnable)
568568
{
569+
if (!k4player.IsValid || !k4player.IsPlayer)
570+
return;
571+
569572
ReplacePlaceholders(k4player, Localizer["k4.announcement.connect"], (result) =>
570573
{
571574
Server.NextWorldUpdate(() =>

0 commit comments

Comments
 (0)