• Displays and handles the world border settings form for a specified dimension.

    Parameters

    • sourceEntitya: Entity | Player | Globals.modules.cmds.executeCommandPlayerW

      The entity or player who initiated the request.

    • dimension: number = 0

      The dimension for which the world border settings are to be displayed (0: Overworld, 1: Nether, 2: The End). Default is 0.

    Returns Promise<-2 | 0 | 1>

    A promise that resolves to:

    • 1 if the form was successfully submitted or the user canceled the form.
    • 0 if the user does not have permission to access the settings.
    • -2 if an error occurred.