[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/script-host](https://jsprismarine.dev/api/@jsprismarine/script-host/index.md) / [host/jsprismarineMembers](https://jsprismarine.dev/api/@jsprismarine/script-host/host/jsprismarineMembers/index.md) / ScriptServerList

# Class: ScriptServerList

Defined in: [script-host/src/host/jsprismarineMembers.ts:403](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineMembers.ts#L403)

The server list changes the packs of one runtime made, each pack its own owner. The packs'
scripts stop together, on a reload or a shutdown, so the runtime takes every change back then.

## Constructors

### Constructor

> **new ScriptServerList**(`members`): `ScriptServerList`

Defined in: [script-host/src/host/jsprismarineMembers.ts:408](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineMembers.ts#L408)

#### Parameters

##### members

[`ScriptServerListMembers`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/jsprismarineMembers/index.md#scriptserverlistmembers)

#### Returns

`ScriptServerList`

## Methods

### current()

> **current**(): [`ScriptServerListStatus`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/jsprismarineMembers/index.md#scriptserverliststatus)

Defined in: [script-host/src/host/jsprismarineMembers.ts:413](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineMembers.ts#L413)

What the list shows now.

#### Returns

[`ScriptServerListStatus`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/jsprismarineMembers/index.md#scriptserverliststatus)

***

### reset()

> **reset**(`owner`): `void`

Defined in: [script-host/src/host/jsprismarineMembers.ts:424](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineMembers.ts#L424)

Takes a pack's changes back. A pack that changed nothing is left alone.

#### Parameters

##### owner

`object`

#### Returns

`void`

***

### resetAll()

> **resetAll**(): `void`

Defined in: [script-host/src/host/jsprismarineMembers.ts:430](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineMembers.ts#L430)

Takes every pack's changes back, as the scripts stop.

#### Returns

`void`

***

### update()

> **update**(`owner`, `fields`): `void`

Defined in: [script-host/src/host/jsprismarineMembers.ts:418](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineMembers.ts#L418)

Layers a pack's changes over the list.

#### Parameters

##### owner

`object`

##### fields

`Partial`\<[`ScriptServerListStatus`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/jsprismarineMembers/index.md#scriptserverliststatus)\>

#### Returns

`void`
