HomeJavaModsGriefLogger Rollback Addon (GLRA)
GriefLogger Rollback Addon (GLRA)
ModsJava

GriefLogger Rollback Addon (GLRA)

by Pankraz01 · on Modrinth

⬇ Download on Modrinth
GriefLogger Rollback Addon (GLRA) — screenshot 1GriefLogger Rollback Addon (GLRA) — screenshot 2

Grieflogger Rollback Addon

This NeoForge addon reads GriefLogger data from SQLite (default) or MySQL/MariaDB and reverts block actions in-game via command. It targets NeoForge 21.1.213 / Minecraft 1.21.1 and is server-side only: any logged block placements or breaks can be undone selectively. Its like CoreProtect, but for Modded Server.

Features

Requirements

Installation

  1. Place the mod JAR and the JDBC driver for your backend (SQLite, MySQL, or MariaDB) into the server mods/ folder.
  2. Start the server once to generate config/grieflogger/griefloggerrollbackaddon-common.toml.
  3. Choose the backend via dbType (case-insensitive, default SQLITE). For SQLite set dbFile; for MySQL/MariaDB set host/port/name/user/password.
  4. Check the log for [griefloggerrollbackaddon] Database connection succeeded. If it fails, the addon remains disabled until the connection works.

Configuration (config/grieflogger/griefloggerrollbackaddon-common.toml)

Command: /gl rollback

Syntax: /gl rollback t:<time> [u:<player>] [r:<radius|c<chunks>>] [i|b]

Examples

Additional Commands

Web UI / HTTP API

Permissions

How it works

  1. Server start: immediately tests a DB connection. On failure, the addon disables itself (no commands/events).
  2. Command: /gl rollback ... starts a job:
    • Loads matching entries from blocks and containers since the given time in a background thread, optionally filtered by player and/or radius.
  1. Server ticks: up to rollbackBatchSize actions are processed each tick:
    • BREAK logs restore the broken block from the DB entry.
    • PLACE logs restore the previous block state.
    • Container logs remove items that were inserted and add back items (including stored NBT) that were taken. If a container is full, overflow is dropped at the container position.
    • Unknown/other codes fall back to restoring the previous state (or air).
    • The target chunk is loaded before setting the block.
  2. Progress: every progressTickInterval ticks, the queue size and processed count are logged. When the queue is empty, the job finishes.

Notes and limitations

Development/Building

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more