private void OnInitialize(EventArgs args) { SetupDb(); (config = config.Read(configPath)).Write(configPath); Commands.ChatCommands.Add(new Command("jp.imprison", Imprison, "imprison")); Commands.ChatCommands.Add(new Command("jp.imprison", SetFree, "setfree")); Commands.ChatCommands.Add(new Command("jp.reload", JPReload, "jpreload")); Commands.ChatCommands.Add(new Command("jp.killzones.set", KillzoneReg, "killzone", "kz", "killreg", "kr")); }
private void JPReload(CommandArgs args) { (config = config.Read(configPath)).Write(configPath); args.Player.SendSuccessMessage("Reloaded Jail/Prison config."); }