public Core() { Instance = this; Info = new PluginInfo("BPEssentials", "bpe") { Description = "Basic commands for powerful moderation.", Website = "https://bpessentials.github.io/Docs/" }; KitsCooldownHandler = new CooldownHandler(Info.GroupNamespace + ":cooldowns:kits"); WarpsCooldownHandler = new CooldownHandler(Info.GroupNamespace + ":cooldowns:warps"); WarpHandler = new WarpHandler(); KitHandler = new KitHandler(); OnReloadRequestAsync(); SetCustomData(); EntityHandler = new EntityHandler(); EntityHandler.LoadEntities(); ModuleHandler = new ModuleHandler(); ModuleHandler.Initialize(); EventsHandler.Add("bpe:reload", new Action(OnReloadRequestAsync)); EventsHandler.Add("bpe:version", new Action <string>(OnVersionRequest)); new Commands.Save().StartSaveTimer(); Logger.LogInfo($"BP Essentials {(IsDevelopmentBuild() ? "[DEVELOPMENT-BUILD] " : "")}v{Version} loaded in successfully!"); }
public Core() { Instance = this; Info = new PluginInfo("BPEssentials", "BPE", new List <PluginAuthor> { new PluginAuthor("UserR00T"), new PluginAuthor("PLASMA_chicken") }) { Description = "Basic commands for powerful moderation.", Git = "https://github.com/UserR00T/BP-Essentials/", Website = "https://userr00t.github.io/BP-Essentials/" }; OnReloadRequestAsync(); SetCutsomData(); CooldownHandler = new CooldownHandler(); WarpHandler = new WarpHandler(); WarpHandler.LoadAll(); KitHandler = new KitHandler(); KitHandler.LoadAll(); EntityHandler = new EntityHandler(); EntityHandler.LoadEntities(); EventsHandler.Add("bpe:reload", new Action(OnReloadRequestAsync)); EventsHandler.Add("bpe:version", new Action <string>(OnVersionRequest)); Logger.LogInfo($"BP Essentials {(IsDevelopmentBuild() ? "[DEVELOPMENT-BUILD] " : "")}v{Version} loaded in successfully!"); }