Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

spool / PaperOps

Class: PaperOps โ€‹

Defined in: plugins/native/index.ts:14

Typed commands of the companion Paper plugin, e.g. ctx.paper().pathfind(target, to).

Each returns a NativeCall, so you can add a .fallback(...) for vanilla builds. Lives in spool because it's specific to one server plugin.

Constructors โ€‹

Constructor โ€‹

new PaperOps(ctx): PaperOps

Defined in: plugins/native/index.ts:15

Parameters โ€‹

ctx โ€‹

FunctionContext

Returns โ€‹

PaperOps

Methods โ€‹

call() โ€‹

call(...args): NativeCall

Defined in: plugins/native/index.ts:18

Any plugin command without a named wrapper yet. Same as ctx.native.

Parameters โ€‹

args โ€‹

...[string | IdValue, ...args: ArgInput[]]

Returns โ€‹

NativeCall


pathfind() โ€‹

pathfind(target, to): NativeCall

Defined in: plugins/native/index.ts:26

Moves target to to with the server's pathfinder. Server-only unless given a .fallback(...).

Parameters โ€‹

target โ€‹

Selector

to โ€‹

PosValue

Returns โ€‹

NativeCall

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.