Java 21 bytecode (JDK 25 toolchain), Paper 1.21.7 through 26.3, Folia support, Native Paper Dialogs, Bedrock Forms, Admin Tiers, MySQL index, Access Audit, Entity Protection, Villager Workstation Protection, Auto-Backup, Ownership Transfer, Item Frame and Vehicle Protection.
Looking for another Minecraft version? See the version guide.
Updating from 1.4.1-hotfix.2 or older? Those older builds still check the previous repository URL and will not notify you automatically due to the GitHub redirect. Download 1.4.5 manually from GitHub Releases, Modrinth, CurseForge, or Hangar to restore automatic update alerts, startup backups, and the latest fixes. Updating is always recommended, even when only 1 build behind.
Maintenance notice: the maintainer is taking a break to focus on other projects. Issues and pull requests are welcome for any change and are reviewed as time allows. Read CONTRIBUTING.md first, and see the starting points for open issues anyone can take.
Block protection plugin for Paper, Purpur, and Folia servers. Players protect chests, furnaces, barrels, doors, trapdoors, item frames, vehicles, and workstations through chest menus or native Paper Dialogs, without typing commands. This fork keeps the original NBT storage and adds the features described below.
BlockProt Reloaded exists because the best ideas come from the community that uses the plugin. If you have a feature request, a bug report, or want to discuss improvements, open an issue on GitHub or join the Discord. If you are planning to contribute code or documentation, read CONTRIBUTING.md, SCOPE.md, and AGENTS.md before submitting an issue or pull request. Fragmentation into multiple forks helps nobody; every improvement belongs in one place, shared with everyone.
Translations are managed through GitLocalize.
The English file translations_en.yml is the primary reference. Missing keys fall back to English automatically without server errors.
Translations use MiniMessage formatting (<gold>, <bold>, <#a3c6eb>, <gradient:red:blue>). Legacy & and § color codes are still accepted, so older translation files keep working. Write \<player> when a literal < must be shown.
These 25 languages are bundled in lang/ and actively accepting contributions:
ar, cs, de, en, es, fi, fr, he, hu, id, it, ja, ko, nl, pl, pt-br, ro, ru, sk, sv, th, tr, uk, zh-CN, zh-TW.
Both legacy color codes (&a, &6) and Adventure MiniMessage format (<gold>, <gradient:...>) are fully supported.
The main interface for locking blocks. Sneak and right-click any lockable block to open it. The two-row inventory displays functional controls on the top row and utility options on the bottom row.
Add or remove friends from your protected blocks. Built-in levels (Basic, Operator, Full Manager) grant preset roles, while the Custom level exposes 10 granular flags to selectively allow or revoke container opening, deposit, withdraw, and redstone access.
Configure personal preferences such as lock-on-place behavior, notification sounds, and action bar hint toggles.
Control redstone, piston, and hopper interaction for each of your protected blocks independently.
View the owner, friend list, protection status, and metadata for any protected block.
Summary of all access attempts to your protected blocks. The audit log records when friends opened or interacted with your blocks.
Each access record shows a timestamp, player name, and action type: opened, item taken, item placed, or access denied.
Admin inspection tool to view all blocks owned by any player, including offline players. Click any entry to teleport. Shows real block icons and lock timestamps.
Download the latest JAR from Releases or Modrinth and place it in your plugins/ directory. Requires Java 21+ (Java 25 for Minecraft 26.x) and Paper, Purpur, or Folia 1.21.7 - 26.3.
git clone https://github.com/Zaynr-Ecosystem/BlockProt-Reloaded.git
cd BlockProt-Reloaded
./gradlew :blockprot-spigot:shadowJar# Windows
.\gradlew.bat :blockprot-spigot:shadowJarOutput is placed at spigot/build/libs/BlockProtReloaded-VERSION.jar.
The version suffix is controlled by versionSuffix in gradle.properties:
| Value | Output |
|---|---|
| (blank) | BlockProtReloaded-1.4.5.jar - stable release |
BEDev |
BlockProtReloaded-1.4.5-BEDev.jar - experimental pre-release |
hotfix.N |
BlockProtReloaded-1.4.5-hotfix.2.jar - targeted bugfix release, numbered when a version has several |
plugins/BlockProtReloaded/
├── config.yml Main configuration
├── blocks.yml Lockable block definitions and family expressions
├── worlds.yml Per-world overrides (optional, enabled by per_worlds_config)
├── admins.yml Admin tiers hierarchy and staff permissions (optional)
├── integrations.yml Centralized third-party plugin integration settings
├── blockprot_usercache.sqlite Player UUID and name resolution cache
├── mysql/
│ ├── mysql.yml MySQL / MariaDB storage index configuration
│ └── blockprot_audit.sqlite SQLite access audit log
├── lang/
│ └── translations_*.yml 25 bundled language files
├── logs/
│ ├── blockprot-current.log Active session log
│ └── blockprot-YYYY-MM-DD--YYYY-MM-DD.log Rotated archives
└── backups/
└── YYYY-MM-DD_HH-MM_vVERSION.zip Created on version upgrade
blocks.yml is generated automatically on first start. If an existing config.yml contains legacy block lists, those values are automatically migrated to blocks.yml. The player UUID cache is stored safely inside the plugin folder.
BlockProt Reloaded provides complete interface parity across three display engines:
- Chest Inventory GUIs: Classic inventory screens with click protection and pagination.
- Native Paper Dialogs: Seamless modal dialogs on modern Paper servers (enable with
use_dialogs: true; defaults tofalse), featuring an established pastel palette (PASTEL_MINT,PASTEL_CORAL,PASTEL_GOLD,SOFT_BLUE,PASTEL_PURPLE) without occupying the inventory. - Bedrock Forms (Cumulus API): Native touch-friendly modal forms for players connecting via Geyser and Floodgate.
Opened by sneaking and right-clicking any lockable block.
Top row - functional buttons:
| Slot | Item | Function |
|---|---|---|
| 0 | Block icon | Lock or unlock toggle |
| 1 | Redstone | Redstone, piston, and hopper settings (storage and traversal blocks) |
| 2 | Player Head | Manage friends and permissions |
| 3 | Name Tag | Set a custom block display name |
| 4 | Ender Pearl | Transfer block ownership |
| 5 | Emerald | Locate linked villager (workstation blocks only) |
The redstone button is automatically hidden for display-only blocks such as signs, lecterns, and workstations. Button positions remain fixed so muscle memory is preserved across block types.
Bottom row - utility buttons:
| Slot | Item | Condition |
|---|---|---|
| 9 | Spyglass | Owner or staff, block has an inventory |
| 13 | Clock | Owner or staff, audit logger enabled |
| 14 | Knowledge Book | Manager role, clipboard contains copied settings |
| 15 | Paper | Manager role |
| 16 | Compass | Manager role or admin |
| 17 | Barrier | Always displayed (close menu) |
Copying settings sends an action bar confirmation. Pasting replaces the friend list rather than appending, preventing stale permission accumulation.
Command visibility is controlled by use_menus and active feature toggles in config.yml. When use_menus: false, all active subcommands are available via chat. When use_menus: true, players only see /bp user and /bp admin (administrators access update checks through /bp admin); commands for disabled subsystems (friends, tiers, logs) are hidden from tab completion and return a localized disabled message when run directly. The console retains access to every subcommand.
Menu Commands:
| Command | Permission | Description |
|---|---|---|
/bp user |
blockprot.user |
Open personal user menu or dialog |
/bp admin |
blockprot.user.admin |
Open administrative control menu or dialog |
Player Commands:
| Command | Permission | Description |
|---|---|---|
/bp help |
blockprot.user |
Display available player commands |
/bp about |
blockprot.user |
Display version and environment information |
/bp settings |
blockprot.user |
Open personal preferences interface |
/bp friends |
blockprot.user |
Manage global default friends list |
/bp friends addall <player> |
blockprot.user |
Add a friend to every block you currently own |
/bp stats |
blockprot.user |
Open block statistics and location list |
/bp transferall <player> |
blockprot.user |
Transfer all owned blocks to another player (a single block is transferred from its lock menu) |
/bp logs [here|<page>] |
blockprot.user |
View your own block access audit history or inspect the targeted block (here) |
/bp disablehints |
blockprot.user |
Toggle protection action bar hint messages |
Admin Commands:
With admin_tiers.enabled: false (the default) the Permission column applies, where "Admin" means op or blockprot.user.admin. With admin_tiers.enabled: true the Tier column applies instead: that tier or a higher one grants the command, ops count as Owner, and blockprot.user.admin alone reaches T2 commands only.
| Command | Permission | Tier | Description |
|---|---|---|---|
/bp info <player> |
Admin | T1 | Inspect all blocks owned by a player (online or offline); prints the list when run from the console |
/bp logs [here|player <name>|<page>] |
Admin or AdminAction.LOGS |
T1 | Inspect access audit history for targeted block or any specific player |
/bp unlock <player> |
Admin | T2 | Inspect or unlock protections owned by a player; lists their locked blocks when run from the console |
/bp lockables |
Admin | T2 | Interactive browser for all known materials with live left-click toggling and right-click material token copy |
/bp protdel |
Admin | T3 | Bulk delete protections in a world with undo support; from the console use /bp protdel <world> confirm and /bp protdel undo |
/bp debug <subcommand> |
Admin or blockprot.debug |
T3 | Run the full diagnostic suite and class coverage scans; also runs from the console at world spawn |
/bp reload |
Admin | Owner | Create safety backup and reload configs, blocks, and translations |
/bp update |
Admin | Owner | Check GitHub releases for updates with channel detection |
/bp integrations |
Admin | Owner | Inspect status of all third-party integrations |
/bp recommended <blocks|config|all> |
op or blockprot.user.admin.owner |
Owner | Apply recommended configuration profiles; undo reverts them |
/bp tiers [setrole] <player> <role> |
Admin or blockprot.user.admin.owner |
Owner | Manage staff admin tiers (t1, t2, t3, owner, custom, none) and admins.yml |
The console can run every command.
| Permission | Default | Description |
|---|---|---|
blockprot.* |
op | Wildcard granting full administrative and player access (admin.owner, admin, lockmax, blocks.tp, debug) |
blockprot.user |
true | Standard player features: lock, friends, settings, stats, transfer |
blockprot.user.admin |
op | Administrative privileges and GUI inspection |
blockprot.user.admin.t1 |
false | Staff Tier 1 (Moderator): player block lists, read-only block info and audit logs, teleport from admin lists |
blockprot.user.admin.t2 |
false | Staff Tier 2 (Helper): unlock, break protected blocks, container bypass, lockables GUI (includes blockprot.user.admin, capped at T2 actions when admin_tiers.enabled: true) |
blockprot.user.admin.t3 |
false | Staff Tier 3 (Admin): T2 plus world protection deletion, config editor, and debug |
blockprot.user.admin.owner |
op | Staff Tier 4 (Owner): full control, reload, update, staff role assignments |
blockprot.user.admin.custom |
false | Custom staff role evaluating granular action flags from admins.yml |
blockprot.lockmax |
false | Exemption from the player_max_locked_block_count limit |
blockprot.locklimit.<N> |
false | Assigns a custom maximum locked block limit to the player |
blockprot.blocks.tp |
op | Allows teleportation to blocks from statistics and admin block lists |
blockprot.debug |
op | Access to /bp debug system diagnostics |
The tier nodes only take effect with admin_tiers.enabled: true; explicit permission negations (e.g. from a permissions plugin) take precedence over OP fallback. Every button of the /bp admin hub checks the tier of its action, so a staff member only uses what their tier allows.
Runs on Java 21 and newer (Minecraft 26.x servers need Java 25). The declared range is 1.21.7 through 26.3, and every release is tested on it in real Paper, Folia, and Purpur servers. Versions and block materials are resolved defensively at runtime (unknown materials are skipped safely, new copper/shelf/grate families degrade cleanly on older servers, and handshake query strings are stripped during Bedrock prefix checks), so newer releases do not fail startup before a plugin update declares them.
Full support for modern Paper modal dialogs (use_dialogs: true). Dialog menus render directly on client viewports with styled pastel themes (PASTEL_MINT, PASTEL_CORAL, PASTEL_GOLD, SOFT_BLUE, PASTEL_PURPLE), eliminating inventory clicking glitches and container desynchronization.
Configurable four-tier staff management system (admin_tiers.enabled: true):
- Tier 1 (Moderator): Player block lists (
/bp info), a read-only lock menu on other players' blocks with block info and the audit log, and teleporting from admin block lists. - Tier 2 (Helper): Container unlock, container bypass, breaking protected blocks, and the lockables browser.
- Tier 3 (Admin): World-wide protection deletion, the configuration editor, world expiry, and diagnostics.
- Tier 4 (Owner): System reloads, updates, integrations, recommended profiles, and staff assignments.
- Custom roles can also be declared with granular action flags.
blocks.yml supports compact, expressive family expressions:
lockable_tile_entities:
- "[*]" # all tile entities
- "[*-CHEST]" # only chest variants
- "[* -*SIGN]" # all tile entities except signs
- "[*-FURNACE *-CHEST]" # furnaces and chests
lockable_shulker_boxes:
- "[*-SHULKERS -WHITE_SHULKER_BOX]" # all shulkers except white
lockable_entities:
- "[*-CHEST_BOATS]" # all chest boat variants
- "[*-CHEST_MINECARTS *-HOPPER_MINECARTS]"Full documentation: docs/MODERN SYNTAX AND LEGACY/BLOCK_FAMILY_SYNTAX.md.
Beyond standard chest and container locks, BlockProt Reloaded guards against griefing vectors across blocks and entities:
- Item frames and storage vehicles: Item frames, glowing item frames, chest boats, storage minecarts, and hopper minecarts support sneak-right-click protection. Frames mounted directly onto locked containers link to the container automatically (respecting
BlockAccessMenuEventand sharing owner, friends, and redstone rules). - Special containers: Decorated pots are protected from projectiles and item insertion/extraction; chiseled bookshelves enforce per-slot deposit (
WRITE) and withdrawal (READ) permissions. - Fire, fluids, pistons, and falling blocks: Locked blocks are shielded from fire ignition/spread, water/lava flow (
BlockFromToEvent), unauthorized bucket emptying/filling or waterlogging, piston crushing/movement, and gravity blocks landing on locked targets. - Entities and dispensers: Dispenser/dropper redstone checks verify the source block against container rules, and protected entities gain damage, projectile, and leash protection.
Villagers whose job-site points to a protected workstation inherit its protection. Non-owners cannot trade with or damage the linked villager, and cannot break blocks in the configured radius around the workstation. An Emerald button in the workstation menu initiates a Folia-safe particle indicator pointing to the linked villager.
Hoppers are evaluated through a bounded, thread-safe Caffeine cache (ProtectedBlockCache), preventing server tick lag without disabling hopper transfers. Protection is bidirectional (blocking unauthorized extraction and illegal insertion into locked containers and storage vehicles, as well as unauthorized InventoryPickupItemEvent siphoning), while simplified_hopper_logic provides an optimized source-extraction fast path that still enforces container siphon protection.
Stores block protections in PersistentDataContainer / NBT on the block itself. An optional MySQL / MariaDB index mirrors block locations and trust lists with bounded non-blocking cache lookups so large servers can query them without stalling server or Folia region threads; NBT remains the source of truth. A thread-safe SQLite audit log (blockprot_audit.sqlite, serialized WAL pooling) records open, item take, item place, and access denied events for /bp logs.
Enable per_worlds_config: true to configure independent block whitelists, protection rules, and feature toggles per world, alongside world_expiry and inactivity_cleanup_days background maintenance. All scheduled tasks (expiry scans, inactivity cleanup, villager particle indicators, and Towny unclaim cleanup) dispatch through FoliaLib region/entity schedulers cleanly.
| Plugin | Notes |
|---|---|
| Towny | Respects town, plot, and nation boundaries; cleans unclaims; ruined town bypass |
| WorldGuard | Evaluates region flags and respects the allow-blockprot custom region flag |
| Zelly's Guard | Honors claim boundaries via event synchronization; prevents locking or accessing containers inside unowned claims |
| Lands | Honors claim permissions; wilderness protection restrictions |
| ClaimChunk | Restricts locking and container access to chunk owners |
| GriefPrevention | Honors claim ownership; prevents locking outside or inside foreign claims |
| Residence | Restricts locking and container interaction to residence owners |
| PlaceholderAPI | Exposes global and per-player block counts and default friend placeholders |
| SkinsRestorer | Resolves authentic player head textures on offline-mode servers asynchronously |
| WorldEdit / FAWE | Optional paste auto-lock for newly pasted structures |
| Floodgate / Geyser | Resolves Bedrock names and skins; native Bedrock touch forms (Cumulus) |
| ViaVersion | Client protocol version detection in the /bp lockables interface |
| Folia | Asynchronous chunk handling and region scheduler compatibility |
Other plugins can query and react to BlockProt protections. The API is published through JitPack; use a release tag (for example 1.4.5) as the version.
Gradle (Kotlin DSL):
repositories {
maven("https://jitpack.io")
}
dependencies {
compileOnly("com.github.Zaynr-Ecosystem.BlockProt-Reloaded:blockprot-spigot:1.4.5") { isTransitive = false }
compileOnly("com.github.Zaynr-Ecosystem.BlockProt-Reloaded:common:1.4.5")
}Maven:
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.Zaynr-Ecosystem.BlockProt-Reloaded</groupId>
<artifactId>blockprot-spigot</artifactId>
<version>1.4.5</version>
<scope>provided</scope>
</dependency>Add softdepend: [BlockProtReloaded] (or depend) to your plugin.yml, then:
BlockProtAPI api = BlockProtAPI.getInstance();
if (api != null && api.isProtected(block)) {
UUID owner = api.getOwner(block);
boolean allowed = api.canAccess(block, player.getUniqueId());
List<UUID> friends = api.getFriends(block);
}| Method | Description |
|---|---|
isProtected(Block) / getOwner(Block) |
Whether a block is locked and who owns it |
canAccess(Block, UUID) |
Whether a player may use the block (owner, friend, public, or unprotected) |
getFriends(Block) / isPublic(Block) |
Players the block is shared with, and whether it is public |
isLockable(Block) |
Whether the block type can be locked in its world |
isEntityProtected(Entity) / getEntityOwner(Entity) |
Entity protection state and owner |
lockBlock(Block, Player) / unlockBlock(Block, Player) |
Lock or unlock through the regular events |
registerIntegration(PluginIntegration) |
Add your own protection rules (claims, regions) |
Events in de.sean.blockprot.bukkit.events: BlockProtLockEvent, BlockProtUnlockEvent, BlockAccessEvent, BlockAccessMenuEvent, and BlockLockOnPlaceEvent. All five events are cancellable.
Call block and entity methods on the thread that owns them: the main thread on Paper, or the owning region thread on Folia.
# [Language]
language_file: translations_en.yml
fallback_string: "Unknown translation"
replace_translations: true
# [Worlds]
excluded_worlds: []
per_worlds_config: false # enables per-world configuration via worlds.yml
# [Players and friends]
bedrock_username_prefixes:
- "."
- "*"
- "_"
lock_on_place_by_default: true
public_is_friend_by_default: false
player_max_locked_block_count: -1 # -1 = unlimited
lock_hint_cooldown_in_seconds: 10
friend_search_similarity: 0.5
disable_friend_functionality: false
# [Blocks and locking behavior]
modern_family_blocks: false # format saved blocks with family syntax (does not auto-convert on startup)
redstone_disallowed_by_default: false
simplified_hopper_logic: false
protect_locked_blocks_from_explosions: true
block_protected_block_piston_movement: true
clear_protection_on_shulker_break: false
allow_break_protected_blocks: false
respect_spawn_protection: true
block_lock_effects: true
block_lock_sounds: true
use_menus: false # route commands into /bp user and /bp admin
use_dialogs: false # native Paper Dialog modals (Paper 1.21.7+)
timed_access_max_duration_days: 90
action_bar:
duration_seconds: 6 # duration in seconds alerts persist
# [Entity protection]
entity_protection:
enabled: false
auto_protect_on_tame: true
menu_item: STICK
villager_locate_seconds: 6
villager_workstation_protection:
enabled: true
radius: 2
vertical_radius: 1
# [Expiry]
world_expiry:
enabled: false
check_interval_minutes: 10
worlds: {}
# [Raid detection]
raid_detection:
enabled: false
# [Notifications]
notify_op_of_updates: true
owner_notifications:
enabled: true
notify_on_open: true
notify_on_take: true
notify_on_place: true
# [Maintenance]
inactivity_cleanup_days: -1 # -1 = disabled
auto_reload_configs: true # automatic file watcher
auto_reload_delay_seconds: 2
enable_session_log: true
enable_backups: true
admin_tiers:
enabled: false # 4-tier admin hierarchy and admins.yml- Release Notes: Detailed version-by-version changelogs, migration guides, and upgrade notes are maintained in
docs/RELEASE_NOTES/. - Block Configuration Reference: Comprehensive guide on family expressions, sub-families, and material references is located in
docs/MODERN SYNTAX AND LEGACY/.
Maintained by Zar. Open an issue for bugs or feature suggestions.
If you would like to support the maintenance and development of BlockProt Reloaded, you can sponsor through GitHub Sponsors or via the Sponsor button above.
Licensed under the GNU General Public License v3. See LICENSE for details.
Based on BlockProt by spnda. Original copyright notices preserved as required by GPL v3.







