ProtectionStones
Anti-Griefing at it's Easiest!
Griefing Protection
ProtectionStones allows a player to place a special block, and this protects their area from griefing.
This small plugin was inspired by PreciousStones but only has the property protection blocks. This allows players to place one of three types of ore blocks to protect their property.
The player doesn't require any special permissions, they just need to get one of the three following ore blocks which you can give or sell in game using other plugins:
Coal Ore gives 11x11x11 protection area.
Lapis Ore gives 21x21x21 protection area.
Diamond Ore gives 41x41x41 protection area.
See the Configuration Page if you would like to change the block types, the dimensions or even set the Y-Axis to be from sky to bedrock, set group limiting, etc.
When the player places the block it creates a WorldGuard Region that gives the player ownership of that area and in turn grief protection. If the player breaks the ProtectionStone then they get the stone back and the region is removed from WorldGuard's Region List.
To install simply copy the ProtectionStones.jar file to your plugins folder, no configuration necessary. The following Ore Blocks are supported as the defaults: Coal Ore, Lapis Ore, Diamond Ore.
ProtectionStones Regions
ProtectionStones Creates WorldGuard Regions with the following naming convention:
ps{x-coordinate}x{y-coordinate}y{z-coordinate}z
i.e.
ps279x67y40z
The x, y, and z coordinates are the location of the placed ProtectionStone which is in the center of the WorldGuard Region it creates. If the Region.SKYBEDROCK Setting is set to "true" (see the Configuration Page) then Y-Axis of the ProtectionStone isn't necessarily the vertical center of the region.
Incompatible with PreciousStones
Both plugins act on the same kind of ore blocks and have the same command name of "/ps".
Requires WorldGuard
WorldGuard is used to create and remove regions when the blocks are placed, otherwise ProtectionStones won't do anything (set not to load if WorldGuard isn't found).
@re4397
I'm sorry to say that ProtectionStones only supports the player who creates the protection, and without changing the simple functionality of the plugin I would have no means to add other players. You can add other players to the region by having someone who has permission to use WorldGuard's Region Command add them for you.
i.e.
/region addmember {region_name} {player_name}
ProtectionStones creates WorldGuard Regions using the following naming convention:
ps{x-coordinate}x{y-coordinate}y{z-coordinate}z
i.e.
ps279x67y40z
The x, y, and z coordinates are the location of the placed ProtectionStone which is in the center of the WorldGuard Region it creates.
EDIT Fixed it, this plugin is awsome! :D
can add friends to place and break blocks of the protected area ?
@jisaacs1207
If I was writing this plugin just for me I wouldn't bother to put it out here to share with others.
I will add a config file that will do the following:
Allow USE and ENTRY flags to be turned on and off. And the three block sizes to be changed from their default sizes of 5, 10, 20 (which gives you the 11x11x11, 21x21x21, and 41x41x41).
If I add too many block types, create sky to bedrock regions sizes and use blocks that are normally unbreakable like bedrock, then I will be create a large and cumbersome plugin, not the small, easy to use, and straight forward small one that my aim was originally intended.
I'll get it out here ASAP in a day or two.
AxelDios :
Please allow us to choose which flags are set with a config file.
Also, is it possible to allow us to choose which block does what? It would be especially useful. I personally would like to set sponge to to do a 50x50x50 and perhaps a bedrock to do 50x50 sky to bedrock.
I know you are mainly doing this for yourself, but these two small improvements would be... AMAZING! :)
@bobbysmithyy
I don't need any help but I have four more planned plugins that I will welcome the help on, I'll update this page with their names ASAP.
As far as code, I'm running this plugin on several small servers (all less than 20 players) for testing purposes and the finished 1.0 version will be out next week, I'll release the code here when that version is released.
Beta 0.2 now creates the WorldGuard Regions with the USE Flag set to DENY, so only the player (and Ops) who creates the ProtectionStones Protected Region can open doors, chests, etc.
Version 1.0 the release version will probably be the last for this small plugin and it simply adds two permissions (by default both are set to allowed) "protectionstones.create" for placing ProtectionStones and "protecdtionstones.destory" for breaking ProtectionStones.
When that version is ready I would like some help with user feedback on the permissions working or not and the functionality of ProtectionStones on larger/busier servers.
AxelDios if you can give me the source code I would be happy to work on this plugin with you, if you need any help
Currently the only check that is made is if the player can place the stone or break it, by checking WorldGuard.
If I create permissions there would only be two, place or destroy a ProtectionStone. Which won't override WorldGuard, per design.
I'll look into adding permissions, I'm thinking about adding a config.yml file to support a single option, which would be to set the created region with the Use Flag set to deny, so that only the player who creates the ProtectionStone Region would be able to open doors, use chests, etc. This would make it so players wouldn't need other protection plugins like LWC, which I happen to like, but currently use more and more for Mods use only.
Can you please add permissions?
great plugins! keep it up! sorry I not speak English: '(