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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"player": "<player>"
},
"name": "deop_player"
}
}Input 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, }; } } );