Skip to main content
Glama

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
NameRequiredDescriptionDefault
playerYesPlayer name

Implementation Reference

  • 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,
          };
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tamo2918/Minecraft-Server-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server