06-11-2013, 08:30 PM
(This post was last modified: 05-02-2016, 07:35 PM by LogicParrot.)
This plugin lets VIP users define areas of the world where only specified users are allowed to build and dig.
An area is defined by the VIP by using a Wand item (by default, a stick with a meta 1) by left-clicking and right-clicking in two opposite corners of the area, then issuing a /protection add command. Multiple users can be allowed in a single area. There is no hardcoded limit on the number of areas or the number of players allowed in a single area. Areas can overlap; in such a case, if a user is allowed in any one of the overlapping areas, they are allowed to build / dig.
The protected areas are stored in an SQLite database in a file "ProtectionAreas.sqlite" that is created next to the Cuberite executable. The plugin has its configuration options stored in a "ProtectionAreas.ini" file.
Configuration
The configuration is stored in the ProtectionAreas.ini file next to the Cuberite executable in a regular manner.
The wand item can be specified in the configuration. By default, a stick with meta 1 is used, but any valid item can be used. Stored in the [ProtectionAreas].WandItem value.
If there is no area, players can be either allowed to interact freely or not at all, based on the setting in the [ProtectionAreas].AllowInteractNoArea value. Accepted values are 0 and 1.
Commands
General
Download
The plugin is included in the base Cuberite installation. It can also be downloaded from the GitHub repository at https://github.com/mc-server/ProtectionAreas
An area is defined by the VIP by using a Wand item (by default, a stick with a meta 1) by left-clicking and right-clicking in two opposite corners of the area, then issuing a /protection add command. Multiple users can be allowed in a single area. There is no hardcoded limit on the number of areas or the number of players allowed in a single area. Areas can overlap; in such a case, if a user is allowed in any one of the overlapping areas, they are allowed to build / dig.
The protected areas are stored in an SQLite database in a file "ProtectionAreas.sqlite" that is created next to the Cuberite executable. The plugin has its configuration options stored in a "ProtectionAreas.ini" file.
Configuration
The configuration is stored in the ProtectionAreas.ini file next to the Cuberite executable in a regular manner.
The wand item can be specified in the configuration. By default, a stick with meta 1 is used, but any valid item can be used. Stored in the [ProtectionAreas].WandItem value.
If there is no area, players can be either allowed to interact freely or not at all, based on the setting in the [ProtectionAreas].AllowInteractNoArea value. Accepted values are 0 and 1.
Commands
General
- /protection add - adds a new protected area using wand
Permission required: protection.add
The following parameter combinations are recognized:
/protection add UserName1 [UserName2 ...]
/protection addc - adds a new protected area with explicitly specified coordinates
Permission required: protection.add
The following parameter combinations are recognized:
/protection addc x1 z1 x2 z2 UserName1 [UserName2 ...]
/protection del - deletes the specified area.
Permission required: protection.del
The following parameter combinations are recognized:
/protection del AreaID
/protection list - lists all areas in the specified place
Permission required: protection.list
The following parameter combinations are recognized:
/protection list - lists all areas that contain the block last clicked with a Wand
/protection list x z - lists all areas that contain the specified block coords
/protection user add - adds the specified users to the allowed users in the specified area
Permission required: protection.user.add
The following parameter combinations are recognized:
/protection user add AreaID UserName1 [UserName2 ...]
/protection user list - lists all the allowed users for the specified area
Permission required: protection.user.list
The following parameter combinations are recognized:
/protection user list AreaID
/protection user remove - removes the specified users from the allowed users in the specified area
Permission required: protection.user.remove
The following parameter combinations are recognized:
/protection user remove AreaID UserName1 [UserName2 ...]
/protection user strip - removes the user from all areas in this world
Permission required: protection.user.strip
The following parameter combinations are recognized:
/protection user strip UserName
/protection wand - gives the Wand item
Permission required: protection.wand
Download
The plugin is included in the base Cuberite installation. It can also be downloaded from the GitHub repository at https://github.com/mc-server/ProtectionAreas