From 7f0d3a82f53779a8cf45d6b8c6f6ec7e1c8bb959 Mon Sep 17 00:00:00 2001 From: Karl Essinger Date: Sun, 29 Oct 2023 00:37:12 +0200 Subject: [PATCH] Fixed build after game update --- SCPDiscordPlugin/EventListeners/PlayerEventListener.cs | 1 + SCPDiscordPlugin/EventListeners/SCPEventListener.cs | 1 + SCPDiscordPlugin/RoleSync.cs | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/SCPDiscordPlugin/EventListeners/PlayerEventListener.cs b/SCPDiscordPlugin/EventListeners/PlayerEventListener.cs index 31302c6f..ac49e377 100644 --- a/SCPDiscordPlugin/EventListeners/PlayerEventListener.cs +++ b/SCPDiscordPlugin/EventListeners/PlayerEventListener.cs @@ -8,6 +8,7 @@ using InventorySystem.Items.ThrowableProjectiles; using PlayerRoles; using PlayerRoles.PlayableScps.Scp939; +using PlayerRoles.Ragdolls; using PlayerStatsSystem; using PluginAPI.Core; using PluginAPI.Core.Attributes; diff --git a/SCPDiscordPlugin/EventListeners/SCPEventListener.cs b/SCPDiscordPlugin/EventListeners/SCPEventListener.cs index 62fc9f86..d65d7fe0 100644 --- a/SCPDiscordPlugin/EventListeners/SCPEventListener.cs +++ b/SCPDiscordPlugin/EventListeners/SCPEventListener.cs @@ -3,6 +3,7 @@ using MapGeneration; using PlayerRoles; using PlayerRoles.PlayableScps.Scp079; +using PlayerRoles.Ragdolls; using PluginAPI.Core; using PluginAPI.Core.Attributes; using PluginAPI.Enums; diff --git a/SCPDiscordPlugin/RoleSync.cs b/SCPDiscordPlugin/RoleSync.cs index e50a971c..22797fbe 100644 --- a/SCPDiscordPlugin/RoleSync.cs +++ b/SCPDiscordPlugin/RoleSync.cs @@ -9,6 +9,7 @@ using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; +using CentralAuth; using PluginAPI.Core; namespace SCPDiscord @@ -58,7 +59,7 @@ private void SavePlayers() public void SendRoleQuery(Player player) { - if (CharacterClassManager.OnlineMode) + if (PlayerAuthenticationManager.OnlineMode) { if (!syncedPlayers.ContainsKey(player.UserId)) { @@ -180,7 +181,7 @@ public void ReceiveQueryResponse(UserInfo userInfo) public EmbedMessage AddPlayer(SyncRoleCommand command) { - if (CharacterClassManager.OnlineMode) + if (PlayerAuthenticationManager.OnlineMode) { if (syncedPlayers.ContainsKey(command.SteamIDOrIP + "@steam")) {