• Displays a menu to manage event subscriptions for an event category.

    Type Parameters

    • Category extends "world" | "system" | "andexdb"

      The category of events to manage.

    • BeforeOrAfter extends "beforeEvents" | "afterEvents" = "beforeEvents"

      Whether to manage the before or after events of the event category.

    Parameters

    • sourceEntity: loosePlayerType

      The player viewing the UI.

    • category: Category

      The category of events to manage.

    • beforeOrAfter: BeforeOrAfter

      Whether to manage the before or after events of the event category.

    Returns Promise<0 | 1>

    A promise that resolves to 0 if the previous menu should be closed, or 1 if the previous menu should be reopened.

    If sourceEntity is not an instance of the Player class or an instance of the executeCommandPlayerW class with a Player linked to it.