Aarohi

Create a cross-version Spigot plugin named LogChecker.

Command: /log <player> Permission: logchecker.use Function: Opens a virtual GUI showing the target's 15 most recent activities.

Track these 11 actions in memory and wipe them on logout:

  • Block Break for example (IRON_PICKAXE)
  • Block Place for example (BRICK)
  • Pickup for example (HOPPER)
  • Drop for example (DROPPER)
  • Chat for example (PAPER)
  • Command for example (COMMAND_BLOCK)
  • Chest Open for example (CHEST)
  • World Change for example (NETHER_PORTAL)
  • Join/Quit for example (OAK_DOOR)
  • Kill for example (DIAMOND_SWORD)
  • Death for example (SKELETON_SKULL)

Provide clean Java classes and plugin.yml using standard Bukkit APIs.

Kodari AI
KodariOct 12 at 1:31 pm 1
LogChecker
Cross-version Spigot plugin providing a /log command that opens a virtual GUI displaying a target player's 15 most recent activities. Tracks 11 action types including block break/place, item pickup/drop, chat, commands, chest opens, world changes, join/quit, kills, and deaths. Actions are stored in memory per player and wiped on logout. Each action displays with a unique icon representing its type. Requires logchecker.use permission to execute the command.
  • Set up the Spigot project and /log command with its permission.

  • Track the requested player events in a bounded in-memory history and clear it on logout.

  • Show the latest 15 entries in a protected virtual inventory, using XSeries material fallbacks for cross-version icons.

Created LogChecker with /log <player> and the logchecker.use permission. It tracks the requested activity types in memory, displays the latest 15 entries in a click-protected GUI, and clears a player’s history on logout. Cross-version icons use XSeries material matching.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
12 378
src/main/java/com/kodari/logchecker/LogCheckerPlugin.java
package com.kodari.logchecker;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class LogCheckerPlugin extends JavaPlugin {
    @Override
    public void onEnable() {
        ActivityTracker activityTracker = new ActivityTracker();
        Bukkit.getPluginManager().registerEvents(new ActivityListener(activityTracker), this);
        Bukkit.getPluginManager().registerEvents(new LogMenuListener(), this);
        getCommand("log").setExecutor(new LogCommand(activityTracker));
    }
}