
Partickles performance
Create mod that when comand is writen in game or in console its also send to the discord so everyone can see it
00—neoforgeServer1.21.1mod
Partickles performance mirrors every command issued by players, the console, or command blocks to a Discord webhook. A listener on the server-only command event captures the executor name and command text, formats it, and posts asynchronously via Java HttpClient. Messages collapse line breaks, replace backticks, space out mentions, and are trimmed to Discord's 2000-character limit.
Configuration:
- Discord webhook URL comes from the PARTICKLES_WEBHOOK_URL environment variable, or the
discord.webhookUrlentry in config/particklesperformance-server.toml. - Toggle whether player and/or console commands are mirrored with
filter.relayPlayerCommandsandfilter.relayConsoleCommandsin the same config file.
Notes and limitations:
- Commands are posted as soon as they are parsed; cancelled/failed commands will still appear.
- Webhook delivery is a single async attempt without retries or local buffering; the server must be able to reach the webhook endpoint.
- The mod is marked for the dedicated server only and avoids client assets or custom registries to keep vanilla client compatibility.