Ejemplo n.º 1
0
 public static void issueCommand(string alias)
 {
     foreach (Command command in commands)
     {
         if (command.HasAlias(alias))
         {
             command.CommandDelegate(new CommandArgs(alias, UserList.getUserFromPlayer(Network.player), null));
             return;
         }
     }
 }
Ejemplo n.º 2
0
 public static Boolean isCommand(string text, int type, NetworkPlayer networkplayer)
 {
     usingHiddenChat = true;
     if (!text.StartsWith("/"))
     {
         return(false); //show the text sent
     }
     else
     {
         try
         {
             handleCommandText(text, type, UserList.getUserFromPlayer(networkplayer));
         }
         catch (Exception e)
         {
             Loader.Log(e.Message);
         }
         return(true);  //dont show the text sent
     }
 }