AnimalGuard
PluginLicenseRef-AnimalGuard

AnimalGuard

๐Ÿพ Protect, Track, and Manage! The essential Mob Protection plugin featuring Nametag claiming, SQL support, and a Visual Admin GUI. [1.20+]

40
Downloads
1
Followers
4 months ago
Updated
๐Ÿ“ฆ
1
Versions

๐Ÿ“–About AnimalGuard

๐Ÿ“ข Overview

Keep your pets safe. Manage them with precision.

AnimalGuard is a robust, lightweight protection plugin designed for modern Minecraft servers (Paper 1.20+). It transforms the simple act of using a Name Tag into a secure ownership claim.

Unlike complex land-claiming plugins that happen to include animals, AnimalGuard focuses purely on Entity Protection with enterprise-grade performance (HikariCP) and a sophisticated Admin GUI.

Why use this?

  • "Players keep killing my horses!" ๐Ÿ‘‰ Simply name them with a Name Tag to lock ownership.
  • "I have too many protected mobs causing lag." ๐Ÿ‘‰ Use the Admin GUI to sort by "Distance" or "Date" and prune old entities.
  • "Where did that protected zombie go?" ๐Ÿ‘‰ Enable Markup Mode to make specific mobs glow through walls.

โœจ Key Features

  • ๐Ÿท๏ธ Nametag Protection: Players simply rename a Nametag and right-click a mob to claim it. The mob becomes invincible to other players.
  • ๐Ÿ–ฅ๏ธ Visual Admin GUI: A powerful inventory interface for OPs to browse all protected mobs.
    • Sortable: Sort by Name, Registration Date, or Distance from you.
    • Teleport/Track: Easily locate entities relative to your position.
  • ๐Ÿ”ฆ Markup Mode: A unique feature that applies the Glowing Effect to protected mobs via the GUI, making them instantly visible for management or debugging.
  • ๐Ÿ’พ Database Support: Built on HikariCP for high-performance connections.
    • SQLite: Zero-setup local file storage (Default).
    • MySQL: Full support for large networks and external databases.
  • โšก Performance First: Written in Kotlin with asynchronous database I/O to ensure your server TPS never drops.

๐ŸŽฎ How to Use

For Players

  1. Obtain a Name Tag.
  2. Rename it in an Anvil.
  3. Right-click any mob (Cow, Horse, Villager, etc.).
  4. ๐ŸŽ‰ Success! The mob is now yours. Only you can damage or interact with it.

For Admins

  1. Run /ag to open the Management GUI.
  2. Click the Compass to change sorting (e.g., find the nearest protected mobs).
  3. Right-Click a mob head to toggle Glowing (Markup) to find it in the world.
  4. Left-Click a mob head to Delete Protection (Permanently remove owner data).

๐Ÿ“œ Commands & Permissions

Command Description Permission
/ag Opens the Admin Management GUI. animalguard.admin
/ag reload Reloads config.yml and messages.yml. animalguard.admin

(By default, animalguard.admin is granted to OPs)

โš™๏ธ Configuration

You can customize the storage backend and every message displayed to players.

config.yml

# =============================================================================
#   AnimalGuard - Configuration
# =============================================================================

# [Storage] Database Settings
# Choose between SQLite (local file) or MySQL (external).
database:
  type: sqlite # Options: sqlite, mysql

  sqlite:
    file: "animalguard.db"

  mysql:
    host: "localhost"
    port: 3306
    database: "minecraft"
    username: "root"
    password: "password"
    ssl: false

  # Connection Pool Settings (HikariCP)
  pool-size: 10
  connection-timeout: 30000

๐Ÿ“ธ Gallery

Admin GUI
Manage all protected entities in a centralized interface. Sort by distance to clean up local areas.

gui

Markup Mode
Targeted mobs glow, allowing Admins to easily distinguish protected entities from wild ones.

mark up

๐Ÿ“ˆ bStats

bstats