CloudProtections
This Minecraft Paper plugin creates protected spherical and cubic zones where restrictions for players and mobs can be configured.
Managing Protection Zones
- To view all created zones, use the command
/cprots list - Creating a new protection zone is done with the command
/cprots create <type> <identifier> <position1> <position2|radius> [<dimension>], where type can be "box" for cubic zone or "sphere" for spherical zone - By default, each created zone is protected from all types of interactions
Configuring Zone Parameters
The following commands are available for modifying specific zones:
- Delete a specific zone:
/cprots modify <zone> delete - Rename a zone:
/cprots modify <zone> rename <new_identifier> - Add or remove rules (flags):
/cprots modify <zone> flags <add|remove> <flag1> [<flag2>] [<flag3>] ... - View current active flags for a zone:
/cprots modify <zone> flags list - Add or remove exceptions by UUID:
/cprots modify <zone> exclusions <add|remove> <UUID>— this allows specifying entities not affected by the zone's rules - View the list of exclusions:
/cprots modify <zone> exclusions list - Change zone priority:
/cprots modify <zone> priority <priority>— higher priority has greater influence when multiple zones overlap
API Integration
Adding Dependencies
Add to your build.gradle.kts file:
repositories {
maven("https://repo.cloudcraftmc.de/releases/")
}
dependencies {
compileOnly("dev.booky:cloudprotections:{VERSION}")
}
Usage
Get the ProtectionsManager instance via bukkit's ServicesManager. For updating zones, use ProtectionsManager#updateRegions — changes are saved to file instantly. New zones are created via new ProtectionRegion. Zone exclusions and flags can be modified, but the area, identifier, and priority cannot be changed.