TaleGuard - Protection Bridge

A Mixin/transformer protection bridge for Hytale.

TaleGuard

A Mixin/transformer protection bridge for Hytale.
Intercepts the low-level interaction surfaces the normal server event API can't reach, and routes them through one simple hook so protection plugins β€” regions, islands, minigames β€” can enforce their rules everywhere.

πŸ’¬ Join the community!
Have questions, ideas, or just want to chat? Join the Stoshe Labs Discord server:
discord.gg/rC9eSzH3tf

![Hytale early plugin](https://img.shields.io/badge/Hytale-early plugin-8A2BE2?style=for-the-badge) version 1.0.0 ![Mixin bridge](https://img.shields.io/badge/type-Mixin bridge-FF8C00?style=for-the-badge)


What it is

Hytale's high-level events cover block break / place, but a lot of gameplay interaction happens through paths a plugin can't cancel from an event: F-key / auto item pickup, item use, fluid placement and flow, seating, crop harvesting, hammer / builder tools, explosions, death-item drops, and commands.

TaleGuard installs Mixins into those code paths at class-load time and asks a single, shared question:

is this player allowed to do this here?

Any plugin can answer by registering a ProtectionHook. That means one guard layer, consistently applied, no matter which plugin owns the world.


Why it's an "early" plugin

Mixins rewrite game classes as they load, so TaleGuard must run before the server finishes booting.

Install TaleGuard-1.0.0.jar into your server's earlyplugins/ folder β€” not mods/.

Once loaded, it exposes its hook registry and its mixins are live for the rest of the session.


What it protects

TaleGuard funnels these interaction surfaces through the hook (InteractionType):

Surface Type
Block break / place / harvest BLOCK_HARVEST, BUILDER, HAMMER
Container open CONTAINER_OPEN
Crop harvest / growth stage CROP_HARVEST, CROP_STAGE_CHANGE
Entity damage / interact ENTITY_DAMAGE, ENTITY_INTERACT
Explosion block damage EXPLOSION_DAMAGE
Fluid place / flow FLUID_PLACE
Item pickup (F-key / auto) ITEM_PICKUP
Item use, seating, death-item drops, item durability, NPC spawn (routed through the hook)
Command filtering in guarded worlds (via checkCommand)

For developers

TaleGuard is a soft dependency: there is no compile-time coupling. Register a hook and TaleGuard calls it; if TaleGuard isn't installed, your registration is a harmless no-op.

The hook interface

public interface ProtectionHook {
    // return false to DENY the interaction
    boolean isAllowed(UUID playerUuid, String worldName, double x, double y, double z, String type);
    void    notifyDenied(UUID playerUuid, String worldName, double x, double y, double z, String type);
}

Registering β€” reflective (zero dependency, recommended for soft-depends)

@SuppressWarnings("unchecked")
Map<String, Object> registry =
    (Map<String, Object>) System.getProperties().get("taleguard.hook.registry");
if (registry != null) {
    registry.put("myplugin", myProtectionHook); // your object exposing isAllowed / notifyDenied
}

Registering β€” against the API

HookRegistry.registerHook("myplugin", myProtectionHook);

A hook may also expose int getPriority() β€” lower runs first. Fluid flow and command filtering have their own entry points (HookRegistry.checkFluidFlow(...), HookRegistry.checkCommand(...)).

Add TaleGuard as an optional dependency so it loads first when present:

"OptionalDependencies": { "Stoshe:stoshe.taleguard": "*" }

The TaleGuard - Protection Bridge Team

profile avatar
Owner
  • 3
    Projects
  • 432
    Downloads

More from stoshe

  • AeroWars - A SkyWars plugin project image

    AeroWars - A SkyWars plugin

    • 11
    • Mods

    A competitive SkyWars-style minigame for Hytale β€” Solo & Teams arenas with chest loot, kits, spectators, parties, and cosmetics.

    • 11
    • July 8, 2026
    • Mods
    • +1
  • Plots Plugin project image

    Plots Plugin

    • 413
    • Mods

    A dynamic prefab-based land management system. Define grids, load complex structures, and protect your world with intelligent masking

    • 413
    • January 21, 2026
    • Mods
    • +4
  • AeroWars - A SkyWars plugin project image

    AeroWars - A SkyWars plugin

    • 11
    • Mods

    A competitive SkyWars-style minigame for Hytale β€” Solo & Teams arenas with chest loot, kits, spectators, parties, and cosmetics.

    • 11
    • July 8, 2026
    • Mods
    • +1
  • Plots Plugin project image

    Plots Plugin

    • 413
    • Mods

    A dynamic prefab-based land management system. Define grids, load complex structures, and protect your world with intelligent masking

    • 413
    • January 21, 2026
    • Mods
    • +4