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

# host/jsprismarineServer

## Interfaces

### FunctionDefinition

Defined in: [script-host/src/host/jsprismarineServer.ts:40](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L40)

A function or a method: its TypeScript parameters and return type.

#### Properties

##### parameters

> `readonly` **parameters**: `string`

Defined in: [script-host/src/host/jsprismarineServer.ts:43](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L43)

The parameter list as TypeScript writes it, without the parentheses.

##### returns

> `readonly` **returns**: `string`

Defined in: [script-host/src/host/jsprismarineServer.ts:44](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L44)

##### summary

> `readonly` **summary**: `string`

Defined in: [script-host/src/host/jsprismarineServer.ts:41](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L41)

***

### InterfaceProperty

Defined in: [script-host/src/host/jsprismarineServer.ts:48](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L48)

A property of an interface the module declares, typed in TypeScript.

#### Properties

##### optional?

> `readonly` `optional` **optional?**: `true`

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

##### summary

> `readonly` **summary**: `string`

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

##### type

> `readonly` **type**: `string`

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

***

### LiveProperty

Defined in: [script-host/src/host/jsprismarineServer.ts:33](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L33)

A property the server answers each time a script reads it.

#### Properties

##### summary

> `readonly` **summary**: `string`

Defined in: [script-host/src/host/jsprismarineServer.ts:36](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L36)

##### type

> `readonly` **type**: `"number"` \| `"numbers"`

Defined in: [script-host/src/host/jsprismarineServer.ts:35](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L35)

A number, or a frozen list of them.

***

### ValueProperty

Defined in: [script-host/src/host/jsprismarineServer.ts:24](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L24)

A property of an object of plain values that stay the same while the server runs.

#### Properties

##### summary

> `readonly` **summary**: `string`

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

Its documentation, which the typings carry.

##### type

> `readonly` **type**: `"string"` \| `"number"`

Defined in: [script-host/src/host/jsprismarineServer.ts:25](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L25)

##### value?

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

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

Its value when it is the same on every server; the embedder supplies the others.

## Type Aliases

### JsprismarineBossBarColor

> **JsprismarineBossBarColor** = *typeof* [`JSPRISMARINE_TYPES`](#jsprismarine-types)\[`"BossBarColor"`\]\[`"values"`\]\[`number`\]

Defined in: [script-host/src/host/jsprismarineServer.ts:823](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L823)

A boss bar color as a script names it.

***

### JsprismarinePlayerEdition

> **JsprismarinePlayerEdition** = *typeof* [`JSPRISMARINE_TYPES`](#jsprismarine-types)\[`"PlayerEdition"`\]\[`"values"`\]\[`number`\]

Defined in: [script-host/src/host/jsprismarineServer.ts:826](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L826)

The edition of Minecraft a player plays, as a script names it.

***

### JsprismarineServerInfo

> **JsprismarineServerInfo** = `{ readonly [Key in keyof ServerProperties as ServerProperties[Key] extends { value: string } ? never : Key]: ServerProperties[Key]["type"] extends "number" ? number : string }`

Defined in: [script-host/src/host/jsprismarineServer.ts:835](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L835)

What the embedder tells `@jsprismarine/server` about the server: every property of
`jsprismarine` without a fixed value, typed as the module declares it.

***

### MemberDefinition

> **MemberDefinition** = \{ `kind`: `"values"`; `properties`: `Readonly`\<`Record`\<`string`, [`ValueProperty`](#valueproperty)\>\>; `summary`: `string`; \} \| \{ `kind`: `"live"`; `properties`: `Readonly`\<`Record`\<`string`, [`LiveProperty`](#liveproperty)\>\>; `summary`: `string`; \} \| `object` & [`FunctionDefinition`](#functiondefinition) \| \{ `kind`: `"methods"`; `methods`: `Readonly`\<`Record`\<`string`, [`FunctionDefinition`](#functiondefinition)\>\>; `properties?`: `Readonly`\<`Record`\<`string`, [`InterfaceProperty`](#interfaceproperty)\>\>; `summary`: `string`; \}

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

One export of a module.

#### Union Members

##### Type Literal

\{ `kind`: `"values"`; `properties`: `Readonly`\<`Record`\<`string`, [`ValueProperty`](#valueproperty)\>\>; `summary`: `string`; \}

A frozen object of plain values that stay the same for the server's whole run.

***

##### Type Literal

\{ `kind`: `"live"`; `properties`: `Readonly`\<`Record`\<`string`, [`LiveProperty`](#liveproperty)\>\>; `summary`: `string`; \}

A frozen object whose properties read the server each time.

***

`object` & [`FunctionDefinition`](#functiondefinition)

***

##### Type Literal

\{ `kind`: `"methods"`; `methods`: `Readonly`\<`Record`\<`string`, [`FunctionDefinition`](#functiondefinition)\>\>; `properties?`: `Readonly`\<`Record`\<`string`, [`InterfaceProperty`](#interfaceproperty)\>\>; `summary`: `string`; \}

A frozen object of functions, and of properties the script reads from the server.

***

### ServerProperties

> **ServerProperties** = *typeof* [`JSPRISMARINE_SERVER`](#jsprismarine-server)\[`"jsprismarine"`\]\[`"properties"`\]

Defined in: [script-host/src/host/jsprismarineServer.ts:829](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L829)

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

***

### TypeDefinition

> **TypeDefinition** = \{ `kind`: `"union"`; `summary`: `string`; `values`: readonly `string`[]; \} \| \{ `kind`: `"alias"`; `summary`: `string`; `type`: `string`; \} \| \{ `kind`: `"interface"`; `methods?`: `Readonly`\<`Record`\<`string`, [`FunctionDefinition`](#functiondefinition)\>\>; `properties`: `Readonly`\<`Record`\<`string`, [`InterfaceProperty`](#interfaceproperty)\>\>; `summary`: `string`; \}

Defined in: [script-host/src/host/jsprismarineServer.ts:74](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L74)

A type a module's members take or give.

#### Union Members

##### Type Literal

\{ `kind`: `"union"`; `summary`: `string`; `values`: readonly `string`[]; \}

***

##### Type Literal

\{ `kind`: `"alias"`; `summary`: `string`; `type`: `string`; \}

A type alias written in TypeScript, for a shape an interface cannot say, such as a union of objects.

***

##### Type Literal

\{ `kind`: `"interface"`; `methods?`: `Readonly`\<`Record`\<`string`, [`FunctionDefinition`](#functiondefinition)\>\>; `properties`: `Readonly`\<`Record`\<`string`, [`InterfaceProperty`](#interfaceproperty)\>\>; `summary`: `string`; \}

## Variables

### JSPRISMARINE\_CONFIG\_FUNCTIONS

> `const` **JSPRISMARINE\_CONFIG\_FUNCTIONS**: readonly \[`"readConfig"`, `"writeConfig"`, `"onConfigChange"`, `"offConfigChange"`, `"setConfigEventMaker"`\]

Defined in: [script-host/src/host/jsprismarineServer.ts:908](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L908)

The host functions a server gives only when it keeps config files for the packs, and the
member that needs them: without the first, the module leaves the member out.

***

### JSPRISMARINE\_HOST\_FUNCTIONS

> `const` **JSPRISMARINE\_HOST\_FUNCTIONS**: readonly \[`"read"`, `"ping"`, `"showBar"`, `"updateBar"`, `"hideBar"`, `"barValid"`, `"setListName"`, `"resetListName"`, `"serverListStatus"`, `"updateServerList"`, `"resetServerList"`, `"readConfig"`, `"writeConfig"`, `"onConfigChange"`, `"offConfigChange"`, `"setConfigEventMaker"`, `"hasPermission"`, `"groupsOf"`, `"primaryGroupOf"`, `"metaOf"`, `"grant"`, `"revoke"`, `"grantToGroup"`, `"revokeFromGroup"`, `"addToGroup"`, `"removeFromGroup"`, `"onPermissionsChange"`, `"levels"`, `"currentLevel"`, `"levelOf"`, `"transferPlayer"`, `"createLevel"`, `"attachLevel"`, `"detachLevel"`, `"setEventPriority"`, `"playerIdentity"`, `"findPlayer"`\]

Defined in: [script-host/src/host/jsprismarineServer.ts:849](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L849)

The functions the namespace's live members call, which the embedder makes in the pack's context.

***

### JSPRISMARINE\_MODULE

> `const` **JSPRISMARINE\_MODULE**: `"@jsprismarine/server"` = `'@jsprismarine/server'`

Defined in: [script-host/src/host/jsprismarineServer.ts:14](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L14)

The name a pack imports the module by.

***

### JSPRISMARINE\_PLACEHOLDERS

> `const` **JSPRISMARINE\_PLACEHOLDERS**: `object`

Defined in: [script-host/src/host/jsprismarineServer.ts:701](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L701)

The members of `@jsprismarine/placeholders`, by export name: the registry every pack shares.
Tokens such as `{player:ping}` that any pack can provide and any pack can render; a namespace
belongs to the pack that registered it and goes when the pack's scripts stop, as on `/reload`.
A host module's exports are copied when the module links, so `namespaces` is a function rather
than a getter.

#### Type Declaration

##### namespaces

> `readonly` **namespaces**: `object`

###### namespaces.kind

> `readonly` **kind**: `"function"` = `'function'`

###### namespaces.parameters

> `readonly` **parameters**: `""` = `''`

###### namespaces.returns

> `readonly` **returns**: `"readonly PlaceholderNamespace[]"` = `'readonly PlaceholderNamespace[]'`

###### namespaces.summary

> `readonly` **summary**: `"Every registered namespace with its keys, oldest first, as a new frozen list each call."` = `'Every registered namespace with its keys, oldest first, as a new frozen list each call.'`

##### parse

> `readonly` **parse**: `object`

###### parse.kind

> `readonly` **kind**: `"function"` = `'function'`

###### parse.parameters

> `readonly` **parameters**: `"shorthand: string"` = `'shorthand: string'`

###### parse.returns

> `readonly` **returns**: `"Template"` = `'Template'`

###### parse.summary

> `readonly` **summary**: `` "Parses the shorthand `{player:name} &7{player:ping}ms` into a template: each token a `placeholder` node, the rest `text` nodes, and `&` before a format code `§`." `` = `` 'Parses the shorthand `{player:name} &7{player:ping}ms` into a template: each token a `placeholder` node, the rest `text` nodes, and `&` before a format code `§`.' ``

##### register

> `readonly` **register**: `object`

###### register.kind

> `readonly` **kind**: `"function"` = `'function'`

###### register.parameters

> `readonly` **parameters**: `"namespace: string, provider: PlaceholderProvider"` = `'namespace: string, provider: PlaceholderProvider'`

###### register.returns

> `readonly` **returns**: `"PlaceholderRegistration"` = `'PlaceholderRegistration'`

###### register.summary

> `readonly` **summary**: `` "Registers a namespace. Throws a `TypeError` for a namespace or key that is not lowercase letters, digits and underscores starting with a letter, or for a provider with no keys, and an `Error` for a namespace that is registered already." `` = `` 'Registers a namespace. Throws a `TypeError` for a namespace or key that is not lowercase letters, digits and underscores starting with a letter, or for a provider with no keys, and an `Error` for a namespace that is registered already.' ``

##### render

> `readonly` **render**: `object`

###### render.kind

> `readonly` **kind**: `"function"` = `'function'`

###### render.parameters

> `readonly` **parameters**: "template: Template \| string, player?: Player" = 'template: Template \| string, player?: Player'

###### render.returns

> `readonly` **returns**: `"RenderedTemplate"` = `'RenderedTemplate'`

###### render.summary

> `readonly` **summary**: `` "Renders a template, or a shorthand string, for the player when one is given: the text, and the tick an animation in it next changes the text. Throws a `TypeError` for a node the renderer does not know or a condition that does not parse." `` = `` 'Renders a template, or a shorthand string, for the player when one is given: the text, and the tick an animation in it next changes the text. Throws a `TypeError` for a node the renderer does not know or a condition that does not parse.' ``

##### resolve

> `readonly` **resolve**: `object`

###### resolve.kind

> `readonly` **kind**: `"function"` = `'function'`

###### resolve.parameters

> `readonly` **parameters**: `"text: string, player?: Player"` = `'text: string, player?: Player'`

###### resolve.returns

> `readonly` **returns**: `"string"` = `'string'`

###### resolve.summary

> `readonly` **summary**: `` "Replaces each `{namespace:key}` in the text with its value, for the player when one is given. A token nobody provides, or whose provider gives `undefined` or throws, stays as written, and so does any other text between braces. The watchdog's errors are the exception: a resolver that runs out of the budget ends the render." `` = `` "Replaces each `{namespace:key}` in the text with its value, for the player when one is given. A token nobody provides, or whose provider gives `undefined` or throws, stays as written, and so does any other text between braces. The watchdog's errors are the exception: a resolver that runs out of the budget ends the render." ``

***

### JSPRISMARINE\_PLACEHOLDERS\_HOST\_FUNCTIONS

> `const` **JSPRISMARINE\_PLACEHOLDERS\_HOST\_FUNCTIONS**: readonly \[`"register"`, `"unregister"`, `"resolve"`, `"namespaces"`, `"parseTemplate"`, `"renderTemplate"`\]

Defined in: [script-host/src/host/jsprismarineServer.ts:895](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L895)

The functions `@jsprismarine/placeholders` calls, which the embedder makes in the pack's
context: `host.namespaces()` answers the registered namespaces as JSON, `host.parseTemplate` and
`host.renderTemplate` take and give templates as JSON, and the others are named for what they
do.

***

### JSPRISMARINE\_PLACEHOLDERS\_MODULE

> `const` **JSPRISMARINE\_PLACEHOLDERS\_MODULE**: `"@jsprismarine/placeholders"` = `'@jsprismarine/placeholders'`

Defined in: [script-host/src/host/jsprismarineServer.ts:21](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L21)

The name a pack imports the placeholders by. `@jsprismarine/server` holds the members that read
or change the running server and its players; a feature with a type vocabulary of its own, one
that would stand as a library by itself, gets a module of its own, and placeholders are the first.

***

### JSPRISMARINE\_PLACEHOLDER\_TYPES

> `const` **JSPRISMARINE\_PLACEHOLDER\_TYPES**: `object`

Defined in: [script-host/src/host/jsprismarineServer.ts:743](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L743)

The types `@jsprismarine/placeholders` takes and gives. `Player` is `@jsprismarine/server`'s
compatibility type, what the members read of a player they are given; `MinecraftPlayer` is
`@minecraft/server`'s, what a provider gets, since the runtime hands it the pack's own object.

#### Type Declaration

##### PlaceholderNamespace

> `readonly` **PlaceholderNamespace**: `object`

###### PlaceholderNamespace.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### PlaceholderNamespace.properties

> `readonly` **properties**: `object`

###### PlaceholderNamespace.properties.keys

> `readonly` **keys**: `object`

###### PlaceholderNamespace.properties.keys.summary

> `readonly` **summary**: `"The keys its provider answers."` = `'The keys its provider answers.'`

###### PlaceholderNamespace.properties.keys.type

> `readonly` **type**: `"readonly string[]"` = `'readonly string[]'`

###### PlaceholderNamespace.properties.namespace

> `readonly` **namespace**: `object`

###### PlaceholderNamespace.properties.namespace.summary

> `readonly` **summary**: `"Its name, the part of a token before the colon."` = `'Its name, the part of a token before the colon.'`

###### PlaceholderNamespace.properties.namespace.type

> `readonly` **type**: `"string"` = `'string'`

###### PlaceholderNamespace.summary

> `readonly` **summary**: `"One registered namespace."` = `'One registered namespace.'`

##### PlaceholderProvider

> `readonly` **PlaceholderProvider**: `object`

###### PlaceholderProvider.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### PlaceholderProvider.methods

> `readonly` **methods**: `object`

###### PlaceholderProvider.methods.resolve

> `readonly` **resolve**: `object`

###### PlaceholderProvider.methods.resolve.parameters

> `readonly` **parameters**: `"key: string, player?: MinecraftPlayer"` = `'key: string, player?: MinecraftPlayer'`

###### PlaceholderProvider.methods.resolve.returns

> `readonly` **returns**: "string \| number \| undefined" = 'string \| number \| undefined'

###### PlaceholderProvider.methods.resolve.summary

> `readonly` **summary**: `` "The value of one key, for the player when the text is rendered for one: the pack's own `Player` of `@minecraft/server`, with every member it has. A number renders through `String()`. `undefined` leaves the token as written, and so does a throw, which the content log reports once per namespace. It runs inside the budget of the script that renders, and the watchdog's errors end the render rather than leaving the token." `` = `` "The value of one key, for the player when the text is rendered for one: the pack's own `Player` of `@minecraft/server`, with every member it has. A number renders through `String()`. `undefined` leaves the token as written, and so does a throw, which the content log reports once per namespace. It runs inside the budget of the script that renders, and the watchdog's errors end the render rather than leaving the token." ``

###### PlaceholderProvider.properties

> `readonly` **properties**: `object`

###### PlaceholderProvider.properties.keys

> `readonly` **keys**: `object`

###### PlaceholderProvider.properties.keys.summary

> `readonly` **summary**: `"The keys the provider answers, each lowercase letters, digits and underscores starting with a letter. A token with another key stays as written."` = `'The keys the provider answers, each lowercase letters, digits and underscores starting with a letter. A token with another key stays as written.'`

###### PlaceholderProvider.properties.keys.type

> `readonly` **type**: `"readonly string[]"` = `'readonly string[]'`

###### PlaceholderProvider.summary

> `readonly` **summary**: `"What a pack registers for a namespace: the keys it answers, and the function that answers them."` = `'What a pack registers for a namespace: the keys it answers, and the function that answers them.'`

##### PlaceholderRegistration

> `readonly` **PlaceholderRegistration**: `object`

###### PlaceholderRegistration.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### PlaceholderRegistration.methods

> `readonly` **methods**: `object`

###### PlaceholderRegistration.methods.unregister

> `readonly` **unregister**: `object`

###### PlaceholderRegistration.methods.unregister.parameters

> `readonly` **parameters**: `""` = `''`

###### PlaceholderRegistration.methods.unregister.returns

> `readonly` **returns**: `"void"` = `'void'`

###### PlaceholderRegistration.methods.unregister.summary

> `readonly` **summary**: `"Takes the namespace out of the registry, so its tokens stay as written. A pack's namespaces go on their own when its scripts stop."` = `"Takes the namespace out of the registry, so its tokens stay as written. A pack's namespaces go on their own when its scripts stop."`

###### PlaceholderRegistration.properties

> `readonly` **properties**: `object` = `{}`

###### PlaceholderRegistration.summary

> `readonly` **summary**: `"A namespace a pack registered."` = `'A namespace a pack registered.'`

##### RenderedTemplate

> `readonly` **RenderedTemplate**: `object`

###### RenderedTemplate.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### RenderedTemplate.properties

> `readonly` **properties**: `object`

###### RenderedTemplate.properties.nextChangeTick

> `readonly` **nextChangeTick**: `object`

###### RenderedTemplate.properties.nextChangeTick.optional

> `readonly` **optional**: `true` = `true`

###### RenderedTemplate.properties.nextChangeTick.summary

> `readonly` **summary**: `"The tick at which an animation in the template next changes the text, so a consumer that refreshes on an interval renders again then. Absent when the template holds no animation with more than one frame."` = `'The tick at which an animation in the template next changes the text, so a consumer that refreshes on an interval renders again then. Absent when the template holds no animation with more than one frame.'`

###### RenderedTemplate.properties.nextChangeTick.type

> `readonly` **type**: `"number"` = `'number'`

###### RenderedTemplate.properties.text

> `readonly` **text**: `object`

###### RenderedTemplate.properties.text.summary

> `readonly` **summary**: `"The rendered text."` = `'The rendered text.'`

###### RenderedTemplate.properties.text.type

> `readonly` **type**: `"string"` = `'string'`

###### RenderedTemplate.summary

> `readonly` **summary**: `` "What `placeholders.render` gave." `` = `` 'What `placeholders.render` gave.' ``

##### Template

> `readonly` **Template**: `object`

###### Template.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### Template.properties

> `readonly` **properties**: `object`

###### Template.properties.rawtext

> `readonly` **rawtext**: `object`

###### Template.properties.rawtext.summary

> `readonly` **summary**: `"The nodes, rendered in order."` = `'The nodes, rendered in order.'`

###### Template.properties.rawtext.type

> `readonly` **type**: `"readonly TemplateNode[]"` = `'readonly TemplateNode[]'`

###### Template.summary

> `readonly` **summary**: `` "A template: a tree in the shape of Bedrock's rawtext, the format `/tellraw` takes, with a few more node kinds. `placeholders.parse` makes one from shorthand, and a file or a script can hold one." `` = `` "A template: a tree in the shape of Bedrock's rawtext, the format `/tellraw` takes, with a few more node kinds. `placeholders.parse` makes one from shorthand, and a file or a script can hold one." ``

##### TemplateNode

> `readonly` **TemplateNode**: `object`

###### TemplateNode.kind

> `readonly` **kind**: `"alias"` = `'alias'`

###### TemplateNode.summary

> `readonly` **summary**: "One node of a template: a \`text\`; a \`placeholder\` named \`namespace:key\`; an \`if\` with a condition over placeholders and literals (\`==\`, \`!=\`, \`\<\`, \`\<=\`, \`\>\`, \`\>=\`, \`contains\`, \`startsWith\`, joined by \`&&\` and \`\|\|\`, with parentheses; two sides that both parse as numbers compare as numbers) and its \`then\` and \`else\` nodes; an \`animate\` with \`frames\` and an \`interval\` in ticks; a \`gradient\` with \`#rrggbb\` colors over its \`rawtext\`, each character in the nearest \`§\` color; and rawtext's \`translate\`, which renders as its key, \`score\`, which reads the scoreboard, and \`selector\`, which reads as the names of the entities the server's selector grammar matches, so \`@a\[tag=vip\]\` works. A bare string is a \`text\` node." = "One node of a template: a \`text\`; a \`placeholder\` named \`namespace:key\`; an \`if\` with a condition over placeholders and literals (\`==\`, \`!=\`, \`\<\`, \`\<=\`, \`\>\`, \`\>=\`, \`contains\`, \`startsWith\`, joined by \`&&\` and \`\|\|\`, with parentheses; two sides that both parse as numbers compare as numbers) and its \`then\` and \`else\` nodes; an \`animate\` with \`frames\` and an \`interval\` in ticks; a \`gradient\` with \`#rrggbb\` colors over its \`rawtext\`, each character in the nearest \`§\` color; and rawtext's \`translate\`, which renders as its key, \`score\`, which reads the scoreboard, and \`selector\`, which reads as the names of the entities the server's selector grammar matches, so \`@a\[tag=vip\]\` works. A bare string is a \`text\` node."

###### TemplateNode.type

> `readonly` **type**: `string`

***

### JSPRISMARINE\_SERVER

> `const` **JSPRISMARINE\_SERVER**: `object`

Defined in: [script-host/src/host/jsprismarineServer.ts:90](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L90)

The members of `@jsprismarine/server`, by export name. `jsprismarine` holds plain values that
stay the same for the server's whole run. The others reach the running server, and a server
that cannot give them leaves them out, so a pack checks for one with `in` before it uses it.

#### Type Declaration

##### bossBars

> `readonly` **bossBars**: `object`

###### bossBars.kind

> `readonly` **kind**: `"methods"` = `'methods'`

###### bossBars.methods

> `readonly` **methods**: `object`

###### bossBars.methods.show

> `readonly` **show**: `object`

###### bossBars.methods.show.parameters

> `readonly` **parameters**: `"player: Player, options?: BossBarOptions"` = `'player: Player, options?: BossBarOptions'`

###### bossBars.methods.show.returns

> `readonly` **returns**: `"BossBar"` = `'BossBar'`

###### bossBars.methods.show.summary

> `readonly` **summary**: `"Shows a boss bar to one player, alongside every bar already on their screen. A bar for a player who left is never valid."` = `'Shows a boss bar to one player, alongside every bar already on their screen. A bar for a player who left is never valid.'`

###### bossBars.summary

> `readonly` **summary**: `` "Boss bars on one player's screen. A bar belongs to the pack that showed it and goes away when the player leaves or the pack's scripts stop, as on `/reload`." `` = `` "Boss bars on one player's screen. A bar belongs to the pack that showed it and goes away when the player leaves or the pack's scripts stop, as on `/reload`." ``

##### config

> `readonly` **config**: `object`

###### config.kind

> `readonly` **kind**: `"methods"` = `'methods'`

###### config.methods

> `readonly` **methods**: `object`

###### config.methods.write

> `readonly` **write**: `object`

###### config.methods.write.parameters

> `readonly` **parameters**: `"value: unknown"` = `'value: unknown'`

###### config.methods.write.returns

> `readonly` **returns**: `"void"` = `'void'`

###### config.methods.write.summary

> `readonly` **summary**: `` "Rewrites the file with the value as JSON, so the pack's commands and the owner's editor change the same thing. `change` fires for it as for an edit. Throws a `TypeError` for a value JSON cannot carry." `` = `` "Rewrites the file with the value as JSON, so the pack's commands and the owner's editor change the same thing. `change` fires for it as for an edit. Throws a `TypeError` for a value JSON cannot carry." ``

###### config.properties

> `readonly` **properties**: `object`

###### config.properties.afterEvents

> `readonly` **afterEvents**: `object`

###### config.properties.afterEvents.summary

> `readonly` **summary**: `"What the file does."` = `'What the file does.'`

###### config.properties.afterEvents.type

> `readonly` **type**: `"AddonConfigEvents"` = `'AddonConfigEvents'`

###### config.properties.value

> `readonly` **value**: `object`

###### config.properties.value.summary

> `readonly` **summary**: `` "The parsed JSON of the file, as a new frozen value each read, or `undefined` while there is no file. A file that fails to parse keeps the last value, and the content log says so once." `` = `` 'The parsed JSON of the file, as a new frozen value each read, or `undefined` while there is no file. A file that fails to parse keeps the last value, and the content log says so once.' ``

###### config.properties.value.type

> `readonly` **type**: `"unknown"` = `'unknown'`

###### config.summary

> `readonly` **summary**: `` "The pack's config file: `<folder>.config.json` beside the pack's folder, which for an addon installed as `addons/<name>/` is `addons/<name>.config.json`. The owner edits it and the pack reads it. The server parses it; the pack checks the shape itself." `` = `` "The pack's config file: `<folder>.config.json` beside the pack's folder, which for an addon installed as `addons/<name>/` is `addons/<name>.config.json`. The owner edits it and the pack reads it. The server parses it; the pack checks the shape itself." ``

##### events

> `readonly` **events**: `object`

###### events.kind

> `readonly` **kind**: `"methods"` = `'methods'`

###### events.methods

> `readonly` **methods**: `object`

###### events.methods.setPriority

> `readonly` **setPriority**: `object`

###### events.methods.setPriority.parameters

> `readonly` **parameters**: `"signal: BeforeEventSignal, callback: (event: never) => void, priority: EventPriority"` = `'signal: BeforeEventSignal, callback: (event: never) => void, priority: EventPriority'`

###### events.methods.setPriority.returns

> `readonly` **returns**: `"void"` = `'void'`

###### events.methods.setPriority.summary

> `readonly` **summary**: `` "Gives a callback the pack subscribed to a before-event signal, such as `world.beforeEvents.playerBreakBlock`, a priority. Every subscription of that callback to that signal gets it. A `monitor` callback runs last and sees the outcome but cannot change it: the server puts back `cancel` and every value it set once it returns. Throws a `TypeError` for an after-event signal, a callback the pack has not subscribed to the signal, or a priority the module does not name." `` = `` 'Gives a callback the pack subscribed to a before-event signal, such as `world.beforeEvents.playerBreakBlock`, a priority. Every subscription of that callback to that signal gets it. A `monitor` callback runs last and sees the outcome but cannot change it: the server puts back `cancel` and every value it set once it returns. Throws a `TypeError` for an after-event signal, a callback the pack has not subscribed to the signal, or a priority the module does not name.' ``

###### events.summary

> `readonly` **summary**: `` "The order before-event callbacks run in across packs. Bedrock runs them in the order they subscribed; a callback given a priority runs with the others of its priority, lower priorities first, so a protection pack at `highest` decides after the packs at `normal`. Every callback sees the `cancel` and the values the ones before it set. A callback's priority ends when it is unsubscribed or the pack's scripts stop, as on `/reload`. After-events have no priority: they fire only for what happened, so their order changes nothing." `` = `` "The order before-event callbacks run in across packs. Bedrock runs them in the order they subscribed; a callback given a priority runs with the others of its priority, lower priorities first, so a protection pack at `highest` decides after the packs at `normal`. Every callback sees the `cancel` and the values the ones before it set. A callback's priority ends when it is unsubscribed or the pack's scripts stop, as on `/reload`. After-events have no priority: they fire only for what happened, so their order changes nothing." ``

##### getPing

> `readonly` **getPing**: `object`

###### getPing.kind

> `readonly` **kind**: `"function"` = `'function'`

###### getPing.parameters

> `readonly` **parameters**: `"player: Player"` = `'player: Player'`

###### getPing.returns

> `readonly` **returns**: "number \| undefined" = 'number \| undefined'

###### getPing.summary

> `readonly` **summary**: `` "The player's round trip time in milliseconds, or `undefined` while their connection has no sample, after they leave, or when their transport measures none." `` = `` "The player's round trip time in milliseconds, or `undefined` while their connection has no sample, after they leave, or when their transport measures none." ``

##### jsprismarine

> `readonly` **jsprismarine**: `object`

###### jsprismarine.kind

> `readonly` **kind**: `"values"` = `'values'`

###### jsprismarine.properties

> `readonly` **properties**: `object`

###### jsprismarine.properties.maxPlayers

> `readonly` **maxPlayers**: `object`

###### jsprismarine.properties.maxPlayers.summary

> `readonly` **summary**: `` "How many players may be online at once, the server's `max-players` setting." `` = `` "How many players may be online at once, the server's `max-players` setting." ``

###### jsprismarine.properties.maxPlayers.type

> `readonly` **type**: `"number"` = `'number'`

###### jsprismarine.properties.minecraftVersion

> `readonly` **minecraftVersion**: `object`

###### jsprismarine.properties.minecraftVersion.summary

> `readonly` **summary**: `"The newest Minecraft Bedrock release the server speaks, the one it advertises."` = `'The newest Minecraft Bedrock release the server speaks, the one it advertises.'`

###### jsprismarine.properties.minecraftVersion.type

> `readonly` **type**: `"string"` = `'string'`

###### jsprismarine.properties.name

> `readonly` **name**: `object`

###### jsprismarine.properties.name.summary

> `readonly` **summary**: `` "The server software, always `JSPrismarine`." `` = `` 'The server software, always `JSPrismarine`.' ``

###### jsprismarine.properties.name.type

> `readonly` **type**: `"string"` = `'string'`

###### jsprismarine.properties.name.value

> `readonly` **value**: `"JSPrismarine"` = `'JSPrismarine'`

###### jsprismarine.properties.protocolVersion

> `readonly` **protocolVersion**: `object`

###### jsprismarine.properties.protocolVersion.summary

> `readonly` **summary**: `` "The Bedrock network protocol version of `minecraftVersion`." `` = `` 'The Bedrock network protocol version of `minecraftVersion`.' ``

###### jsprismarine.properties.protocolVersion.type

> `readonly` **type**: `"number"` = `'number'`

###### jsprismarine.properties.version

> `readonly` **version**: `object`

###### jsprismarine.properties.version.summary

> `readonly` **summary**: `` "The JSPrismarine version, such as `0.22.0`, without a leading `v`." `` = `` 'The JSPrismarine version, such as `0.22.0`, without a leading `v`.' ``

###### jsprismarine.properties.version.type

> `readonly` **type**: `"string"` = `'string'`

###### jsprismarine.summary

> `readonly` **summary**: `"The server the pack runs on."` = `'The server the pack runs on.'`

##### levels

> `readonly` **levels**: `object`

###### levels.kind

> `readonly` **kind**: `"methods"` = `'methods'`

###### levels.methods

> `readonly` **methods**: `object`

###### levels.methods.attach

> `readonly` **attach**: `object`

###### levels.methods.attach.parameters

> `readonly` **parameters**: `"level: string"` = `'level: string'`

###### levels.methods.attach.returns

> `readonly` **returns**: `"Promise<LevelInfo>"` = `'Promise<LevelInfo>'`

###### levels.methods.attach.summary

> `readonly` **summary**: `` "Attaches a detached level `levels.json` records, so players can go there again." `` = `` 'Attaches a detached level `levels.json` records, so players can go there again.' ``

###### levels.methods.create

> `readonly` **create**: `object`

###### levels.methods.create.parameters

> `readonly` **parameters**: `"name: string, options?: LevelCreateOptions"` = `'name: string, options?: LevelCreateOptions'`

###### levels.methods.create.returns

> `readonly` **returns**: `"Promise<LevelInfo>"` = `'Promise<LevelInfo>'`

###### levels.methods.create.summary

> `readonly` **summary**: `` "Creates a level, records it in `levels.json` and attaches it. Rejects for a name that is taken or not 1 to 64 letters, digits, `_` or `-`." `` = `` 'Creates a level, records it in `levels.json` and attaches it. Rejects for a name that is taken or not 1 to 64 letters, digits, `_` or `-`.' ``

###### levels.methods.detach

> `readonly` **detach**: `object`

###### levels.methods.detach.parameters

> `readonly` **parameters**: `"level: string"` = `'level: string'`

###### levels.methods.detach.returns

> `readonly` **returns**: `"Promise<void>"` = `'Promise<void>'`

###### levels.methods.detach.summary

> `readonly` **summary**: `` "Saves a level, moves its players to the entry level and detaches it. Its files stay. Rejects for the entry level and a level `config.json` names. Detaching the pack's own level stops its scripts there, so the promise never settles." `` = `` "Saves a level, moves its players to the entry level and detaches it. Its files stay. Rejects for the entry level and a level `config.json` names. Detaching the pack's own level stops its scripts there, so the promise never settles." ``

###### levels.methods.levelOf

> `readonly` **levelOf**: `object`

###### levels.methods.levelOf.parameters

> `readonly` **parameters**: `"player: Player"` = `'player: Player'`

###### levels.methods.levelOf.returns

> `readonly` **returns**: `"LevelInfo"` = `'LevelInfo'`

###### levels.methods.levelOf.summary

> `readonly` **summary**: `` "The level the player is in. Throws a `TypeError` for a player who left." `` = `` 'The level the player is in. Throws a `TypeError` for a player who left.' ``

###### levels.methods.list

> `readonly` **list**: `object`

###### levels.methods.list.parameters

> `readonly` **parameters**: `""` = `''`

###### levels.methods.list.returns

> `readonly` **returns**: `"readonly LevelInfo[]"` = `'readonly LevelInfo[]'`

###### levels.methods.list.summary

> `readonly` **summary**: `` "Every level the server knows: the attached ones first, then the detached ones `levels.json` keeps." `` = `` 'Every level the server knows: the attached ones first, then the detached ones `levels.json` keeps.' ``

###### levels.methods.transfer

> `readonly` **transfer**: `object`

###### levels.methods.transfer.parameters

> `readonly` **parameters**: `"player: Player, level: string, options?: LevelTransferOptions"` = `'player: Player, level: string, options?: LevelTransferOptions'`

###### levels.methods.transfer.returns

> `readonly` **returns**: `"Promise<boolean>"` = `'Promise<boolean>'`

###### levels.methods.transfer.summary

> `readonly` **summary**: `` "Moves the player to an attached level: to where they last were there, or to its spawn when they have never been in it or `toSpawn` is set. They leave their record behind and pick up the level's, except the parts a `player-data-groups` group shares. Resolves to whether the move landed. Rejects for a level that is not attached." `` = `` "Moves the player to an attached level: to where they last were there, or to its spawn when they have never been in it or `toSpawn` is set. They leave their record behind and pick up the level's, except the parts a `player-data-groups` group shares. Resolves to whether the move landed. Rejects for a level that is not attached." ``

###### levels.properties

> `readonly` **properties**: `object`

###### levels.properties.current

> `readonly` **current**: `object`

###### levels.properties.current.summary

> `readonly` **summary**: `"The level the pack's scripts run in."` = `"The level the pack's scripts run in."`

###### levels.properties.current.type

> `readonly` **type**: `"LevelInfo"` = `'LevelInfo'`

###### levels.summary

> `readonly` **summary**: `"The server's levels, each a world of its own with its dimensions, players' records and scripts. A level is named by its name, unique among the attached ones, or by its UUID. The pack's scripts run in one level; a pack that every level loads runs once in each."` = `"The server's levels, each a world of its own with its dimensions, players' records and scripts. A level is named by its name, unique among the attached ones, or by its UUID. The pack's scripts run in one level; a pack that every level loads runs once in each."`

##### performance

> `readonly` **performance**: `object`

###### performance.kind

> `readonly` **kind**: `"live"` = `'live'`

###### performance.properties

> `readonly` **properties**: `object`

###### performance.properties.averageTickMs

> `readonly` **averageTickMs**: `object`

###### performance.properties.averageTickMs.summary

> `readonly` **summary**: `"How long a tick's work has taken lately, in milliseconds, as a moving average over the recent ticks. Zero before the first tick."` = `"How long a tick's work has taken lately, in milliseconds, as a moving average over the recent ticks. Zero before the first tick."`

###### performance.properties.averageTickMs.type

> `readonly` **type**: `"number"` = `'number'`

###### performance.properties.heapAllocatedBytes

> `readonly` **heapAllocatedBytes**: `object`

###### performance.properties.heapAllocatedBytes.summary

> `readonly` **summary**: `` "The bytes the runtime has reserved for the heap, which `heapUsedBytes` fills." `` = `` 'The bytes the runtime has reserved for the heap, which `heapUsedBytes` fills.' ``

###### performance.properties.heapAllocatedBytes.type

> `readonly` **type**: `"number"` = `'number'`

###### performance.properties.heapLimitBytes

> `readonly` **heapLimitBytes**: `object`

###### performance.properties.heapLimitBytes.summary

> `readonly` **summary**: `` "The most bytes the heap may grow to before the runtime runs out of memory, which `--max-old-space-size` sets on Node.js." `` = `` 'The most bytes the heap may grow to before the runtime runs out of memory, which `--max-old-space-size` sets on Node.js.' ``

###### performance.properties.heapLimitBytes.type

> `readonly` **type**: `"number"` = `'number'`

###### performance.properties.heapUsedBytes

> `readonly` **heapUsedBytes**: `object`

###### performance.properties.heapUsedBytes.summary

> `readonly` **summary**: `"The bytes the server's JavaScript heap holds now, garbage not yet collected included. Buffers and native memory outside the heap are not counted."` = `"The bytes the server's JavaScript heap holds now, garbage not yet collected included. Buffers and native memory outside the heap are not counted."`

###### performance.properties.heapUsedBytes.type

> `readonly` **type**: `"number"` = `'number'`

###### performance.properties.lastTickMs

> `readonly` **lastTickMs**: `object`

###### performance.properties.lastTickMs.summary

> `readonly` **summary**: `"How long the last tick's work took, in milliseconds, without the wait before the next tick. Zero before the first tick."` = `"How long the last tick's work took, in milliseconds, without the wait before the next tick. Zero before the first tick."`

###### performance.properties.lastTickMs.type

> `readonly` **type**: `"number"` = `'number'`

###### performance.properties.tps

> `readonly` **tps**: `object`

###### performance.properties.tps.summary

> `readonly` **summary**: `"Ticks per second over the last second. The server aims for 20, and runs above it while it catches up."` = `'Ticks per second over the last second. The server aims for 20, and runs above it while it catches up.'`

###### performance.properties.tps.type

> `readonly` **type**: `"number"` = `'number'`

###### performance.properties.tpsAverages

> `readonly` **tpsAverages**: `object`

###### performance.properties.tpsAverages.summary

> `readonly` **summary**: `` "Ticks per second averaged over the windows `/tps` reports, shortest first." `` = `` 'Ticks per second averaged over the windows `/tps` reports, shortest first.' ``

###### performance.properties.tpsAverages.type

> `readonly` **type**: `"numbers"` = `'numbers'`

###### performance.summary

> `readonly` **summary**: `"How fast the server ticks and how much memory its JavaScript heap holds. Each property reads the server when the script reads it."` = `'How fast the server ticks and how much memory its JavaScript heap holds. Each property reads the server when the script reads it.'`

##### permissions

> `readonly` **permissions**: `object`

###### permissions.kind

> `readonly` **kind**: `"methods"` = `'methods'`

###### permissions.methods

> `readonly` **methods**: `object`

###### permissions.methods.addToGroup

> `readonly` **addToGroup**: `object`

###### permissions.methods.addToGroup.parameters

> `readonly` **parameters**: `"player: Player, group: string, expires?: string"` = `'player: Player, group: string, expires?: string'`

###### permissions.methods.addToGroup.returns

> `readonly` **returns**: `"void"` = `'void'`

###### permissions.methods.addToGroup.summary

> `readonly` **summary**: `` "Adds a player to a group, until `expires` when one is given. Throws an `Error` for a group the file does not have." `` = `` 'Adds a player to a group, until `expires` when one is given. Throws an `Error` for a group the file does not have.' ``

###### permissions.methods.grant

> `readonly` **grant**: `object`

###### permissions.methods.grant.parameters

> `readonly` **parameters**: `"player: Player, node: string, expires?: string"` = `'player: Player, node: string, expires?: string'`

###### permissions.methods.grant.returns

> `readonly` **returns**: `"void"` = `'void'`

###### permissions.methods.grant.summary

> `readonly` **summary**: `` "Adds a node to the player. Throws a `RangeError` for a node not spelled as `scope.name`, `scope.*` or `*` with at most one leading `-`, or for an expiry that is not an ISO 8601 instant with a time zone in the future." `` = `` 'Adds a node to the player. Throws a `RangeError` for a node not spelled as `scope.name`, `scope.*` or `*` with at most one leading `-`, or for an expiry that is not an ISO 8601 instant with a time zone in the future.' ``

###### permissions.methods.grantToGroup

> `readonly` **grantToGroup**: `object`

###### permissions.methods.grantToGroup.parameters

> `readonly` **parameters**: `"group: string, node: string, expires?: string"` = `'group: string, node: string, expires?: string'`

###### permissions.methods.grantToGroup.returns

> `readonly` **returns**: `"void"` = `'void'`

###### permissions.methods.grantToGroup.summary

> `readonly` **summary**: `` "Adds a node to the group named. Throws as `grant` does for the node and the expiry, and an `Error` for a group the file does not have." `` = `` 'Adds a node to the group named. Throws as `grant` does for the node and the expiry, and an `Error` for a group the file does not have.' ``

###### permissions.methods.groupsOf

> `readonly` **groupsOf**: `object`

###### permissions.methods.groupsOf.parameters

> `readonly` **parameters**: `"player: Player"` = `'player: Player'`

###### permissions.methods.groupsOf.returns

> `readonly` **returns**: `"readonly string[]"` = `'readonly string[]'`

###### permissions.methods.groupsOf.summary

> `readonly` **summary**: `` "The groups the player holds directly, heaviest first, `default` and an operator's `operator` included." `` = `` "The groups the player holds directly, heaviest first, `default` and an operator's `operator` included." ``

###### permissions.methods.has

> `readonly` **has**: `object`

###### permissions.methods.has.parameters

> `readonly` **parameters**: `"player: Player, node: string"` = `'player: Player, node: string'`

###### permissions.methods.has.returns

> `readonly` **returns**: `"boolean"` = `'boolean'`

###### permissions.methods.has.summary

> `readonly` **summary**: `"Whether the player holds the node after resolution: their own nodes, then their groups heaviest first and each group's parents, where a specific node beats a wildcard and a negation wins a tie. An operator holds every node."` = `"Whether the player holds the node after resolution: their own nodes, then their groups heaviest first and each group's parents, where a specific node beats a wildcard and a negation wins a tie. An operator holds every node."`

###### permissions.methods.metaOf

> `readonly` **metaOf**: `object`

###### permissions.methods.metaOf.parameters

> `readonly` **parameters**: `"player: Player, key: string"` = `'player: Player, key: string'`

###### permissions.methods.metaOf.returns

> `readonly` **returns**: "string \| undefined" = 'string \| undefined'

###### permissions.methods.metaOf.summary

> `readonly` **summary**: `` "The resolved value of a meta key such as `prefix`, `suffix` or `level`: the player's own, then their groups' in resolution order. `undefined` when nothing sets it." `` = `` "The resolved value of a meta key such as `prefix`, `suffix` or `level`: the player's own, then their groups' in resolution order. `undefined` when nothing sets it." ``

###### permissions.methods.primaryGroupOf

> `readonly` **primaryGroupOf**: `object`

###### permissions.methods.primaryGroupOf.parameters

> `readonly` **parameters**: `"player: Player"` = `'player: Player'`

###### permissions.methods.primaryGroupOf.returns

> `readonly` **returns**: `"string"` = `'string'`

###### permissions.methods.primaryGroupOf.summary

> `readonly` **summary**: `` "The heaviest group the player holds directly, or `default`." `` = `` 'The heaviest group the player holds directly, or `default`.' ``

###### permissions.methods.removeFromGroup

> `readonly` **removeFromGroup**: `object`

###### permissions.methods.removeFromGroup.parameters

> `readonly` **parameters**: `"player: Player, group: string"` = `'player: Player, group: string'`

###### permissions.methods.removeFromGroup.returns

> `readonly` **returns**: `"void"` = `'void'`

###### permissions.methods.removeFromGroup.summary

> `readonly` **summary**: `"Removes a player from a group. Does nothing when they are not in it."` = `'Removes a player from a group. Does nothing when they are not in it.'`

###### permissions.methods.revoke

> `readonly` **revoke**: `object`

###### permissions.methods.revoke.parameters

> `readonly` **parameters**: `"player: Player, node: string"` = `'player: Player, node: string'`

###### permissions.methods.revoke.returns

> `readonly` **returns**: `"void"` = `'void'`

###### permissions.methods.revoke.summary

> `readonly` **summary**: `"Removes a node from the player. Does nothing when they do not have it."` = `'Removes a node from the player. Does nothing when they do not have it.'`

###### permissions.methods.revokeFromGroup

> `readonly` **revokeFromGroup**: `object`

###### permissions.methods.revokeFromGroup.parameters

> `readonly` **parameters**: `"group: string, node: string"` = `'group: string, node: string'`

###### permissions.methods.revokeFromGroup.returns

> `readonly` **returns**: `"void"` = `'void'`

###### permissions.methods.revokeFromGroup.summary

> `readonly` **summary**: `"Removes a node from the group named. Does nothing when it does not have it."` = `'Removes a node from the group named. Does nothing when it does not have it.'`

###### permissions.properties

> `readonly` **properties**: `object`

###### permissions.properties.afterEvents

> `readonly` **afterEvents**: `object`

###### permissions.properties.afterEvents.summary

> `readonly` **summary**: `"The events the permission files raise."` = `'The events the permission files raise.'`

###### permissions.properties.afterEvents.type

> `readonly` **type**: `"PermissionsAfterEvents"` = `'PermissionsAfterEvents'`

###### permissions.summary

> `readonly` **summary**: `` "The groups, nodes and meta of `permissions.json`, resolved as the server resolves them for a command. A write persists to the file as `/perms` would, and `afterEvents.permissionsChange` fires after any write, from a script, `/perms`, `/op` or an edit of the file." `` = `` 'The groups, nodes and meta of `permissions.json`, resolved as the server resolves them for a command. A write persists to the file as `/perms` would, and `afterEvents.permissionsChange` fires after any write, from a script, `/perms`, `/op` or an edit of the file.' ``

##### playerList

> `readonly` **playerList**: `object`

###### playerList.kind

> `readonly` **kind**: `"methods"` = `'methods'`

###### playerList.methods

> `readonly` **methods**: `object`

###### playerList.methods.reset

> `readonly` **reset**: `object`

###### playerList.methods.reset.parameters

> `readonly` **parameters**: `"player: Player"` = `'player: Player'`

###### playerList.methods.reset.returns

> `readonly` **returns**: `"void"` = `'void'`

###### playerList.methods.reset.summary

> `readonly` **summary**: `"Gives the player's entry its login name back, at once rather than when the scripts stop."` = `"Gives the player's entry its login name back, at once rather than when the scripts stop."`

###### playerList.methods.setDisplayName

> `readonly` **setDisplayName**: `object`

###### playerList.methods.setDisplayName.parameters

> `readonly` **parameters**: `"player: Player, name: string"` = `'player: Player, name: string'`

###### playerList.methods.setDisplayName.returns

> `readonly` **returns**: `"void"` = `'void'`

###### playerList.methods.setDisplayName.summary

> `readonly` **summary**: `"Changes the name every client, and every later joiner, shows for the player in its player list, and nothing else. Throws for an empty name. Does nothing for a player who left."` = `'Changes the name every client, and every later joiner, shows for the player in its player list, and nothing else. Throws for an empty name. Does nothing for a player who left.'`

###### playerList.summary

> `readonly` **summary**: `` "The player list every client shows, in the pause menu. A name a pack sets there reverts when the pack's scripts stop, as on `/reload`. Chat and the name above the head keep the login name." `` = `` "The player list every client shows, in the pause menu. A name a pack sets there reverts when the pack's scripts stop, as on `/reload`. Chat and the name above the head keep the login name." ``

##### players

> `readonly` **players**: `object`

###### players.kind

> `readonly` **kind**: `"methods"` = `'methods'`

###### players.methods

> `readonly` **methods**: `object`

###### players.methods.find

> `readonly` **find**: `object`

###### players.methods.find.parameters

> `readonly` **parameters**: `"player: string"` = `'player: string'`

###### players.methods.find.returns

> `readonly` **returns**: "KnownPlayer \| undefined" = 'KnownPlayer \| undefined'

###### players.methods.find.summary

> `readonly` **summary**: `` "A player who joined the server, online or not, by their key, name, XUID or UUID. A name is matched without regard to case; when several accounts joined under it, the one that joined last answers. `undefined` for a player the server does not know, or one whose last join is older than the server's user cache keeps." `` = `` "A player who joined the server, online or not, by their key, name, XUID or UUID. A name is matched without regard to case; when several accounts joined under it, the one that joined last answers. `undefined` for a player the server does not know, or one whose last join is older than the server's user cache keeps." ``

###### players.methods.identity

> `readonly` **identity**: `object`

###### players.methods.identity.parameters

> `readonly` **parameters**: `"player: Player"` = `'player: Player'`

###### players.methods.identity.returns

> `readonly` **returns**: `"PlayerIdentity"` = `'PlayerIdentity'`

###### players.methods.identity.summary

> `readonly` **summary**: `` "The account, client and connection of an online player. Throws a `TypeError` for a player who left." `` = `` 'The account, client and connection of an online player. Throws a `TypeError` for a player who left.' ``

###### players.summary

> `readonly` **summary**: `` "Who a player is beyond the entity id of one login, which changes each time they join: the account, the client and the connection. `key` is the id that stays the same." `` = `` 'Who a player is beyond the entity id of one login, which changes each time they join: the account, the client and the connection. `key` is the id that stays the same.' ``

##### serverList

> `readonly` **serverList**: `object`

###### serverList.kind

> `readonly` **kind**: `"methods"` = `'methods'`

###### serverList.methods

> `readonly` **methods**: `object`

###### serverList.methods.reset

> `readonly` **reset**: `object`

###### serverList.methods.reset.parameters

> `readonly` **parameters**: `""` = `''`

###### serverList.methods.reset.returns

> `readonly` **returns**: `"void"` = `'void'`

###### serverList.methods.reset.summary

> `readonly` **summary**: `"Takes back every change the pack made, at once rather than when its scripts stop, so the list shows another pack's change or the server's own values again."` = `"Takes back every change the pack made, at once rather than when its scripts stop, so the list shows another pack's change or the server's own values again."`

###### serverList.methods.update

> `readonly` **update**: `object`

###### serverList.methods.update.parameters

> `readonly` **parameters**: `"options: ServerListOptions"` = `'options: ServerListOptions'`

###### serverList.methods.update.returns

> `readonly` **returns**: `"void"` = `'void'`

###### serverList.methods.update.summary

> `readonly` **summary**: `` "Changes what the server list shows. A property the options leave out keeps the value the pack gave it before, or the server's own. Throws a `TypeError` for a MOTD or second name with a `;`, which the Bedrock ping cannot carry, and for a count that is not a whole number from 0 to 2147483647." `` = `` "Changes what the server list shows. A property the options leave out keeps the value the pack gave it before, or the server's own. Throws a `TypeError` for a MOTD or second name with a `;`, which the Bedrock ping cannot carry, and for a count that is not a whole number from 0 to 2147483647." ``

###### serverList.properties

> `readonly` **properties**: `object`

###### serverList.properties.levelName

> `readonly` **levelName**: `object`

###### serverList.properties.levelName.summary

> `readonly` **summary**: `` "The second name, which a Bedrock client shows below the MOTD for a server on its LAN. `JSPrismarine` until a pack changes it." `` = `` 'The second name, which a Bedrock client shows below the MOTD for a server on its LAN. `JSPrismarine` until a pack changes it.' ``

###### serverList.properties.levelName.type

> `readonly` **type**: `"string"` = `'string'`

###### serverList.properties.maxPlayers

> `readonly` **maxPlayers**: `object`

###### serverList.properties.maxPlayers.summary

> `readonly` **summary**: `` "The player limit the list shows. `max-players` until a pack changes it. A change shows in the list only: the server still turns a player away at `max-players`." `` = `` 'The player limit the list shows. `max-players` until a pack changes it. A change shows in the list only: the server still turns a player away at `max-players`.' ``

###### serverList.properties.maxPlayers.type

> `readonly` **type**: `"number"` = `'number'`

###### serverList.properties.motd

> `readonly` **motd**: `object`

###### serverList.properties.motd.summary

> `readonly` **summary**: `` "The MOTD, the server's first line, which `§` format codes color. `config.json`'s `motd` until a pack changes it." `` = `` "The MOTD, the server's first line, which `§` format codes color. `config.json`'s `motd` until a pack changes it." ``

###### serverList.properties.motd.type

> `readonly` **type**: `"string"` = `'string'`

###### serverList.properties.onlinePlayers

> `readonly` **onlinePlayers**: `object`

###### serverList.properties.onlinePlayers.summary

> `readonly` **summary**: `"How many players the list says are online. The players connected over every transport until a pack changes it."` = `'How many players the list says are online. The players connected over every transport until a pack changes it.'`

###### serverList.properties.onlinePlayers.type

> `readonly` **type**: `"number"` = `'number'`

###### serverList.summary

> `readonly` **summary**: `` "What a server list shows of the server, the same over every way a client asks: Bedrock's server list and LAN, the query protocol and Java Edition's multiplayer screen. Each property reads what the list shows now. A change belongs to the pack that made it and goes when the pack's scripts stop, as on `/reload`; where two packs change one property, the one that changed it last shows." `` = `` "What a server list shows of the server, the same over every way a client asks: Bedrock's server list and LAN, the query protocol and Java Edition's multiplayer screen. Each property reads what the list shows now. A change belongs to the pack that made it and goes when the pack's scripts stop, as on `/reload`; where two packs change one property, the one that changed it last shows." ``

***

### JSPRISMARINE\_TYPES

> `const` **JSPRISMARINE\_TYPES**: `object`

Defined in: [script-host/src/host/jsprismarineServer.ts:402](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L402)

The types the members take and give, by the name the declarations give them.

#### Type Declaration

##### AddonConfigChangeEvent

> `readonly` **AddonConfigChangeEvent**: `object`

###### AddonConfigChangeEvent.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### AddonConfigChangeEvent.properties

> `readonly` **properties**: `object`

###### AddonConfigChangeEvent.properties.value

> `readonly` **value**: `object`

###### AddonConfigChangeEvent.properties.value.summary

> `readonly` **summary**: `` "The parsed JSON of the file after the change, frozen, or `undefined` when the file is gone. A file that fails to parse gives the last value." `` = `` 'The parsed JSON of the file after the change, frozen, or `undefined` when the file is gone. A file that fails to parse gives the last value.' ``

###### AddonConfigChangeEvent.properties.value.type

> `readonly` **type**: `"unknown"` = `'unknown'`

###### AddonConfigChangeEvent.summary

> `readonly` **summary**: `"A change of the config file."` = `'A change of the config file.'`

##### AddonConfigChangeSignal

> `readonly` **AddonConfigChangeSignal**: `object`

###### AddonConfigChangeSignal.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### AddonConfigChangeSignal.methods

> `readonly` **methods**: `object`

###### AddonConfigChangeSignal.methods.subscribe

> `readonly` **subscribe**: `object`

###### AddonConfigChangeSignal.methods.subscribe.parameters

> `readonly` **parameters**: `"callback: (event: AddonConfigChangeEvent) => void"` = `'callback: (event: AddonConfigChangeEvent) => void'`

###### AddonConfigChangeSignal.methods.subscribe.returns

> `readonly` **returns**: `"(event: AddonConfigChangeEvent) => void"` = `'(event: AddonConfigChangeEvent) => void'`

###### AddonConfigChangeSignal.methods.subscribe.summary

> `readonly` **summary**: `` "Calls the callback after each change, with the new value. Gives the callback back, for `unsubscribe`." `` = `` 'Calls the callback after each change, with the new value. Gives the callback back, for `unsubscribe`.' ``

###### AddonConfigChangeSignal.methods.unsubscribe

> `readonly` **unsubscribe**: `object`

###### AddonConfigChangeSignal.methods.unsubscribe.parameters

> `readonly` **parameters**: `"callback: (event: AddonConfigChangeEvent) => void"` = `'callback: (event: AddonConfigChangeEvent) => void'`

###### AddonConfigChangeSignal.methods.unsubscribe.returns

> `readonly` **returns**: `"void"` = `'void'`

###### AddonConfigChangeSignal.methods.unsubscribe.summary

> `readonly` **summary**: `` "Stops calling a callback `subscribe` took." `` = `` 'Stops calling a callback `subscribe` took.' ``

###### AddonConfigChangeSignal.properties

> `readonly` **properties**: `object` = `{}`

###### AddonConfigChangeSignal.summary

> `readonly` **summary**: `` "Subscribes to changes of the config file, as a `@minecraft/server` signal does." `` = `` 'Subscribes to changes of the config file, as a `@minecraft/server` signal does.' ``

##### AddonConfigEvents

> `readonly` **AddonConfigEvents**: `object`

###### AddonConfigEvents.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### AddonConfigEvents.properties

> `readonly` **properties**: `object`

###### AddonConfigEvents.properties.change

> `readonly` **change**: `object`

###### AddonConfigEvents.properties.change.summary

> `readonly` **summary**: `` "Fires on the first flush after the server's watch reports the settled change to the file, by an editor or by `config.write`. The watch waits for a burst of writes to settle, so one save gives one event." `` = `` "Fires on the first flush after the server's watch reports the settled change to the file, by an editor or by `config.write`. The watch waits for a burst of writes to settle, so one save gives one event." ``

###### AddonConfigEvents.properties.change.type

> `readonly` **type**: `"AddonConfigChangeSignal"` = `'AddonConfigChangeSignal'`

###### AddonConfigEvents.summary

> `readonly` **summary**: `"Events about the pack's config file."` = `"Events about the pack's config file."`

##### BeforeEventSignal

> `readonly` **BeforeEventSignal**: `object`

###### BeforeEventSignal.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### BeforeEventSignal.methods

> `readonly` **methods**: `object`

###### BeforeEventSignal.methods.subscribe

> `readonly` **subscribe**: `object`

###### BeforeEventSignal.methods.subscribe.parameters

> `readonly` **parameters**: `"callback: never"` = `'callback: never'`

###### BeforeEventSignal.methods.subscribe.returns

> `readonly` **returns**: `"unknown"` = `'unknown'`

###### BeforeEventSignal.methods.subscribe.summary

> `readonly` **summary**: `` "Adds a callback, as the signal of `@minecraft/server` does. Typed to take any signal's callback." `` = `` "Adds a callback, as the signal of `@minecraft/server` does. Typed to take any signal's callback." ``

###### BeforeEventSignal.properties

> `readonly` **properties**: `object` = `{}`

###### BeforeEventSignal.summary

> `readonly` **summary**: `` "A before-event signal of `@minecraft/server`, such as `world.beforeEvents.chatSend`. This names what the module reads, so the pack's own signal types fit." `` = `` "A before-event signal of `@minecraft/server`, such as `world.beforeEvents.chatSend`. This names what the module reads, so the pack's own signal types fit." ``

##### BossBar

> `readonly` **BossBar**: `object`

###### BossBar.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### BossBar.methods

> `readonly` **methods**: `object`

###### BossBar.methods.hide

> `readonly` **hide**: `object`

###### BossBar.methods.hide.parameters

> `readonly` **parameters**: `""` = `''`

###### BossBar.methods.hide.returns

> `readonly` **returns**: `"void"` = `'void'`

###### BossBar.methods.hide.summary

> `readonly` **summary**: `"Takes the bar off the screen for good. Does nothing to a bar that is no longer valid."` = `'Takes the bar off the screen for good. Does nothing to a bar that is no longer valid.'`

###### BossBar.methods.update

> `readonly` **update**: `object`

###### BossBar.methods.update.parameters

> `readonly` **parameters**: `"options: BossBarOptions"` = `'options: BossBarOptions'`

###### BossBar.methods.update.returns

> `readonly` **returns**: `"void"` = `'void'`

###### BossBar.methods.update.summary

> `readonly` **summary**: `"Changes what the bar shows. A property the options leave out keeps its value. Does nothing to a bar that is no longer valid."` = `'Changes what the bar shows. A property the options leave out keeps its value. Does nothing to a bar that is no longer valid.'`

###### BossBar.properties

> `readonly` **properties**: `object`

###### BossBar.properties.isValid

> `readonly` **isValid**: `object`

###### BossBar.properties.isValid.summary

> `readonly` **summary**: `"Whether the bar is still there: false once it is hidden, once the player leaves and once the pack's scripts stop."` = `"Whether the bar is still there: false once it is hidden, once the player leaves and once the pack's scripts stop."`

###### BossBar.properties.isValid.type

> `readonly` **type**: `"boolean"` = `'boolean'`

###### BossBar.properties.player

> `readonly` **player**: `object`

###### BossBar.properties.player.summary

> `readonly` **summary**: `"The player who sees the bar."` = `'The player who sees the bar.'`

###### BossBar.properties.player.type

> `readonly` **type**: `"Player"` = `'Player'`

###### BossBar.summary

> `readonly` **summary**: `"A boss bar on one player's screen."` = `"A boss bar on one player's screen."`

##### BossBarColor

> `readonly` **BossBarColor**: `object`

###### BossBarColor.kind

> `readonly` **kind**: `"union"` = `'union'`

###### BossBarColor.summary

> `readonly` **summary**: `"A boss bar's color."` = `"A boss bar's color."`

###### BossBarColor.values

> `readonly` **values**: readonly \[`"pink"`, `"blue"`, `"red"`, `"green"`, `"yellow"`, `"purple"`, `"rebeccaPurple"`, `"white"`\]

##### BossBarOptions

> `readonly` **BossBarOptions**: `object`

###### BossBarOptions.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### BossBarOptions.properties

> `readonly` **properties**: `object`

###### BossBarOptions.properties.color

> `readonly` **color**: `object`

###### BossBarOptions.properties.color.optional

> `readonly` **optional**: `true` = `true`

###### BossBarOptions.properties.color.summary

> `readonly` **summary**: `"The bar's color. Pink when a bar is shown without it."` = `"The bar's color. Pink when a bar is shown without it."`

###### BossBarOptions.properties.color.type

> `readonly` **type**: `"BossBarColor"` = `'BossBarColor'`

###### BossBarOptions.properties.progress

> `readonly` **progress**: `object`

###### BossBarOptions.properties.progress.optional

> `readonly` **optional**: `true` = `true`

###### BossBarOptions.properties.progress.summary

> `readonly` **summary**: `"How full the bar is, from 0 to 1, clamped to that range. Full when a bar is shown without it."` = `'How full the bar is, from 0 to 1, clamped to that range. Full when a bar is shown without it.'`

###### BossBarOptions.properties.progress.type

> `readonly` **type**: `"number"` = `'number'`

###### BossBarOptions.properties.text

> `readonly` **text**: `object`

###### BossBarOptions.properties.text.optional

> `readonly` **optional**: `true` = `true`

###### BossBarOptions.properties.text.summary

> `readonly` **summary**: `"The title above the bar. Empty when a bar is shown without it."` = `'The title above the bar. Empty when a bar is shown without it.'`

###### BossBarOptions.properties.text.type

> `readonly` **type**: `"string"` = `'string'`

###### BossBarOptions.summary

> `readonly` **summary**: `"What a boss bar shows."` = `'What a boss bar shows.'`

##### EventPriority

> `readonly` **EventPriority**: `object`

###### EventPriority.kind

> `readonly` **kind**: `"union"` = `'union'`

###### EventPriority.summary

> `readonly` **summary**: `` "When a before-event callback runs among the others of its signal, earliest first. `normal` until a pack sets another." `` = `` 'When a before-event callback runs among the others of its signal, earliest first. `normal` until a pack sets another.' ``

###### EventPriority.values

> `readonly` **values**: readonly \[`"lowest"`, `"low"`, `"normal"`, `"high"`, `"highest"`, `"monitor"`\]

##### KnownPlayer

> `readonly` **KnownPlayer**: `object`

###### KnownPlayer.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### KnownPlayer.properties

> `readonly` **properties**: `object`

###### KnownPlayer.properties.edition

> `readonly` **edition**: `object`

###### KnownPlayer.properties.edition.summary

> `readonly` **summary**: `"The edition the player joined with."` = `'The edition the player joined with.'`

###### KnownPlayer.properties.edition.type

> `readonly` **type**: `"PlayerEdition"` = `'PlayerEdition'`

###### KnownPlayer.properties.key

> `readonly` **key**: `object`

###### KnownPlayer.properties.key.summary

> `readonly` **summary**: `` "The id that stays the same from one login to the next, the one the server files a player's permissions, operator status and bans under: `xbox:` and the XUID of an Xbox Live account the server verified, `java:` and the profile UUID of a Java Edition account Mojang verified, or `offline:` and the name on an offline-mode server. `/perms`, `/op` and `/deop` take it as a target. Keep a player's own data, such as balances and stats, under it." `` = `` "The id that stays the same from one login to the next, the one the server files a player's permissions, operator status and bans under: `xbox:` and the XUID of an Xbox Live account the server verified, `java:` and the profile UUID of a Java Edition account Mojang verified, or `offline:` and the name on an offline-mode server. `/perms`, `/op` and `/deop` take it as a target. Keep a player's own data, such as balances and stats, under it." ``

###### KnownPlayer.properties.key.type

> `readonly` **type**: `"string"` = `'string'`

###### KnownPlayer.properties.name

> `readonly` **name**: `object`

###### KnownPlayer.properties.name.summary

> `readonly` **summary**: `"The name the player last joined with."` = `'The name the player last joined with.'`

###### KnownPlayer.properties.name.type

> `readonly` **type**: `"string"` = `'string'`

###### KnownPlayer.properties.uuid

> `readonly` **uuid**: `object`

###### KnownPlayer.properties.uuid.summary

> `readonly` **summary**: `"The player's UUID. A Java Edition account's profile id; on an offline-mode Bedrock server the client draws one per install, so it can change."` = `"The player's UUID. A Java Edition account's profile id; on an offline-mode Bedrock server the client draws one per install, so it can change."`

###### KnownPlayer.properties.uuid.type

> `readonly` **type**: `"string"` = `'string'`

###### KnownPlayer.properties.xuid

> `readonly` **xuid**: `object`

###### KnownPlayer.properties.xuid.optional

> `readonly` **optional**: `true` = `true`

###### KnownPlayer.properties.xuid.summary

> `readonly` **summary**: `"The Xbox Live id, for a Bedrock player the server verified. Absent for any other player."` = `'The Xbox Live id, for a Bedrock player the server verified. Absent for any other player.'`

###### KnownPlayer.properties.xuid.type

> `readonly` **type**: `"string"` = `'string'`

###### KnownPlayer.summary

> `readonly` **summary**: `"A player who joined the server, as the server last saw them."` = `'A player who joined the server, as the server last saw them.'`

##### LevelCreateOptions

> `readonly` **LevelCreateOptions**: `object`

###### LevelCreateOptions.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### LevelCreateOptions.properties

> `readonly` **properties**: `object`

###### LevelCreateOptions.properties.preset

> `readonly` **preset**: `object`

###### LevelCreateOptions.properties.preset.optional

> `readonly` **optional**: `true` = `true`

###### LevelCreateOptions.properties.preset.summary

> `readonly` **summary**: `` "The world preset, such as `minecraft:flat`. `minecraft:normal` when left out." `` = `` 'The world preset, such as `minecraft:flat`. `minecraft:normal` when left out.' ``

###### LevelCreateOptions.properties.preset.type

> `readonly` **type**: `"string"` = `'string'`

###### LevelCreateOptions.properties.seed

> `readonly` **seed**: `object`

###### LevelCreateOptions.properties.seed.optional

> `readonly` **optional**: `true` = `true`

###### LevelCreateOptions.properties.seed.summary

> `readonly` **summary**: `` "The world seed, read as `config.json` reads one. A random seed when left out." `` = `` 'The world seed, read as `config.json` reads one. A random seed when left out.' ``

###### LevelCreateOptions.properties.seed.type

> `readonly` **type**: `"string"` = `'string'`

###### LevelCreateOptions.summary

> `readonly` **summary**: `"The world a new level gets."` = `'The world a new level gets.'`

##### LevelInfo

> `readonly` **LevelInfo**: `object`

###### LevelInfo.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### LevelInfo.properties

> `readonly` **properties**: `object`

###### LevelInfo.properties.attached

> `readonly` **attached**: `object`

###### LevelInfo.properties.attached.summary

> `readonly` **summary**: `"Whether the level is attached, so players can be in it."` = `'Whether the level is attached, so players can be in it.'`

###### LevelInfo.properties.attached.type

> `readonly` **type**: `"boolean"` = `'boolean'`

###### LevelInfo.properties.entry

> `readonly` **entry**: `object`

###### LevelInfo.properties.entry.summary

> `readonly` **summary**: `"Whether players join the server in this level."` = `'Whether players join the server in this level.'`

###### LevelInfo.properties.entry.type

> `readonly` **type**: `"boolean"` = `'boolean'`

###### LevelInfo.properties.id

> `readonly` **id**: `object`

###### LevelInfo.properties.id.summary

> `readonly` **summary**: `"The level's UUID, which stays the same across restarts and renames."` = `"The level's UUID, which stays the same across restarts and renames."`

###### LevelInfo.properties.id.type

> `readonly` **type**: `"string"` = `'string'`

###### LevelInfo.properties.name

> `readonly` **name**: `object`

###### LevelInfo.properties.name.summary

> `readonly` **summary**: `"The level's name."` = `"The level's name."`

###### LevelInfo.properties.name.type

> `readonly` **type**: `"string"` = `'string'`

###### LevelInfo.properties.players

> `readonly` **players**: `object`

###### LevelInfo.properties.players.summary

> `readonly` **summary**: `"The names of the players in the level, empty for a detached one."` = `'The names of the players in the level, empty for a detached one.'`

###### LevelInfo.properties.players.type

> `readonly` **type**: `"readonly string[]"` = `'readonly string[]'`

###### LevelInfo.summary

> `readonly` **summary**: `"One level, as the server knew it when the pack asked."` = `'One level, as the server knew it when the pack asked.'`

##### LevelTransferOptions

> `readonly` **LevelTransferOptions**: `object`

###### LevelTransferOptions.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### LevelTransferOptions.properties

> `readonly` **properties**: `object`

###### LevelTransferOptions.properties.toSpawn

> `readonly` **toSpawn**: `object`

###### LevelTransferOptions.properties.toSpawn.optional

> `readonly` **optional**: `true` = `true`

###### LevelTransferOptions.properties.toSpawn.summary

> `readonly` **summary**: `"Sends the player to the level's spawn even when they were there before."` = `"Sends the player to the level's spawn even when they were there before."`

###### LevelTransferOptions.properties.toSpawn.type

> `readonly` **type**: `"boolean"` = `'boolean'`

###### LevelTransferOptions.summary

> `readonly` **summary**: `` "How `levels.transfer` moves a player." `` = `` 'How `levels.transfer` moves a player.' ``

##### PermissionsAfterEvents

> `readonly` **PermissionsAfterEvents**: `object`

###### PermissionsAfterEvents.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### PermissionsAfterEvents.properties

> `readonly` **properties**: `object`

###### PermissionsAfterEvents.properties.permissionsChange

> `readonly` **permissionsChange**: `object`

###### PermissionsAfterEvents.properties.permissionsChange.summary

> `readonly` **summary**: `` "Fires after any write to the permission files, whoever made it, and after the files are read again on `/reload` or a change on disk." `` = `` 'Fires after any write to the permission files, whoever made it, and after the files are read again on `/reload` or a change on disk.' ``

###### PermissionsAfterEvents.properties.permissionsChange.type

> `readonly` **type**: `"PermissionsChangeSignal"` = `'PermissionsChangeSignal'`

###### PermissionsAfterEvents.summary

> `readonly` **summary**: `"The events the permission files raise, after the fact."` = `'The events the permission files raise, after the fact.'`

##### PermissionsChangeEvent

> `readonly` **PermissionsChangeEvent**: `object`

###### PermissionsChangeEvent.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### PermissionsChangeEvent.properties

> `readonly` **properties**: `object`

###### PermissionsChangeEvent.properties.target

> `readonly` **target**: `object`

###### PermissionsChangeEvent.properties.target.optional

> `readonly` **optional**: `true` = `true`

###### PermissionsChangeEvent.properties.target.summary

> `readonly` **summary**: `` "The group or the user the write touched. Absent after the files were read again on `/reload` or a change on disk, which may have changed anything." `` = `` 'The group or the user the write touched. Absent after the files were read again on `/reload` or a change on disk, which may have changed anything.' ``

###### PermissionsChangeEvent.properties.target.type

> `readonly` **type**: `"PermissionsChangeTarget"` = `'PermissionsChangeTarget'`

###### PermissionsChangeEvent.summary

> `readonly` **summary**: `"What a permission change touched."` = `'What a permission change touched.'`

##### PermissionsChangeSignal

> `readonly` **PermissionsChangeSignal**: `object`

###### PermissionsChangeSignal.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### PermissionsChangeSignal.methods

> `readonly` **methods**: `object`

###### PermissionsChangeSignal.methods.subscribe

> `readonly` **subscribe**: `object`

###### PermissionsChangeSignal.methods.subscribe.parameters

> `readonly` **parameters**: `"callback: (event: PermissionsChangeEvent) => void"` = `'callback: (event: PermissionsChangeEvent) => void'`

###### PermissionsChangeSignal.methods.subscribe.returns

> `readonly` **returns**: `"(event: PermissionsChangeEvent) => void"` = `'(event: PermissionsChangeEvent) => void'`

###### PermissionsChangeSignal.methods.subscribe.summary

> `readonly` **summary**: `` "Calls `callback` after each change, with the player and the group it touched, and returns the callback. A pack's subscriptions end when its scripts stop." `` = `` "Calls `callback` after each change, with the player and the group it touched, and returns the callback. A pack's subscriptions end when its scripts stop." ``

###### PermissionsChangeSignal.methods.unsubscribe

> `readonly` **unsubscribe**: `object`

###### PermissionsChangeSignal.methods.unsubscribe.parameters

> `readonly` **parameters**: `"callback: (event: PermissionsChangeEvent) => void"` = `'callback: (event: PermissionsChangeEvent) => void'`

###### PermissionsChangeSignal.methods.unsubscribe.returns

> `readonly` **returns**: `"void"` = `'void'`

###### PermissionsChangeSignal.methods.unsubscribe.summary

> `readonly` **summary**: `` "Stops calling a callback `subscribe` returned." `` = `` 'Stops calling a callback `subscribe` returned.' ``

###### PermissionsChangeSignal.properties

> `readonly` **properties**: `object` = `{}`

###### PermissionsChangeSignal.summary

> `readonly` **summary**: `"Where a pack subscribes to permission changes."` = `'Where a pack subscribes to permission changes.'`

##### PermissionsChangeTarget

> `readonly` **PermissionsChangeTarget**: `object`

###### PermissionsChangeTarget.kind

> `readonly` **kind**: `"alias"` = `'alias'`

###### PermissionsChangeTarget.summary

> `readonly` **summary**: `` "The group a group write touched, by name, or the user a user write touched, by the name their record shows, with their `Player` while they are online." `` = `` 'The group a group write touched, by name, or the user a user write touched, by the name their record shows, with their `Player` while they are online.' ``

###### PermissionsChangeTarget.type

> `readonly` **type**: "\{ readonly group: string \} \| \{ readonly name: string; readonly player?: Player \}" = '\{ readonly group: string \} \| \{ readonly name: string; readonly player?: Player \}'

##### Player

> `readonly` **Player**: `object`

###### Player.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### Player.properties

> `readonly` **properties**: `object`

###### Player.properties.id

> `readonly` **id**: `object`

###### Player.properties.id.summary

> `readonly` **summary**: `"The player's entity id."` = `"The player's entity id."`

###### Player.properties.id.type

> `readonly` **type**: `"string"` = `'string'`

###### Player.summary

> `readonly` **summary**: `` "A `Player` from `@minecraft/server`. The members take only a real one; this names what they read, so the pack's own `Player` type fits." `` = `` "A `Player` from `@minecraft/server`. The members take only a real one; this names what they read, so the pack's own `Player` type fits." ``

##### PlayerEdition

> `readonly` **PlayerEdition**: `object`

###### PlayerEdition.kind

> `readonly` **kind**: `"union"` = `'union'`

###### PlayerEdition.summary

> `readonly` **summary**: `"The edition of Minecraft a player plays."` = `'The edition of Minecraft a player plays.'`

###### PlayerEdition.values

> `readonly` **values**: readonly \[`"bedrock"`, `"java"`\]

##### PlayerIdentity

> `readonly` **PlayerIdentity**: `object`

###### PlayerIdentity.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### PlayerIdentity.properties

> `readonly` **properties**: `object`

###### PlayerIdentity.properties.address

> `readonly` **address**: `object`

###### PlayerIdentity.properties.address.summary

> `readonly` **summary**: `"The IP address the client connected from."` = `'The IP address the client connected from.'`

###### PlayerIdentity.properties.address.type

> `readonly` **type**: `"string"` = `'string'`

###### PlayerIdentity.properties.clientVersion

> `readonly` **clientVersion**: `object`

###### PlayerIdentity.properties.clientVersion.optional

> `readonly` **optional**: `true` = `true`

###### PlayerIdentity.properties.clientVersion.summary

> `readonly` **summary**: `` "The game version the client reported, such as `1.26.50`. Absent when it reported none, as a Java client never does." `` = `` 'The game version the client reported, such as `1.26.50`. Absent when it reported none, as a Java client never does.' ``

###### PlayerIdentity.properties.clientVersion.type

> `readonly` **type**: `"string"` = `'string'`

###### PlayerIdentity.properties.deviceOs

> `readonly` **deviceOs**: `object`

###### PlayerIdentity.properties.deviceOs.optional

> `readonly` **optional**: `true` = `true`

###### PlayerIdentity.properties.deviceOs.summary

> `readonly` **summary**: `` "The client's operating system as the Bedrock login names it, such as `WIN32`, `GOOGLE` or `IOS`. Absent for a Java player and a simulated one. `ClientSystemInfo.platformType` of `@minecraft/server` gives the coarser platform." `` = `` "The client's operating system as the Bedrock login names it, such as `WIN32`, `GOOGLE` or `IOS`. Absent for a Java player and a simulated one. `ClientSystemInfo.platformType` of `@minecraft/server` gives the coarser platform." ``

###### PlayerIdentity.properties.deviceOs.type

> `readonly` **type**: `"string"` = `'string'`

###### PlayerIdentity.properties.edition

> `readonly` **edition**: `object`

###### PlayerIdentity.properties.edition.summary

> `readonly` **summary**: `"The edition of the player's client."` = `"The edition of the player's client."`

###### PlayerIdentity.properties.edition.type

> `readonly` **type**: `"PlayerEdition"` = `'PlayerEdition'`

###### PlayerIdentity.properties.key

> `readonly` **key**: `object`

###### PlayerIdentity.properties.key.summary

> `readonly` **summary**: `` "The id that stays the same from one login to the next, as `KnownPlayer.key`." `` = `` 'The id that stays the same from one login to the next, as `KnownPlayer.key`.' ``

###### PlayerIdentity.properties.key.type

> `readonly` **type**: `"string"` = `'string'`

###### PlayerIdentity.properties.name

> `readonly` **name**: `object`

###### PlayerIdentity.properties.name.summary

> `readonly` **summary**: `"The name the player joined with."` = `'The name the player joined with.'`

###### PlayerIdentity.properties.name.type

> `readonly` **type**: `"string"` = `'string'`

###### PlayerIdentity.properties.port

> `readonly` **port**: `object`

###### PlayerIdentity.properties.port.summary

> `readonly` **summary**: `"The port the client connected from."` = `'The port the client connected from.'`

###### PlayerIdentity.properties.port.type

> `readonly` **type**: `"number"` = `'number'`

###### PlayerIdentity.properties.protocolVersion

> `readonly` **protocolVersion**: `object`

###### PlayerIdentity.properties.protocolVersion.summary

> `readonly` **summary**: `"The network protocol version the client speaks, of the player's edition."` = `"The network protocol version the client speaks, of the player's edition."`

###### PlayerIdentity.properties.protocolVersion.type

> `readonly` **type**: `"number"` = `'number'`

###### PlayerIdentity.properties.uuid

> `readonly` **uuid**: `object`

###### PlayerIdentity.properties.uuid.summary

> `readonly` **summary**: `` "The player's UUID, as `KnownPlayer.uuid`." `` = `` "The player's UUID, as `KnownPlayer.uuid`." ``

###### PlayerIdentity.properties.uuid.type

> `readonly` **type**: `"string"` = `'string'`

###### PlayerIdentity.properties.xuid

> `readonly` **xuid**: `object`

###### PlayerIdentity.properties.xuid.optional

> `readonly` **optional**: `true` = `true`

###### PlayerIdentity.properties.xuid.summary

> `readonly` **summary**: `` "The Xbox Live id the login carried. Absent for a Java player and a login without one. On an offline-mode server the client chooses it, so file data under `key` instead." `` = `` 'The Xbox Live id the login carried. Absent for a Java player and a login without one. On an offline-mode server the client chooses it, so file data under `key` instead.' ``

###### PlayerIdentity.properties.xuid.type

> `readonly` **type**: `"string"` = `'string'`

###### PlayerIdentity.summary

> `readonly` **summary**: `` "An online player: their account, as `KnownPlayer` gives it, and the client and connection they joined with." `` = `` 'An online player: their account, as `KnownPlayer` gives it, and the client and connection they joined with.' ``

##### ServerListOptions

> `readonly` **ServerListOptions**: `object`

###### ServerListOptions.kind

> `readonly` **kind**: `"interface"` = `'interface'`

###### ServerListOptions.properties

> `readonly` **properties**: `object`

###### ServerListOptions.properties.levelName

> `readonly` **levelName**: `object`

###### ServerListOptions.properties.levelName.optional

> `readonly` **optional**: `true` = `true`

###### ServerListOptions.properties.levelName.summary

> `readonly` **summary**: `` "The second name, without a `;`." `` = `` 'The second name, without a `;`.' ``

###### ServerListOptions.properties.levelName.type

> `readonly` **type**: `"string"` = `'string'`

###### ServerListOptions.properties.maxPlayers

> `readonly` **maxPlayers**: `object`

###### ServerListOptions.properties.maxPlayers.optional

> `readonly` **optional**: `true` = `true`

###### ServerListOptions.properties.maxPlayers.summary

> `readonly` **summary**: `"The player limit to show, a whole number from 0 to 2147483647."` = `'The player limit to show, a whole number from 0 to 2147483647.'`

###### ServerListOptions.properties.maxPlayers.type

> `readonly` **type**: `"number"` = `'number'`

###### ServerListOptions.properties.motd

> `readonly` **motd**: `object`

###### ServerListOptions.properties.motd.optional

> `readonly` **optional**: `true` = `true`

###### ServerListOptions.properties.motd.summary

> `readonly` **summary**: `` "The MOTD, without a `;`." `` = `` 'The MOTD, without a `;`.' ``

###### ServerListOptions.properties.motd.type

> `readonly` **type**: `"string"` = `'string'`

###### ServerListOptions.properties.onlinePlayers

> `readonly` **onlinePlayers**: `object`

###### ServerListOptions.properties.onlinePlayers.optional

> `readonly` **optional**: `true` = `true`

###### ServerListOptions.properties.onlinePlayers.summary

> `readonly` **summary**: `"The online count to show, a whole number from 0 to 2147483647."` = `'The online count to show, a whole number from 0 to 2147483647.'`

###### ServerListOptions.properties.onlinePlayers.type

> `readonly` **type**: `"number"` = `'number'`

###### ServerListOptions.summary

> `readonly` **summary**: `` "What `serverList.update` changes. A property left out keeps its value." `` = `` 'What `serverList.update` changes. A property left out keeps its value.' ``

***

### LEVEL\_HOST\_FUNCTIONS

> `const` **LEVEL\_HOST\_FUNCTIONS**: readonly \[`"levels"`, `"currentLevel"`, `"levelOf"`, `"transferPlayer"`, `"createLevel"`, `"attachLevel"`, `"detachLevel"`\]

Defined in: [script-host/src/host/jsprismarineServer.ts:1055](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L1055)

The host functions behind `levels`, installed only on a server that manages levels.

***

### PERMISSION\_HOST\_FUNCTIONS

> `const` **PERMISSION\_HOST\_FUNCTIONS**: readonly \[`"hasPermission"`, `"groupsOf"`, `"primaryGroupOf"`, `"metaOf"`, `"grant"`, `"revoke"`, `"grantToGroup"`, `"revokeFromGroup"`, `"addToGroup"`, `"removeFromGroup"`, `"onPermissionsChange"`\]

Defined in: [script-host/src/host/jsprismarineServer.ts:1040](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L1040)

The host functions behind `permissions`, installed only on a server that has the permission files.

***

### PLAYER\_HOST\_FUNCTIONS

> `const` **PLAYER\_HOST\_FUNCTIONS**: readonly \[`"playerIdentity"`, `"findPlayer"`\]

Defined in: [script-host/src/host/jsprismarineServer.ts:1066](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L1066)

The host functions behind `players`, installed only on a server that knows its players' accounts.

***

### SERVER\_LIST\_HOST\_FUNCTIONS

> `const` **SERVER\_LIST\_HOST\_FUNCTIONS**: readonly \[`"serverListStatus"`, `"updateServerList"`, `"resetServerList"`\]

Defined in: [script-host/src/host/jsprismarineServer.ts:1072](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L1072)

The host functions behind `serverList`, installed only on a server that advertises a status.

## Functions

### jsprismarineServerSource()

> **jsprismarineServerSource**(`info`): `string`

Defined in: [script-host/src/host/jsprismarineServer.ts:1108](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L1108)

The script that evaluates to a function making the module's namespace, run in the pack's
context. Called with nothing, the function makes `jsprismarine` alone; called with an object of
the [JSPRISMARINE\_HOST\_FUNCTIONS](#jsprismarine-host-functions), it adds the members that reach the running server.

#### Parameters

##### info

[`JsprismarineServerInfo`](#jsprismarineserverinfo)

The server the pack runs on.

#### Returns

`string`

A script whose value is that function. The namespace and every object in it are frozen.

***

### jsprismarineServerTypings()

> **jsprismarineServerTypings**(): `string`

Defined in: [script-host/src/host/jsprismarineServer.ts:1270](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L1270)

The declarations a pack's TypeScript sees for `@jsprismarine/server` and
`@jsprismarine/placeholders`: one ambient module each, so a project that names the typings
package in its `types` gets them for the module names.

#### Returns

`string`

The contents of the typings package's `index.d.ts`.

***

### placeholdersModuleSource()

> **placeholdersModuleSource**(): `string`

Defined in: [script-host/src/host/jsprismarineServer.ts:1152](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/jsprismarineServer.ts#L1152)

The script that evaluates to a function making the `@jsprismarine/placeholders` namespace, run
in the pack's context with an object of the [JSPRISMARINE\_PLACEHOLDERS\_HOST\_FUNCTIONS](#jsprismarine-placeholders-host-functions).

#### Returns

`string`

A script whose value is that function. The namespace and every object in it are frozen.
