• A function that shows a menu of all protected areas for a given custom category. The menu has buttons for each protected area, and a button to add a new protected area.

    Parameters

    • sourceEntity: loosePlayerType

      The player viewing the UI.

    • prefix: string

      The custom category to show the protected areas for.

    Returns Promise<0 | 1>

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

    Make this menu have pages.

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