diff --git a/SCPStats/AutoUpdater.cs b/SCPStats/AutoUpdater.cs index ef2ce7d..badb95a 100644 --- a/SCPStats/AutoUpdater.cs +++ b/SCPStats/AutoUpdater.cs @@ -14,8 +14,8 @@ namespace SCPStats { internal static class AutoUpdater { - private const string Version = "1.5.1-4"; - private const string Channel = "1"; + private const string Version = "1.5.2"; + private const string Channel = "2"; internal static async Task RunUpdater(int waitTime = 0) { diff --git a/SCPStats/Hats/HatPlayerComponent.cs b/SCPStats/Hats/HatPlayerComponent.cs index 3f79c46..d324aef 100644 --- a/SCPStats/Hats/HatPlayerComponent.cs +++ b/SCPStats/Hats/HatPlayerComponent.cs @@ -59,7 +59,7 @@ private IEnumerator MoveHat() var camera = player.CameraTransform; var rotAngles = camera.rotation.eulerAngles; - if (player.Team == Team.SCP) rotAngles.x = 0; + if (player.Role.Team == Team.SCP) rotAngles.x = 0; var rotation = Quaternion.Euler(rotAngles); @@ -94,12 +94,12 @@ private IEnumerator MoveHat() { MirrorExtensions.SendFakeSyncVar(player1, pickup.netIdentity, pickupType, "NetworkInfo", ownerPickupInfo); } - else if (player1.Team == player.Team) + else if (player1.Role.Team == player.Role.Team) { MirrorExtensions.SendFakeSyncVar(player1, pickup.netIdentity, pickupType, "NetworkInfo", pickupInfo); } else - switch (player1.Role) + switch (player1.Role.Type) { case RoleType.Scp93953: case RoleType.Scp93989: diff --git a/SCPStats/SCPStats.cs b/SCPStats/SCPStats.cs index 40ff848..ffd60ed 100644 --- a/SCPStats/SCPStats.cs +++ b/SCPStats/SCPStats.cs @@ -100,7 +100,7 @@ private IEnumerator EnableEvents() Exiled.Events.Handlers.Player.PickingUpAmmo += EventHandler.OnPickupAmmo; Exiled.Events.Handlers.Player.Verified += EventHandler.OnJoin; Exiled.Events.Handlers.Player.Destroying += EventHandler.OnLeave; - Exiled.Events.Handlers.Player.ItemUsed += EventHandler.OnUse; + Exiled.Events.Handlers.Player.UsedItem += EventHandler.OnUse; Exiled.Events.Handlers.Player.ThrowingItem += EventHandler.OnThrow; Exiled.Events.Handlers.Server.ReloadedRA += EventHandler.OnRAReload; Exiled.Events.Handlers.Server.ReloadedConfigs += LoadConfigs; @@ -181,7 +181,7 @@ public override void OnDisabled() Exiled.Events.Handlers.Player.PickingUpAmmo -= EventHandler.OnPickupAmmo; Exiled.Events.Handlers.Player.Verified -= EventHandler.OnJoin; Exiled.Events.Handlers.Player.Destroying -= EventHandler.OnLeave; - Exiled.Events.Handlers.Player.ItemUsed -= EventHandler.OnUse; + Exiled.Events.Handlers.Player.UsedItem -= EventHandler.OnUse; Exiled.Events.Handlers.Player.ThrowingItem -= EventHandler.OnThrow; Exiled.Events.Handlers.Server.ReloadedRA -= EventHandler.OnRAReload; Exiled.Events.Handlers.Server.ReloadedConfigs -= LoadConfigs; diff --git a/SCPStats/SCPStats.csproj b/SCPStats/SCPStats.csproj index 74cf663..3a4a8d2 100644 --- a/SCPStats/SCPStats.csproj +++ b/SCPStats/SCPStats.csproj @@ -52,40 +52,40 @@ ..\packages\Costura.Fody.5.1.0\lib\netstandard1.0\Costura.dll True - - ..\packages\EXILED.4.1.7\lib\net472\Exiled.API.dll + + ..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.API.dll True - - ..\packages\EXILED.4.1.7\lib\net472\Exiled.Bootstrap.dll + + ..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.Bootstrap.dll True - - ..\packages\EXILED.4.1.7\lib\net472\Exiled.CreditTags.dll + + ..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.CreditTags.dll True - - ..\packages\EXILED.4.1.7\lib\net472\Exiled.CustomItems.dll + + ..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.CustomItems.dll True - - ..\packages\EXILED.4.1.7\lib\net472\Exiled.CustomRoles.dll + + ..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.CustomRoles.dll True - - ..\packages\EXILED.4.1.7\lib\net472\Exiled.Events.dll + + ..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.Events.dll True - - ..\packages\EXILED.4.1.7\lib\net472\Exiled.Loader.dll + + ..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.Loader.dll True - - ..\packages\EXILED.4.1.7\lib\net472\Exiled.Permissions.dll + + ..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.Permissions.dll True - ..\packages\EXILED.4.1.7\lib\net472\Exiled.Updater.dll + ..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.Updater.dll True diff --git a/SCPStats/packages.config b/SCPStats/packages.config index 0ca9a2b..a4273c2 100644 --- a/SCPStats/packages.config +++ b/SCPStats/packages.config @@ -1,7 +1,7 @@  - +