← Plugins · HyPrison Core

Protection

ProtectionEnabled, ProtectionLogBlocked, ProtectionDebug, and ProtectionRestoreHarvestBlocks are in config.json. ProtectionLogBlocked and ProtectionDebug default to false (enable only when you need to see blocked attempts or world names in logs). protection.json holds ProtectedWorlds, BypassPermission (default hyprisoncore.admin), BlockMessage, AllowedInteractions, HarvestItemToBlock, etc.

Unprotected worlds

UnprotectedWorlds in protection.json is a list of world names where protection is completely disabled (no block break, harvest, or pickup restrictions). Add your plot world so players can build and use everything there. Edit via /protection editor or the file.

Block break protection

In ProtectedWorlds, players cannot break blocks unless they have BypassPermission. BlockMessage is shown when blocked. ProtectionEnabled, ProtectionLogBlocked (default false), and ProtectionDebug (default false) are in config.json.

Protection Editor

Admins with hyprisoncore.admin can use /protection editor to open a full-screen editor. Edit Bypass Permission, Block Message, Unprotected Worlds, Protected Worlds, Spawn Protected Worlds, Allowed Interactions (block/entity IDs), and Harvest Item-To-Block. List fields use comma-separated values. Save writes to protection.json. The UI refreshes in place after adding or removing entries.

Block interaction protection

Prevents use of blocks (e.g. chests, doors) outside allowed areas (e.g. mine regions). Same bypass permission.

Allowed interactions

In protection.json, AllowedInteractions is a list of block type IDs or entity Use interaction IDs that are always allowed in protected worlds. Add Hytale block IDs (e.g. workbench blocks) or interaction IDs so players can use those in protected areas. Matching is case-insensitive. Example: add Block_Crafting_Workbench to allow workbenches; add HyPrisonCore_NPC or HyPrisonCore_Crate if you want NPC/crate entities to remain usable in protected zones.

Item pickup protection

Prevents picking up items outside allowed areas. Same bypass permission. ProtectionRestoreHarvestBlocks (in config.json) controls whether harvest blocks are restored near the player when protected harvest is blocked.

Gather, harvest, place fluid, cycle block group

Per-world flags in protection.json (Gather, Harvest, PlaceFluid, RefillContainer, CycleBlockGroup) are enforced by the plugin’s own interaction intercepts and events. No external mod is required.

Mine regions

Mining and (where applicable) interactions/pickups are allowed inside mine regions; outside is protected unless bypass.