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).
@NolanSyKinsley
ProtectionStones already has the Use and the Entry Flags. I just added the two greeting flags to the next build. And I'm currently working on the other flags you are looking for...
PVP, Chest-Access, Mod-Spawning.
As far as sky to bed rock, that might not make it into the next build but I'll try.
ProtectionStones Listens for a Player BlockBreakEvent so if this event doesn't happen and the stone is broken the region will be orphaned as you guessed.
This plugin is quickly getting bloated, and I'll see how many more features I add, I want to keep it easy to use and as fast as possible.
I'm keeping everyone's requests in mind, so please bear with me during the updates I don't want to keep my other plugins on hold to much longer.
Thanks everyone for the feedback and use of the plugin!
@andrewzhang
WorldEdit works on it's own.
WorldGuard requires WorldEdit.
ProtectionStones requires WorldGuard.
This looks like a great plugin, I do believe there are a few features that should be included. I have wanted the ability to allow people to set certain flags on their regions, mainly pvp and mob-spawning, use, greeting/farewell and chest-access are in a close second.
Second, there needs to be a way of removing all protections a player has made, in case of protection abuse, or an economy hook, so past a certain number of regions they have to buy them.
If I use logblock to remove protection stones a player has placed, will that remove the protections too? or will it leave orphaned regions?
oh, and on our server we always make protections go from sky to bedrock, this is a feature we consider a must as well, and with that the name can be shortened to just x/z, although leaving it x/y/x will let us know the coord of the block.
another oh!!, priorities would be nice, so people can protect their homes inside cities from other city members.
Will worldedit work if there is no worldguard? This looks like a great plugin, but i dont have worldguard, only worldedit. THx
@selfservice0
As I mentioned below I would need a separate database to track things like expiration time.
I am working on other plugins and one of them is called RegionReset which will clear or delete a WorldGuard Region either by time or after a special admin placed sign tells the player to contact them, otherwise it's assumed abandoned and will automatically be cleared or deleted depending on your settings.
Another one I'm working on called RemoveThis will delete abandoned items even if they have protections on them like LWC, etc.
@jmbftw
1. I would need to keep a separate database to track user's block count, for speed and ease of use I currently only use WorldGuard's Region Database to keep track of the stones. You may want to think about giving the players one stone and not giving them the means to buy or get others in game (they would still be able to get some from other players).
2. You can currently change all three ore stones to other sized, but all are cube shaped..
@RustyDagger
Currently you would need to create two protected areas by spacing the stones out to cover the area and they would still be two physically independent areas, this would be a lot of work to add them together, so I'm sorry to say that feature wouldn't be added.
You can change the size of the three ore stones via the config.yml, and I am already considering adding the option to create rectangle sides instead of just square sides, but for now only cubes are made.
I'm considering adding lots of other flags and the Welcome and Leave Messages are at the top of my list.
how would I make the protect stone a diamond block?
You should add a purge time for it to remove stones/protections after a certain time a player has been gone.
!!PLEASE READ!! This plugin is Awesome! But there are a few things that could make it better.
1. add permission that allows a player to only place 1 block once. and never aloud to place another protection stone again.
2.also let us be able to configure the amount of space each block protects.
!!!PLEASE PLEASE REPLY!!! This would complete my server. you are on to something here. please reply!
will adding other flags work?
If this has a way to reshape the protected area and changeable ores i would use this. Im disliking preciousstones due to how rude and persistent is about having Vault installed it also caused me a lot of problems this is simple and straight to the point looks very nice. just missing some flexibility so suit my needs
the volume system in that other plugin is very nice as in 2 stones side by side adds the space together that is a very nice feature but no doubt very complex.
A config to set welcome and leave messages would be handy as well so the user can tell where is and where is not protected with out counting.
@clipout
I'll think about changing the dimensions in the next release, it's a little more overhead then simply adding a couple of variables, and would change the config entry for each of the Ore Types.
But it will be my first consideration for changes.
PreciousStones I was using before, This plugin is simple and good compatibility with worldguard and LWC. I love it. could the height of protection, such as not only a square but a rectangle, be changed?
@AxelDios
Awesome sauce, thanks so much!
@trollmonkey
I've finally been able to duplicate your problem with regions going away. The first time I got it was after I had some errors in my Nether Map's Regions that I created manually. Then when I rebooted WorldGuard with "/wg reload" I found my ProtectionStones Regions weren't saved.
I fixed this in version 1.2 and now force WorldGuard to save at that moment, if this becomes a problem on busy servers I will see about just saving it on ProtectionStones Shutdown, problem with doing it that way is unexpected server crashes or WorldGuard Shutting down before ProtectionStones can tell it to save the region file.
This is fixed in version 1.2 should be up on the server as soon as it's approved
@AxelDios
I've added support for adding, removing, and checking on members in version 1.2 which should be up on the server as soon as it's approved.
If you read below
@KylesCraft
If you read the past comments this has already been mentioned, the plugin was created for a single user to protect their area and to be as simple as possible.
I may create an add/remove member command, but this moves ProtectionStones towards being more complicated. I will look into adding this feature in the future after I get more done on my other projects.
@trollmonkey
I've confirmed the problem of the config.yml file getting the USE and the ENTRY Flags overwritten. This has been fixed and uploaded as ProtectionStones 1.1b it is now awaiting approval.
As far as your region problem, I can't duplicate that problem. I directly call WorldGuard to create the region and it should show using the region 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.
See if the region is still there when you reboot, maybe it's there but for some reason not protecting anymore.
Once the region is created ProtectionStones doesn't do anything to existing regions unless you break the ProtectionStone that protects a region, then it simply calls WorldGuard again but this time it tells it to remove the region.
is there a way to let others build within your protected area? maybe i'm just missing it, but i dont see one?
I've been trying to get this working for the last day or so on my server, but i'm having a couple issues: First off, when I try to change the config flag to use: ALLOW, it simply reverts to DENY when I start up the server. Second, after I stop the server and start it back up, none of the regions are protected anymore, and I cannot find anywhere that ProtectionStones is actually writing the regions to even though the protection works great until the server goes down. I DO have the latest worldguard & worldedit, and I have experience working with Worldguard (it was my protection "solution" for some time) but I just can't seem to get stuff going here.
Thanks!