HomeJavaModsPiggy Admin
Piggy Admin

build test release

Piggy Admin

A server-side administration mod designed to help manage and enforce settings for compatible client-side mods (like Piggy Build and Piggy Inventory). Currently, it serves as a central point for managing anti-cheat options, logging, and detection, but it will evolve to include more administration tools.


⚠️ Disclaimer

This is a personal project. It comes AS IS and might cause issues.

Feel free to fork the project or submit a Pull Request if you want to contribute fixes or features!


Features

🛡️ Anti-Cheat Enforcement

🕵️ Advanced X-Ray Detection

Piggy Admin uses a multi-layered heuristic engine to detect suspicious mining patterns without false positives from branch mining.

📜 Forensic Data & Attribution

The mod acts as a powerful investigation tool for griefing.

📜 Moderation Engine

🤖 Gemini AI Setup

To use the AI moderation features, you need a Google Gemini API Key.

  1. Get an API Key: Visit the Google AI Studio and create a free API key.
  2. Configure the Mod:
    • Start the server once to generate the config file.
    • Open config/piggy-admin-server.json.
    • Paste your key into the "geminiApiKey" field.
    • Set "moderationEnabled": true.
  3. Advanced Options:
    • geminiModel: defaults to gemini-1.5-flash (recommended for speed and cost).
    • geminiSystemPrompt: You can customize the AI's "personality" and strictness here.

[!NOTE] The free tier of Gemini has rate limits (approx. 15 requests per minute). The mod includes a built-in cache and rate-limiter to handle these limits gracefully without lagging the server.

📜 History & Logging


Commands

All commands require OP level 2 or higher.

General Administration

Investigation & Logging


Configuration

The mod generates a configuration file at config/piggy-admin-server.json (server-side).

{
  "allowCheats": false,
  "features": {
    "flexible_placement": true,
    "fast_place": false,
    "tool_swap": true
  },
  "xrayCheck": true,
  "xrayMaxRatio": 0.15,
  "xrayMinBlocks": 20,
  "moderationEnabled": true,
  "geminiApiKey": "YOUR_KEY",
  "geminiModel": "gemini-1.5-flash"
}

Dependencies & Installation

Requirements

Required Mods

Installation

  1. Download the .jar file from Releases.
  2. Install Fabric Loader for Minecraft 1.21.1.
  3. Place the piggy-admin jar (along with Fabric API and Piggy Lib) into your server's mods folder.
  4. Launch the server!

Todo / Future Features


Inspiration

This mod was inspired by:


License: CC0-1.0

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