Beispiel #1
0
 public static void DisplaySyntax(BaseClient client)
 {
     client.DisplayMessage("Commands list:");
     foreach (string str in GetCommandList(ePrivLevel.Admin, true))
     {
         client.DisplayMessage("         " + str);
     }
 }
Beispiel #2
0
 public static void DisplaySyntax(BaseClient client)
 {
     client.DisplayMessage("Commands list:");
     foreach (string str in GetCommandList(ePrivLevel.Admin, true))
     {
         client.DisplayMessage("         "+str);
     }
 }
Beispiel #3
0
 public static void DisplaySyntax(BaseClient client)
 {
     client.DisplayMessage("Commands list:");
     string[] commandList = CommandMgr.GetCommandList(ePrivLevel.Admin, true);
     for (int i = 0; i < commandList.Length; i++)
     {
         string str = commandList[i];
         client.DisplayMessage("         " + str);
     }
 }
 public virtual void DisplaySyntax(BaseClient client)
 {
     if (client != null)
     {
         CmdAttribute[] attrib = (CmdAttribute[])this.GetType().GetCustomAttributes(typeof(CmdAttribute), false);
         if (attrib.Length > 0)
         {
             client.DisplayMessage(attrib[0].Description);
             foreach (string str in attrib[0].Usage)
                 client.DisplayMessage(str);
         }
     }
 }
 public virtual void DisplaySyntax(BaseClient client)
 {
     if (client != null)
     {
         CmdAttribute[] attrib = (CmdAttribute[])this.GetType().GetCustomAttributes(typeof(CmdAttribute), false);
         if (attrib.Length > 0)
         {
             client.DisplayMessage(attrib[0].Description);
             foreach (string str in attrib[0].Usage)
             {
                 client.DisplayMessage(str);
             }
         }
     }
 }
 public virtual void DisplayMessage(BaseClient client, string message)
 {
     if (client != null)
     {
         client.DisplayMessage(message);
     }
 }
 public virtual void DisplayMessage(BaseClient client, string message)
 {
     if (client != null)
     {
         client.DisplayMessage(message);
     }
 }
Beispiel #8
0
 public virtual void DisplaySyntax(BaseClient client)
 {
     if (client != null)
     {
         CmdAttribute[] array = (CmdAttribute[])base.GetType().GetCustomAttributes(typeof(CmdAttribute), false);
         if (array.Length > 0)
         {
             client.DisplayMessage(array[0].Description);
             string[] usage = array[0].Usage;
             for (int i = 0; i < usage.Length; i++)
             {
                 string msg = usage[i];
                 client.DisplayMessage(msg);
             }
         }
     }
 }