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.
Input Schema
TableJSON 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, }; } } );