- Tested MC versions
- 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19, 1.20, 1.21, 26.1, 26.2, 26.3
ProtectorAPI
An API try to provide a standard protection API.
What can it do?
- Get the protection range that protected by protection plugin
- Check player can place/break/interact the block
- Register flags easily
- You don't need to worry about multiple protection plugins in the server, ProtectorAPI handles it perfectly.
Supported Plugins
- Residence
- Dominion
- HuskClaims (since v1.0.3)
- IridiumSkyblock (since v2.0.0)
- PlotSquared
- WorldGuard
- RedProtect
- BentoBox
- GriefDefender (since v2.2.1)
- BlockLocker
- Bolt
- ChestProtection
- ChestShop (since v1.0.2)
- ExcellentClaims (since v1.1.0)
- FactionsUUID (since v1.0.3)
- FunnyGuilds (since v1.0.3)
- GriefPrevention (since v1.0.6)
- HuskTowns (since v1.0.6)
- Lands
- LockettePro (since v1.0.1)
- LWC (LWCX)
- NoBuildPlus (since v1.0.7)
- QuickShop-Reremake
- QuickShop-Hikari
- ShopChest
- Towny
Usage
See https://lijinhong11.gitbook.io/protectorapi/start/readme
Develop
See https://lijinhong11.gitbook.io/protectorapi/develop/setup
Javadocs: https://javadoc.io/doc/io.github.lijinhong11/protectorapi-api/latest
Develop Examples
Check whether a player can place
Player player = ...;
boolean allow = ProtectorAPI.allowPlace(player);
If you need to check wehether a player can place a block at a location (safer than previous method):
Player player = ...;
Block block = ...;
boolean allow = ProtectorAPI.allowPlace(player, block);
Check whether a player can break
Player player = ...;
boolean allow = ProtectorAPI.allowBreak(player);
If you need to check whether a player can break a block at a location (safer than previous method):
Player player = ...;
Block block = ...;
boolean allow = ProtectorAPI.allowBreak(player, block);
Check whether a player can interact
NOTE: RedProtect didn't have a more general interaction flag, so we uses "redstone" flag to check instead.
Player player = ...;
boolean allow = ProtectorAPI.allowInteract(player);
If you need to whether a player can interact block at a location (safer than previous method):
Player player = ...;
Block block = ...;
boolean allow = ProtectorAPI.allowInteract(player, block);
Similar projects
Plugin →VeinMiner
Mine the whole vein on mining a single ore/block. Make the tedious mining experience to something satisfying and fun! FTB Ultimine alternative
99.3MSueta
Simple Voice Chat
A working voice chat in Minecraft!
76.8MSueta
Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
Chunky
Pre-generates chunks, quickly and efficiently
18.4MSueta
VeinMiner Enchantment
Veinminer Addon - Adds vineminer enchantment to enchanting tables. Only tools with the enchantment can veinmine
18MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta