/// <summary> /// Emulates command execution /// </summary> /// <param name="command">The command to execute</param> public static ECommandRunError ExecuteCommand(string command, Player.PointBlankPlayer executor) { CM cmd = (CM)Enviroment.services["CommandManager.CommandManager"].ServiceClass; return(cmd.ExecuteCommand(command, executor)); }
internal static void RunCommandExecute(PointBlankCommand command, string[] args, Player.PointBlankPlayer executor, ref bool allowExecute) { OnCommandExecuted?.Invoke(command, args, executor, ref allowExecute); }