//public static List<int> startingItems; //public static List<string> Rooms; /*public static List<string> Tiers; * public static Dictionary<string, string> TierRooms; * public static Dictionary<string, List<int>> TierItems; * public static Dictionary<string, string> TierRoomsStart; * public static Dictionary<string, List<int>> TierItemsStart; * public static RoleType zeBorderRole = RoleType.Scp173; * public static float zeBorderHP = 1000f; * public static float combatHP = 100f; * public static bool dbgRooms = false; * public static string pluginDir;*/ public override void OnDisabled() { base.OnDisabled(); if (PLEV != null) { Exiled.Events.Handlers.Player.Escaping -= PLEV.ThereIsNoEscape; Exiled.Events.Handlers.Server.RoundStarted -= PLEV.CommitMassRedacted; Exiled.Events.Handlers.Player.Died += PLEV.MansNotAlive; Exiled.Events.Handlers.Server.RespawningTeam -= PLEV.CloseTheBorder; Exiled.Events.Handlers.Player.InteractingDoor -= PLEV.AllowTheBorderTHROUGH; Exiled.Events.Handlers.Player.Joined -= PLEV.EnterTheMatchTheyMust; Exiled.Events.Handlers.Map.Decontaminating -= PLEV.KILLTheLCZ; Exiled.Events.Handlers.Player.Left -= PLEV.PersonLeave; PLEV = null; } main = null; }
public override void OnEnabled() { base.OnEnabled(); Log.Info("Battle Royale enabled."); PLEV = new PluginEvents(this); Exiled.Events.Handlers.Player.Escaping += PLEV.ThereIsNoEscape; Exiled.Events.Handlers.Server.RoundStarted += PLEV.CommitMassRedacted; Exiled.Events.Handlers.Player.Died += PLEV.MansNotAlive; Exiled.Events.Handlers.Server.RespawningTeam += PLEV.CloseTheBorder; Exiled.Events.Handlers.Player.InteractingDoor += PLEV.AllowTheBorderTHROUGH; Exiled.Events.Handlers.Player.Joined += PLEV.EnterTheMatchTheyMust; Exiled.Events.Handlers.Map.Decontaminating += PLEV.KILLTheLCZ; Exiled.Events.Handlers.Player.Left += PLEV.PersonLeave; /*Events.CheckEscapeEvent += PLEV.ThereIsNoEscape; * Events.RoundStartEvent += PLEV.CommitMassRedacted; * Events.PlayerDeathEvent += PLEV.MansNotAlive; * Events.TeamRespawnEvent += PLEV.CloseTheBorder; * Events.DoorInteractEvent += PLEV.AllowTheBorderTHROUGH; * Events.PlayerJoinEvent += PLEV.EnterTheMatchTheyMust; * Events.DecontaminationEvent += PLEV.KILLTheLCZ; * Events.PlayerLeaveEvent += PLEV.PersonLeave;*/ main = this; }