Documentation Index
Fetch the complete documentation index at: https://mintlify.com/iFamishedX/HungerLib/llms.txt
Use this file to discover all available pages before exploring further.
CommandAPI provides a single method for dispatching console commands to a running server through the Pterodactyl Client API. It is accessible as panel.commands on every Panel instance.
This API sends commands through the Pterodactyl panel’s command endpoint, which injects input directly into the server’s console stdin. It is fire-and-forget — no output is returned. If you need to send a Minecraft command and capture the response (e.g. reading player lists or TPS output), use MinecraftServer.sendConsoleCommand() via a BridgeClient connection instead, which communicates through HungerBridge’s RCON/console relay.
send
Sends a single console command to the server. The command is injected into the server’s stdin as if typed in the Pterodactyl console.
Endpoint: POST /api/client/servers/{server_id}/command
The short identifier of the target server (e.g.
"abc123").The raw console command string to send. Do not include a leading
/ for Minecraft commands unless the server’s console requires it — Pterodactyl passes the string verbatim.requests.Response — A 204 No Content response on success. No command output is returned.
CommandAPI.send() routes through the Pterodactyl WebSocket console and does not return any output. For Minecraft servers where you need to capture command responses — such as reading online player counts or TPS — use MinecraftServer.sendConsoleCommand() through a BridgeClient connection, which leverages HungerBridge’s RCON relay.