Script API - v26.50.20
    Preparing search index...

    Controls the allow list for the server. Only available on dedicated server.

    export class AllowList {
    private constructor();
    enabled: boolean;
    readonly entries: AllowListEntry[];
    add(player: AllowListEntry | minecraftserver.Player): void;
    clear(): void;
    contains(player: AllowListEntry | minecraftserver.Player): boolean;
    reloadFile(): void;
    remove(player: AllowListEntry | minecraftserver.Player): void;
    }
    Index

    Constructors

    Properties

    enabled: boolean

    This property can't be edited in restricted-execution mode.

    This property can't be read in early-execution mode.

    entries: AllowListEntry[]

    The list of entries in the allow list.

    This property can't be read in early-execution mode.

    Methods

    • Returns void

      Clears the allow list, removing all entries.

      This function can't be called in restricted-execution mode.

      This function can't be called in early-execution mode.

    • Returns void

      Reloads the server's allow list from disk.

      This function can't be called in restricted-execution mode.

      This function can throw errors.

      AllowListFileReloadError

      This function can't be called in early-execution mode.