Provides a set of events that fire within the broader scripting system within 8Crafter's Server Utilities & Debug Sticks add-on.

Implements

Constructors

Accessors

Constructors

Accessors

  • get modifiedChatMessageSend(): {
        getAll(): Globals.SubscribedEvent<
            "andexdb.afterEvents.modifiedChatMessageSend",
            never,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"andexdb.afterEvents.modifiedChatMessageSend">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "andexdb.afterEvents.modifiedChatMessageSend",
            >,
        ): void;
    }

    Returns {
        getAll(): Globals.SubscribedEvent<
            "andexdb.afterEvents.modifiedChatMessageSend",
            never,
        >[];
        subscribe(
            callback: string,
        ): Globals.SubscribedEvent<"andexdb.afterEvents.modifiedChatMessageSend">;
        unsubscribe(
            subscription: Globals.SubscribedEvent<
                "andexdb.afterEvents.modifiedChatMessageSend",
            >,
        ): void;
    }

    • getAll:function
      • Gets all event subscriptions to this event type.

        Returns Globals.SubscribedEvent<"andexdb.afterEvents.modifiedChatMessageSend", never>[]

        The event subscriptions.

    • subscribe:function
      • Creates a new event subscription.

        Parameters

        • callback: string

        Returns Globals.SubscribedEvent<"andexdb.afterEvents.modifiedChatMessageSend">

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the event callback is an empty string.

        If the event callback is not a string.

        If the event callback is not a valid stringified JavaScript function.

    • unsubscribe:function
      • Deletes the provided event subscription.

        Parameters

        Returns void

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

        If the subscription is not an instance of SubscribedEvent.

        If the subscription is not for the andexdb.afterEvents.modifiedChatMessageSend event.

    Fires after a modified chat message is sent.

    This is triggered by the chat ranks system of the add-on, if the chat ranks system is disabled this event will never fire.

    Note: If the modified chat message send event is cancelled from a subscription to Events.andexdb.afterEvents.modifiedChatMessageSend, this event will not fire.

    This property can be read in early-execution mode.