コード例 #1
0
        /// <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));
        }
コード例 #2
0
 internal static void RunCommandExecute(PointBlankCommand command, string[] args, Player.PointBlankPlayer executor, ref bool allowExecute)
 {
     OnCommandExecuted?.Invoke(command, args, executor, ref allowExecute);
 }