Skip to content

Commit

Permalink
Fixed build after game update
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlOfDuty committed Oct 28, 2023
1 parent ede2c15 commit 7f0d3a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions SCPDiscordPlugin/EventListeners/PlayerEventListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions SCPDiscordPlugin/EventListeners/SCPEventListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions SCPDiscordPlugin/RoleSync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using CentralAuth;
using PluginAPI.Core;

namespace SCPDiscord
Expand Down Expand Up @@ -58,7 +59,7 @@ private void SavePlayers()

public void SendRoleQuery(Player player)
{
if (CharacterClassManager.OnlineMode)
if (PlayerAuthenticationManager.OnlineMode)
{
if (!syncedPlayers.ContainsKey(player.UserId))
{
Expand Down Expand Up @@ -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"))
{
Expand Down

0 comments on commit 7f0d3a8

Please sign in to comment.