A class containing the configuration information for the add-on.

Accessors

  • get chatCommandPrefix(): string

    The prefix for all built-in chat commands.

    Dynamic Property ID: andexdbSettings:chatCommandPrefix

    Returns string

    "\\"
    
  • set chatCommandPrefix(prefix: string): void

    Parameters

    • prefix: string

    Returns void

  • get chatCommandsEnabled(): boolean

    Whether or not chat commands are enabled.

    Dynamic Property ID: andexdbSettings:chatCommandsEnabled

    Returns boolean

    true
    

    Disabling this setting is highly discouraged.

  • set chatCommandsEnabled(enabled: boolean): void

    Parameters

    • enabled: boolean

    Returns void

  • get gametestStructureDefaultSpawnLocation(): Vector3

    The default spawn location for the gametest structures, this is used when spawning in no AI entities and simulated players.

    Dynamic Property ID: andexdbSettings:gametestStructureDefaultSpawnLocation

    Returns Vector3

    { x: 1000000000, y: 100, z: 1000000000 }
    
  • set gametestStructureDefaultSpawnLocation(
        gametestStructureDefaultSpawnLocation: Partial<Vector3>,
    ): void

    Parameters

    • gametestStructureDefaultSpawnLocation: Partial<Vector3>

    Returns void

  • get invalidChatCommandAction(): number

    The action to take when an invalid chat command is entered.

    0 = Do Nothing
    1 = Send Message
    2 = Cancel Message
    3 = Warn Player

    Dynamic Property ID: andexdbSettings:invalidChatCommandAction

    Returns number

    3
    
  • set invalidChatCommandAction(invalidChatCommandAction: number): void

    Parameters

    • invalidChatCommandAction: number

    Returns void

  • get spawnCommandAllowCrossDimensionalTeleport(): boolean

    Whether or not players can teleport to spawn using the \spawn command when they are in a different dimension than the spawn.

    Dynamic Property ID: andexdbSettings:spawnCommandAllowCrossDimensionalTeleport

    Returns boolean

    true
    
  • set spawnCommandAllowCrossDimensionalTeleport(enabled: boolean): void

    Parameters

    • enabled: boolean

    Returns void

  • get spawnCommandLocation(): | DimensionLocation
    | { dimension: Dimension; x: null; y: null; z: null }

    The location to teleport players when they use the \spawn command.

    Dynamic Property ID: andexdbSettings:spawnCommandLocation

    Returns DimensionLocation | { dimension: Dimension; x: null; y: null; z: null }

    { x: null, y: null, z: null, dimension: overworld }
    
  • set spawnCommandLocation(
        spawnCommandLocation:
            | DimensionLocation
            | { dimension: Dimension; x: null; y: null; z: null },
    ): void

    Parameters

    Returns void

  • get undoClipboardMode(): StructureSaveMode

    The save mode for the undo clipboard.

    Dynamic Property ID: andexdbSettings:undoClipboardMode

    Returns StructureSaveMode

    "Memory"
    
  • set undoClipboardMode(undoClipboardMode: StructureSaveMode): void

    Parameters

    Returns void

  • get validChatCommandPrefixes(): string

    The list of command prefixes that the add-on will recognize and leave chat messages starting with those alone to allow other chat command add-ons to use them.

    Dynamic Property ID: andexdbSettings:validChatCommandPrefixes

    Returns string

    ""
    
  • set validChatCommandPrefixes(prefixes: string): void

    Parameters

    • prefixes: string

    Returns void

Methods

  • Applies the specified settings to the config.

    Type Parameters

    Parameters

    • settings: DeepPartial<T>

      The settings to apply to the config, as a partial of the JSONified version of the config.

    Returns void

    config.applySettings({
    worldBorder: {
    overworld: {
    enabled: true
    },
    },
    chatCommandPrefix: "!",
    });
  • Resets the specified subsection of the config, or the entire config if no subsection is specified.

    Parameters

    • Optionalsubsection: any

      The subsection of the config to reset. If not specified, the entire config will be reset.

    Returns void

    config.reset(config.worldBorder.overworld);
    
    config.reset();
    
  • Converts the config object to a JSON-serializable object.

    Returns FilterKey<
        typeof Globals.config,
        ["prototype", "reset", "applySettings", "toJSON"],
    >

    An object that can be serialized to JSON, containing all the properties of the config object except for the ones with the names "prototype", "reset", "applySettings", and "toJSON", and the ones that are not enumerable.

Subclasses

  • get antiSpamSystem(): typeof antiSpamSystem

    The anti-spam system settings.

    Returns typeof antiSpamSystem

  • get bountySystem(): typeof bountySystem

    The bounty system settings.

    Returns typeof bountySystem

  • get chatRanks(): typeof chatRanks

    The chat and name tags settings.

    Returns typeof chatRanks

  • get homeSystem(): typeof homeSystem

    The home system settings.

    Returns typeof homeSystem

  • get moderation(): typeof moderation

    The moderation settings.

    Returns typeof moderation

  • get moneySystem(): typeof moneySystem

    The money system settings.

    Returns typeof moneySystem

  • get shopSystem(): typeof shopSystem

    The shop system settings.

    Returns typeof shopSystem

  • get system(): typeof system

    System settings.

    Returns typeof system

  • get teleportSystems(): typeof teleportSystems

    The settings for all teleportation related systems, features, and commands of that add-on that are available to regular players.

    Returns typeof teleportSystems

  • get tpaSystem(): typeof tpaSystem

    The teleport request system settings.

    Returns typeof tpaSystem

  • get ui(): typeof ui

    The UI settings.

    Returns typeof ui

  • get warpsSystem(): typeof warpsSystem

    The warps system settings.

    Returns typeof warpsSystem

  • get worldBorder(): typeof worldBorder

    The world border settings.

    Returns typeof worldBorder