For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-admin/functions/opPlayer.md.

Function: opPlayer() experimental

player

opPlayer(player): void

World Mutation Beta

Parameters

player

Player

要给予权限的玩家。

Player to add permissions to.

Returns

void

Remarks

给予玩家 OP 权限。

Gives the player op permissions.

Throws

This function can throw errors.

EngineError

InvalidArgumentError

PlayerAlreadyOpError

同领域相关