From deb241b7af27da0b4f5b5e55614a4e1fb710a061 Mon Sep 17 00:00:00 2001 From: Thomasjosif Date: Wed, 17 Feb 2021 13:33:01 -0500 Subject: [PATCH] Bump version --- UltimateAFK/AFKComponent.cs | 4 ++-- UltimateAFK/MainClass.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/UltimateAFK/AFKComponent.cs b/UltimateAFK/AFKComponent.cs index 69e8ac6..ced8af9 100644 --- a/UltimateAFK/AFKComponent.cs +++ b/UltimateAFK/AFKComponent.cs @@ -68,7 +68,7 @@ private void AFKChecker() //Log.Info($"AFK Time: {this.AFKTime} AFK Count: {this.AFKCount}"); if (this.ply.Team == Team.RIP || Player.List.Count() <= plugin.Config.MinPlayers || (plugin.Config.IgnoreTut && this.ply.Team == Team.TUT)) return; - bool isScp079 = (this.ply.Role == RoleType.Scp079) ? true : false; + bool isScp079 = (this.ply.Role == RoleType.Scp079); bool scp096TryNotToCry = false; // When SCP096 is in the state "TryNotToCry" he cannot move or it will cancel, @@ -76,7 +76,7 @@ private void AFKChecker() if (this.ply.Role == RoleType.Scp096) { PlayableScps.Scp096 scp096 = this.ply.ReferenceHub.scpsController.CurrentScp as PlayableScps.Scp096; - scp096TryNotToCry = (scp096.PlayerState == Scp096PlayerState.TryNotToCry) ? true : false; + scp096TryNotToCry = (scp096.PlayerState == Scp096PlayerState.TryNotToCry); } Vector3 CurrentPos = this.ply.Position; diff --git a/UltimateAFK/MainClass.cs b/UltimateAFK/MainClass.cs index 3d9f670..8cedc89 100644 --- a/UltimateAFK/MainClass.cs +++ b/UltimateAFK/MainClass.cs @@ -51,7 +51,7 @@ public class MainClass : Plugin public override string Author { get; } = "Thomasjosif"; public override string Name { get; } = "Ultimate AFK"; public override string Prefix { get; } = "uAFK"; - public override Version Version { get; } = new Version(3, 1, 4); + public override Version Version { get; } = new Version(3, 1, 5); public override Version RequiredExiledVersion { get; } = new Version(2, 1, 29, 0); public PlayerEvents PlayerEvents;