####Oglofus Protection allows a player to place a special block, and this protects their area from griefing, like PreciousStones!
When the player places the block it creates a region that gives the player ownership of that area and in turn grief protection. If the player breaks the ProtectionBlock then they get the block back and the region is removed from region list.
####Development can be tracked at https://github.com/nikosgram13/OglofusProtection
###Currently Implemented:
- Tab completion for commands
- Complete integration with Sponge API.
- Simple API.
###Currently planned features:
- Explotion protection.
- Block the fire spread.
- Region’s FLAG.
- Nice effect around the region.
- RegionManager per World.
###Logic
Every region has a staff and a vector.
The staff is divided into owner, officers and members.
- The owner has any access to region and can delete the region.
- The officers can kick a member and invite a player to be member in the region.
- The players can build in the region.
###API Example
Get region:
ProtectionRegion region = OglofusProtection.getRegionManager().getRegion(name/uuid/location).get();
Change region’s name:
region.changeName("Newname");
Broadcast a message to region’s staff:
region.getProtectionStaff().broadcastRaw(Texts.of("Hello Staff :D"));
Get entities inside to region:
region.getProtectionVector().getEntities(Entity.class);