using ConVar; using Facepunch; using Facepunch.Extend; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Oxide.Core; using Oxide.Core.Libraries; using Oxide.Core.Libraries.Covalence; using Oxide.Core.Plugins; using Oxide.Game.Rust.Libraries; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Text.RegularExpressions; using UnityEngine; using WebSocketSharp; using Application = UnityEngine.Application; using Time = Oxide.Core.Libraries.Time; #pragma warning disable 8600 #pragma warning disable 8601 namespace Oxide.Plugins { [Info("Server Armour", "Pho3niX90", "2.83.7")] [Description("Protect your server! Auto ban known hackers, scripters and griefer accounts, and notify server owners of threats.")] class ServerArmour : CovalencePlugin { #if CARBON bool isCarbon = true; #else bool isCarbon = false; #endif #region Variables string api_hostname = "https://serverarmour.com"; // Dictionary _playerData = new Dictionary(); private Time _time = GetLibrary