コード例 #1
0
        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"));
        }
コード例 #2
0
 private void JPReload(CommandArgs args)
 {
     (config = config.Read(configPath)).Write(configPath);
     args.Player.SendSuccessMessage("Reloaded Jail/Prison config.");
 }