Compatibility
Minecraft: Java Edition
Platforms
Tags
Creators
Details
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.


