internal static void RunCommandExecute(PointBlankCommand command, string[] args, Player.PointBlankPlayer executor, ref bool allowExecute)
 {
     OnCommandExecuted?.Invoke(command, args, executor, ref allowExecute);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Disables a command
        /// </summary>
        /// <param name="command">The command to disable</param>
        public static void DisableCommand(PointBlankCommand command)
        {
            CommandWrapper wrapper = CM.Commands.FirstOrDefault(a => a.CommandClass == command);

            wrapper?.Disable();
        }
 internal static void RunCommandDisable(PointBlankCommand command)
 {
     OnCommandDisabled?.Invoke(command);
 }