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

# host/jsprismarineMembers

## Classes

- [ScriptBossBars](https://jsprismarine.dev/api/@jsprismarine/script-host/host/jsprismarineMembers/classes/ScriptBossBars.md)
- [ScriptPlayerListNames](https://jsprismarine.dev/api/@jsprismarine/script-host/host/jsprismarineMembers/classes/ScriptPlayerListNames.md)
- [ScriptServerList](https://jsprismarine.dev/api/@jsprismarine/script-host/host/jsprismarineMembers/classes/ScriptServerList.md)

## Interfaces

### JsprismarineServerMembers

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

What `@jsprismarine/server`'s members that reach the running server read and show. Players are
named by their entity ids, as `ScriptWorld.players` lists them. Boss bars are named by an id
the runtime gives each bar, which no other bar of the runtime has, a reload included.

#### Properties

##### levels?

> `readonly` `optional` **levels?**: [`ScriptLevelMembers`](#scriptlevelmembers)

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

The server's levels. Without it the module leaves `levels` out.

##### permissions?

> `readonly` `optional` **permissions?**: [`ScriptPermissionMembers`](#scriptpermissionmembers)

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

The permission files. Without it the module leaves `permissions` out, as an older server would.

##### players?

> `readonly` `optional` **players?**: [`ScriptPlayerMembers`](#scriptplayermembers)

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

Who the players are. Without it the module leaves `players` out.

##### serverList?

> `readonly` `optional` **serverList?**: [`ScriptServerListMembers`](#scriptserverlistmembers)

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

What a server list shows. Without it the module leaves `serverList` out.

#### Methods

##### hideBossBar()

> **hideBossBar**(`player`, `bar`): `void`

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

Takes a bar off a player's screen.

###### Parameters

###### player

`string`

###### bar

`number`

###### Returns

`void`

##### performance()

> **performance**(): [`ScriptPerformance`](#scriptperformance)

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

How fast the server ticks right now.

###### Returns

[`ScriptPerformance`](#scriptperformance)

##### ping()

> **ping**(`player`): `number` \| `undefined`

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

A player's round trip time in milliseconds, or undefined while there is no sample.

###### Parameters

###### player

`string`

###### Returns

`number` \| `undefined`

##### resetPlayerListName()

> **resetPlayerListName**(`player`): `void`

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

Gives a player's player list entry its login name back.

###### Parameters

###### player

`string`

###### Returns

`void`

##### setPlayerListName()

> **setPlayerListName**(`player`, `name`): `void`

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

Changes the name every client's player list shows for a player.

###### Parameters

###### player

`string`

###### name

`string`

###### Returns

`void`

##### showBossBar()

> **showBossBar**(`player`, `bar`, `state`): `void`

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

Puts a new bar on a player's screen, in front of the bars they already see.

###### Parameters

###### player

`string`

###### bar

`number`

###### state

[`ScriptBossBarState`](#scriptbossbarstate)

###### Returns

`void`

##### updateBossBar()

> **updateBossBar**(`player`, `bar`, `state`): `void`

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

Changes what a bar on a player's screen shows, where it is.

###### Parameters

###### player

`string`

###### bar

`number`

###### state

[`ScriptBossBarState`](#scriptbossbarstate)

###### Returns

`void`

***

### ScriptBossBarState

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

What one boss bar shows.

#### Properties

##### color

> `readonly` **color**: `"blue"` \| `"green"` \| `"red"` \| `"pink"` \| `"yellow"` \| `"purple"` \| `"rebeccaPurple"` \| `"white"`

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

##### progress

> `readonly` **progress**: `number`

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

From 0 to 1.

##### text

> `readonly` **text**: `string`

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

***

### ScriptKnownPlayer

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

A player who joined the server, as `players.find` in `@jsprismarine/server` gives them.

#### Properties

##### edition

> `readonly` **edition**: `"bedrock"` \| `"java"`

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

##### key

> `readonly` **key**: `string`

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

The id that stays the same from one login to the next: the subject in the form `/perms` reads.

##### name

> `readonly` **name**: `string`

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

##### uuid

> `readonly` **uuid**: `string`

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

##### xuid?

> `readonly` `optional` **xuid?**: `string`

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

Absent for a player without a verified Xbox Live account.

***

### ScriptLevelInfo

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

One level, as `levels` in `@jsprismarine/server` gives it.

#### Properties

##### attached

> `readonly` **attached**: `boolean`

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

##### entry

> `readonly` **entry**: `boolean`

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

Whether players join the server in it.

##### id

> `readonly` **id**: `string`

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

##### name

> `readonly` **name**: `string`

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

##### players

> `readonly` **players**: readonly `string`[]

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

The names of the players in it.

***

### ScriptLevelMembers

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

What `levels` in `@jsprismarine/server` reads and changes of the server's levels, for the
runtime of one level. A level is named by its name or its UUID, and players by their entity ids.
The operations that take a while answer a promise, which rejects with a message for a script.

#### Methods

##### attach()

> **attach**(`level`): `Promise`\<[`ScriptLevelInfo`](#scriptlevelinfo)\>

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

###### Parameters

###### level

`string`

###### Returns

`Promise`\<[`ScriptLevelInfo`](#scriptlevelinfo)\>

##### create()

> **create**(`name`, `preset`, `seed`): `Promise`\<[`ScriptLevelInfo`](#scriptlevelinfo)\>

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

###### Parameters

###### name

`string`

###### preset

`string` \| `undefined`

###### seed

`string` \| `undefined`

###### Returns

`Promise`\<[`ScriptLevelInfo`](#scriptlevelinfo)\>

##### current()

> **current**(): [`ScriptLevelInfo`](#scriptlevelinfo)

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

The level the runtime's packs run in.

###### Returns

[`ScriptLevelInfo`](#scriptlevelinfo)

##### detach()

> **detach**(`level`): `Promise`\<`void`\>

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

###### Parameters

###### level

`string`

###### Returns

`Promise`\<`void`\>

##### levelOf()

> **levelOf**(`player`): [`ScriptLevelInfo`](#scriptlevelinfo) \| `undefined`

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

The level a player is in, or undefined for a player who left.

###### Parameters

###### player

`string`

###### Returns

[`ScriptLevelInfo`](#scriptlevelinfo) \| `undefined`

##### list()

> **list**(): readonly [`ScriptLevelInfo`](#scriptlevelinfo)[]

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

Every level, the attached ones first.

###### Returns

readonly [`ScriptLevelInfo`](#scriptlevelinfo)[]

##### transfer()

> **transfer**(`player`, `level`, `toSpawn`): `Promise`\<`boolean`\>

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

Moves a player to an attached level.

###### Parameters

###### player

`string`

###### level

`string`

###### toSpawn

`boolean`

###### Returns

`Promise`\<`boolean`\>

Whether the move landed.

***

### ScriptPermissionMembers

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

What `permissions` in `@jsprismarine/server` reads and writes of the server's permission files.
Players are named by their entity ids and groups by their names. A write persists on the
server's own schedule; a bad argument throws before anything is written.

#### Methods

##### addToGroup()

> **addToGroup**(`player`, `group`, `expires?`): `void`

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

###### Parameters

###### player

`string`

###### group

`string`

###### expires?

`string`

###### Returns

`void`

###### Throws

For a malformed expiry, a group the file lacks, or a player who left.

##### grant()

> **grant**(`player`, `node`, `expires?`): `void`

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

###### Parameters

###### player

`string`

###### node

`string`

###### expires?

`string`

###### Returns

`void`

###### Throws

For a malformed node or expiry, or a player who left.

##### grantToGroup()

> **grantToGroup**(`group`, `node`, `expires?`): `void`

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

###### Parameters

###### group

`string`

###### node

`string`

###### expires?

`string`

###### Returns

`void`

###### Throws

For a malformed node or expiry, or a group the file lacks.

##### groupsOf()

> **groupsOf**(`player`): readonly `string`[]

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

The groups the player holds directly, heaviest first.

###### Parameters

###### player

`string`

###### Returns

readonly `string`[]

##### has()

> **has**(`player`, `node`): `boolean`

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

###### Parameters

###### player

`string`

###### node

`string`

###### Returns

`boolean`

##### metaOf()

> **metaOf**(`player`, `key`): `string` \| `undefined`

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

###### Parameters

###### player

`string`

###### key

`string`

###### Returns

`string` \| `undefined`

##### onChange()

> **onChange**(`listener`): () => `void`

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

Hears of every change, however it was made.

###### Parameters

###### listener

(`change`) => `void`

###### Returns

A function that stops listening.

() => `void`

##### primaryGroupOf()

> **primaryGroupOf**(`player`): `string`

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

###### Parameters

###### player

`string`

###### Returns

`string`

##### removeFromGroup()

> **removeFromGroup**(`player`, `group`): `void`

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

###### Parameters

###### player

`string`

###### group

`string`

###### Returns

`void`

##### revoke()

> **revoke**(`player`, `node`): `void`

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

###### Parameters

###### player

`string`

###### node

`string`

###### Returns

`void`

##### revokeFromGroup()

> **revokeFromGroup**(`group`, `node`): `void`

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

###### Parameters

###### group

`string`

###### node

`string`

###### Returns

`void`

##### weightOf()

> **weightOf**(`player`): `number`

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

The weight of the player's primary group.

###### Parameters

###### player

`string`

###### Returns

`number`

***

### ScriptPermissionsChange

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

A permission change. `target` is absent after the files were read again, which may have changed anything.

#### Properties

##### target?

> `readonly` `optional` **target?**: [`ScriptPermissionsTarget`](#scriptpermissionstarget)

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

***

### ScriptPlayerIdentity

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

An online player's account, client and connection, as `players.identity` gives them.

#### Properties

##### address

> `readonly` **address**: `string`

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

##### clientVersion?

> `readonly` `optional` **clientVersion?**: `string`

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

Absent when the client reported no game version.

##### deviceOs?

> `readonly` `optional` **deviceOs?**: `string`

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

The `BuildPlatform` name of the client's operating system, absent when the server knows none.

##### edition

> `readonly` **edition**: `"bedrock"` \| `"java"`

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

##### key

> `readonly` **key**: `string`

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

##### name

> `readonly` **name**: `string`

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

##### port

> `readonly` **port**: `number`

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

##### protocolVersion

> `readonly` **protocolVersion**: `number`

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

##### uuid

> `readonly` **uuid**: `string`

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

##### xuid?

> `readonly` `optional` **xuid?**: `string`

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

The XUID the login carried, absent when it carried none.

***

### ScriptPlayerMembers

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

What `players` in `@jsprismarine/server` reads of the server's players: the accounts, clients
and connections of the online ones, by entity id, and the accounts of every player who joined.

#### Methods

##### find()

> **find**(`query`): [`ScriptKnownPlayer`](#scriptknownplayer) \| `undefined`

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

A player who joined, by key, name, XUID or UUID, or undefined for one the server does not know.

###### Parameters

###### query

`string`

###### Returns

[`ScriptKnownPlayer`](#scriptknownplayer) \| `undefined`

##### identity()

> **identity**(`player`): [`ScriptPlayerIdentity`](#scriptplayeridentity) \| `undefined`

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

An online player's identity, or undefined for a player who left.

###### Parameters

###### player

`string`

###### Returns

[`ScriptPlayerIdentity`](#scriptplayeridentity) \| `undefined`

***

### ScriptServerListMembers

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

What `serverList` in `@jsprismarine/server` reads and changes of the status every transport
advertises. Each change belongs to an owner, one pack's scripts, and the owner that changed a
field last shows.

#### Methods

##### current()

> **current**(): [`ScriptServerListStatus`](#scriptserverliststatus)

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

What the list shows now.

###### Returns

[`ScriptServerListStatus`](#scriptserverliststatus)

##### reset()

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

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

Takes every change an owner made back.

###### Parameters

###### owner

`object`

###### Returns

`void`

##### update()

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

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

Layers an owner's changes over the status, merged with its earlier ones.

###### Parameters

###### owner

`object`

###### fields

`Partial`\<[`ScriptServerListStatus`](#scriptserverliststatus)\>

###### Returns

`void`

***

### ScriptServerListStatus

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

What a server list shows of the server, as `serverList` in `@jsprismarine/server` reads it.

#### Properties

##### levelName

> `readonly` **levelName**: `string`

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

The second name, below the MOTD.

##### maxPlayers

> `readonly` **maxPlayers**: `number`

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

##### motd

> `readonly` **motd**: `string`

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

##### onlinePlayers

> `readonly` **onlinePlayers**: `number`

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

## Type Aliases

### PerformanceProperties

> **PerformanceProperties** = *typeof* [`JSPRISMARINE_SERVER`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/jsprismarineServer/index.md#jsprismarine_server)\[`"performance"`\]\[`"properties"`\]

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

The properties the `performance` member of `@jsprismarine/server` declares.

***

### ScriptPerformance

> **ScriptPerformance** = `{ readonly [Key in keyof PerformanceProperties]: PerformanceProperties[Key]["type"] extends "numbers" ? readonly number[] : number }`

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

How fast the server ticks, with a value for each property `performance` declares.

***

### ScriptPermissionsTarget

> **ScriptPermissionsTarget** = \{ `group`: `string`; \} \| \{ `name`: `string`; `player?`: `string`; \}

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

What a permission change touched: a group by name, or a user by the name their record shows and their entity id while online.

## Variables

### SERVER\_PLACEHOLDER\_OWNER

> `const` **SERVER\_PLACEHOLDER\_OWNER**: `object`

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

The owner of the namespaces the server registers, such as `perms`, which outlive a reload.

#### Type Declaration

##### name

> **name**: `string` = `'JSPrismarine'`

## Functions

### bossBarOptions()

> **bossBarOptions**(`engine`, `value`, `member`): `Partial`\<[`ScriptBossBarState`](#scriptbossbarstate)\>

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

The properties a pack passed as `BossBarOptions`, checked. A property it leaves out is absent.

#### Parameters

##### engine

[`ScriptEngine`](https://jsprismarine.dev/api/@jsprismarine/script-host/ScriptEngine/classes/ScriptEngine.md)

##### value

[`ScriptValue`](https://jsprismarine.dev/api/@jsprismarine/script-host/values/index.md#scriptvalue)

##### member

`string`

The member the pack called, which an error names.

#### Returns

`Partial`\<[`ScriptBossBarState`](#scriptbossbarstate)\>

#### Throws

When the options are not an object, or a property is not of its type.

***

### serverListOptions()

> **serverListOptions**(`engine`, `value`, `member`): `Partial`\<[`ScriptServerListStatus`](#scriptserverliststatus)\>

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

The changes a pack's `serverList.update` options ask for, checked.

#### Parameters

##### engine

[`ScriptEngine`](https://jsprismarine.dev/api/@jsprismarine/script-host/ScriptEngine/classes/ScriptEngine.md)

##### value

[`ScriptValue`](https://jsprismarine.dev/api/@jsprismarine/script-host/values/index.md#scriptvalue)

##### member

`string`

#### Returns

`Partial`\<[`ScriptServerListStatus`](#scriptserverliststatus)\>

#### Throws

JspModuleArgument for options that are not an object, a name that is not a string or
  holds a `;`, or a count that is not a whole number from 0 to MAX\_COUNT.
