deop_player
Remove operator privileges from a specified player in a Minecraft server to manage administrative access and permissions.
Instructions
Revoke operator status from a player.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| player | Yes | Player name |
Implementation Reference
- src/tools/player-tools.ts:63-85 (handler)The "deop_player" tool is registered and handled within this block. It takes a "player" string as input and executes the "deop" RCON command via the ServerManager.
server.tool( "deop_player", "Revoke operator status from a player.", { player: z.string().describe("Player name"), }, async ({ player }) => { try { const response = await manager.rcon.send(`deop ${player}`); return { content: [{ type: "text", text: response }] }; } catch (error) { return { content: [ { type: "text", text: `Failed: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } } );