How it works:
After each drilling action, the listener counts the additional blocks broken and checks if the tool broke, then calls drillLogger.logDrill(player, world, x, y, z, nbBlocks, toolBroke).
The class constructs a single text message and dispatches it to the enabled channels.
Console: simple getLogger().info(...).
File: opens/appends to plugins/Drill3x3/logs/drill3x3.log (created automatically on first launch), with one line per drill action.
Discord: sends a JSON POST request to the webhook URL via HttpClient (built-in Java, no external libraries); sent asynchronously (sendAsync) to ensure the server's main thread is never blocked. If the only-on-tool-break option is enabled, only tool-break events are sent to Discord (preventing spam when everyone is drilling constantly).
If the webhook fails (invalid URL, Discord down, etc.), it simply logs a warning to the console; it never crashes the player's drilling action.
| Version | Minecraft | Loader | Download |
|---|---|---|---|
|
drill3x3 1.0.0 1.5.1 |
1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2
|
bukkit, paper, purpur, spigot
|
Download |