• Displays a dimension selector form for world border settings to the specified entity.

    Parameters

    Returns Promise<-2 | 0 | 1>

    A promise that resolves to:

    • 1 if the user cancels the form or selects "Back".
    • 0 if the user completes the form without issues.
    • -2 if an error occurs.

    The function first checks if ultra security mode is enabled and if the player has the required permission to access the settings. If the player does not have the required permission, an access denied message is shown.

    The form allows the user to select between "Overworld", "Nether", "The End", and "Back". If the user selects a dimension, the worldBorderSettings function is called with the selected dimension. If the user selects "Back" or cancels the form, the function returns 1. If an error occurs, the function returns -2.