LogBlock

Powerful player action tracking plugin

5,38k

Quick challenge

How far can you run before the mobs catch you?

LogBlock

LogBlock – Advanced Block Logging & Admin Tools

LogBlock is a lightweight and powerful Minecraft plugin that tracks every player action on your server. Designed for admins who want full control over block events, this plugin logs block placement, block breaking, and player interactions in real-time, while providing easy-to-use admin tools for monitoring and investigating activity.

Features

* Minimal Performance Impact: Automatically logs block placements and breaks with player, location, type, and timestamp. * Minimal Performance Impact: Special "Log Stick" lets admins inspect blocks directly in-game. * Minimal Performance Impact: Uses SQLite with HikariCP for fast, reliable data management. * Minimal Performance Impact: Easily extendable for custom logging or integration with other plugins. * Minimal Performance Impact: Only players with `logblock.admin` can use admin commands. * Minimal Performance Impact: Optimized database connections and asynchronous logging ensure smooth gameplay.

Commands

* `/logblock getstick` – Gives an admin a special stick to inspect block logs.

Perfect for

* Servers looking to prevent griefing or track player activity. * Admins who need a reliable, real-time logging solution. * Any Minecraft server wanting advanced, lightweight logging tools.

Integration with Timber

LogBlock can be used alongside the Timber plugin to enhance tree logging and monitoring. When Timber is installed, LogBlock records detailed logs of block breaks caused by tree chopping, allowing server admins to:

- Track which players are cutting trees. - Monitor large-scale logging events. - Investigate accidental or intentional griefing related to tree harvesting. - Integrate tree-cutting actions into custom analytics or administrative tools.

This integration ensures that all Timber actions are safely logged in real-time and can be accessed via LogBlock’s API, providing a full audit trail of forestry activities on your server.

Using LogBlock as an API

LogBlock is not just a plugin—it also provides a fully accessible API for developers. You can integrate it into your own plugins or tools to access block logs, player actions, and history data in real-time.

Example Usage

`LogBlockApi api = LogBlock.getLogBlockApi();`

`// Get all log entries List logs = api.getLogEntry();`

`// Add a custom log LogEntry customLog = new LogEntry(playerUUID, x, y, z, world, LogEntry.BlockAction.PLACE, Material.STONE, System.currentTimeMillis()); api.addLogEntry(customLog);`

`// Get the last action at a specific block LogEntry last = api.getLastLogAtLocation("world", 100, 64, -200);`

ADS