Beispiel #1
0
 private void Reload_Config(CommandArgs args)
 {
     if (LexiconPlugin.ReadConfig())
     {
         args.Player.SendMessage("LexiconPlugin config reloaded sucessfully.", Color.Green);
     }
 }
Beispiel #2
0
 public override void Initialize()
 {
     Commands.ChatCommands.Add(new Command("wordreplacement.lexiconify", new CommandDelegate(this.Lexiconify), new string[]
     {
         "lexiconify, lex"
     }));
     Commands.ChatCommands.Add(new Command("wordreplacement.reload", new CommandDelegate(this.Reload_Config), new string[]
     {
         "lexreload"
     }));
     ServerApi.Hooks.ServerChat.Register(this, new HookHandler <ServerChatEventArgs>(this.OnChat));
     LexiconPlugin.ReadConfig();
 }