コード例 #1
0
 public bool OnCommand(BaseClient client, string[] args)
 {
     if (args.Length > 1)
     {
         string a;
         if ((a = args[1]) != null)
         {
             if (a == "-reload")
             {
                 CommandMgr.LoadCommands();
                 return(true);
             }
             if (a == "-list")
             {
                 CommandMgr.DisplaySyntax(client);
                 return(true);
             }
         }
         this.DisplaySyntax(client);
     }
     else
     {
         this.DisplaySyntax(client);
     }
     return(true);
 }
コード例 #2
0
        public bool OnCommand(BaseClient client, string[] args)
        {
            if (args.Length > 1)
            {
                switch (args[1])
                {
                case "-reload":
                    CommandMgr.LoadCommands();
                    break;

                case "-list":
                    CommandMgr.DisplaySyntax(client);
                    break;

                default:
                    DisplaySyntax(client);
                    break;
                }
            }
            else
            {
                DisplaySyntax(client);
            }
            return(true);
        }
コード例 #3
0
        public bool OnCommand(BaseClient client, string[] args)
        {
            if (args.Length <= 1)
            {
                this.DisplaySyntax(client);
            }
            else
            {
                string str = args[1];
                if (str != null)
                {
                    if (!(str == "-reload"))
                    {
                        if (str == "-list")
                        {
                            CommandMgr.DisplaySyntax(client);
                            goto Label_0049;
                        }
                    }
                    else
                    {
                        CommandMgr.LoadCommands();
                        goto Label_0049;
                    }
                }
                this.DisplaySyntax(client);
            }
Label_0049:
            return(true);
        }
コード例 #4
0
 public bool OnCommand(BaseClient client, string[] args)
 {
     CommandMgr.DisplaySyntax(client);
     return(true);
 }