• Edits the module imports configuration for a given module.

    Parameters

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

      The source entity which can be an Entity, executeCommandPlayerW, or Player.

    • module:
          | "ui"
          | "main"
          | "spawn_protection"
          | "coordinates"
          | "utilities"
          | "ban"
          | "player_save"
          | "block_generation_utilities"
          | "command_utilities"
          | "commands_list"
          | "chat"
          | "commands_documentation"
          | "commands"
          | "errors"

      The module name from the list of module names for module imports configuration.

    • folder: string

    Returns Promise<-2 | 0 | 1>

    A promise that resolves to:

    • 0 if the form is closed,
    • 1 if the form is canceled or the "Back" button is pressed,
    • -2 if an error occurs.