fCraft.CommandManager.RaiseCommandRegisteringEvent C# (CSharp) Method

RaiseCommandRegisteringEvent() private static method

private static RaiseCommandRegisteringEvent ( CommandDescriptor descriptor ) : bool
descriptor CommandDescriptor
return bool
        private static bool RaiseCommandRegisteringEvent( CommandDescriptor descriptor )
        {
            var h = CommandRegistering;
            if ( h == null )
                return false;
            var e = new CommandRegistringEventArgs( descriptor );
            h( null, e );
            return e.Cancel;
        }