API
Javadoc
Getting the API instance
ChestProtectAPI api = ChestProtectAPI.getInstance();Checking and looking up protections
Is a block or entity protectable?
ProtectionManager manager = api.getProtectionManager();
boolean canProtectBlock = manager.isProtectableBlock(Material.CHEST);
boolean canProtectEntity = manager.isProtectableEntity(EntityType.ITEM_FRAME);Look up a block protection
Look up an entity protection
Working with protections
Creating protections
1. Implement ProtectionHook
2. Register the hook on enable
3. Create a protection
Player data
Online player
Offline player
Player flags
Events
Event
Fired when
Last updated