pardon_player
Remove a player ban to restore server access. This tool allows administrators to lift restrictions and reinstate banned users in Minecraft servers.
Instructions
Remove a ban 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": "pardon_player"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| player | Yes | Player name |
Implementation Reference
- src/tools/player-tools.ts:142-164 (handler)The 'pardon_player' tool implementation, which registers the tool and sends the 'pardon' command to the server via the RCON manager.
server.tool( "pardon_player", "Remove a ban from a player.", { player: z.string().describe("Player name"), }, async ({ player }) => { try { const response = await manager.rcon.send(`pardon ${player}`); return { content: [{ type: "text", text: response }] }; } catch (error) { return { content: [ { type: "text", text: `Failed: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } } );