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).

-
View User Profile
-
Send Message
Posted Feb 22, 2013I only use the Lapis Ore on my server, and Im not using Coal/Diamonds.
In the config file, I removed the references for Coal/dimaonds, so it only uses Lapis.
Players cant place down a Coal/Diamond Ore on the ground because it says they dont have permissions.
How can I get a player to place down a Coal/Diamond Ore without PS thinking its a stone that we arent defining.
-
View User Profile
-
Send Message
Posted Feb 22, 2013@XeonG8
Not for many reasons, it would require constant monitoring of regions, and a timed event running, etc.
You can already get rid of regions for a player who hasn't been on in "x" number of days.
But not regions themselves after "x" number of days.
This is from the Commands Page:
To remove all regions for players with a last logon equal or greater than "days": /ps admin cleanup remove [days]
To remove and regenerate all regions for players with a last logon equal or greater than "days": /ps admin cleanup regen [days]
-
View User Profile
-
Send Message
Posted Feb 22, 2013This looks perfect for my use. Thanks for making this simplified version! <3 Will test out later tonight.
-
View User Profile
-
Send Message
Posted Feb 22, 2013can this not have some log file, that keeps track of a region that was created.. adding a timestamp etc then some easier way of deleting protected areas that were created using a specific block after x amount of days?
or maybe in the config a %timestamp%.. that can be put in the greeting or farewell messages
-
View User Profile
-
Send Message
Posted Feb 22, 2013@simpsda
I was calling the regen via a console type user, but Bukkit has since closed that possible security hole, which in turn stopped he regen from running.
I changed the code to correct for this in the newest release PS 1.8k. Please read the release notes on the download page to see the information about permissions.
-
View User Profile
-
Send Message
Posted Feb 21, 2013@AxelDios
Uploaded PS 1.8k:
Fixed a bug that developed from a Bukkit change for the /ps region regen and /ps admin regen.
They both should work again as long as the player calling those commands has both the corresponding PS Permissions for each command, and has the permissions to use WorldEdit's Regen Command.
Also compiled for Bukkit 1.4.7-R1.0.
-
View User Profile
-
Send Message
Posted Feb 21, 2013@SuperStudMufin
There is already a way to toggle it on and off, this is from the Commands Page:
To toggle on and off ProtectionStone Placement: /ps toggle
And this is from the Permissions Page:
"protectionstones.toggle" for ProtectionStones Toggle Command (default set to op).
Toggle is a per player on and off switch. If it is in it's off state then the player can place the block but no region is created.
-
View User Profile
-
Send Message
Posted Feb 21, 2013Can you make it so you can enable/disable it for just one person, say they didn't want to use the plugin, but wanted to place certain blocks?
-
View User Profile
-
Send Message
Posted Feb 20, 2013@DarmaMoo
No, because the player requires build permission to place the PS in the first place.
-
View User Profile
-
Send Message
Posted Feb 20, 2013Can I make it where players can't build until they place a Protection Stone?
-
View User Profile
-
Send Message
Posted Feb 20, 2013@CactusCraftNet
Yes, you can exclude worlds, this is from the Configuration Page:
Exclusion.WORLDS: This is a list of worlds (seperated by spaces) to exclude from creating ProtectionStone Regions.
Exclusion.PLACEMENT This option set to "false" will block the placement of ProtectionStones in excluded worlds and give a message about ProtectionStones not being allowed. If you set it to "true" blocks in the ProtectionStones block list are allowed to be placed but don't create ProtectionStone Regions. Both settings only effect worlds that have been added to the Exclusion.WORLDS List.
-
View User Profile
-
Send Message
Posted Feb 19, 2013Hello, if I have like a creative world and a normal world, is there a way for me to block those in the creative worlds? If so, how?
-
View User Profile
-
Send Message
Posted Feb 18, 2013@simpsda
The errors could be coming from changes made to either WorldGuard or WorldEdit, which I'm calling to make the changes, I'll test it to see if any changes were made.
-
View User Profile
-
Send Message
Posted Feb 17, 2013http://pastie.org/6112189
HALP
C:
EDIT: It spits out those errors when it does find players fields to delete + regen.
@AxelDios
I tried with versions 1.8j, 1.8i and 1.8h with the respectable builds. The version I posted the pastie with is 1.8j on Craftbukkit 1.4.7-r1.0 (#2624). I am also using the latest recomended WorldGuard version in all the tests.
-
View User Profile
-
Send Message
Posted Feb 14, 2013@Randomizer27278
I'm not going to add an economies, since you can sell blocks other ways, as far as block since PS doesn't have it's own database I would have to do a lot of server intensive queries to the WorldGuard Region Database to figure out the type of PS's a player has and get counts of them.
There are two current methods to restrict player regions, but not the types of regions (PS Block Types you are looking for), there's a region limit for all players, and group limiting.
I do have another plugin called PropertyGuard, that links to several economies via Vault, that is also tied to WG, it works very differently, and is very early in it's development, it will be gaining many of the features of PS.
-
View User Profile
-
Send Message
Posted Feb 14, 2013@ViscousSummer88
Since PS doesn't have a database of it's own, it has no real strain on load up times for the server, that's a lot of WorldGuard Regions, but even that doesn't really cause to much during load up, what really causes strain on a server with WG Regions is during game play, with lots of players performing actions through lots of regions, and the types of flags that are set on regions, some cause bigger performance hits then others, so read about flags in WG's Pages.
Many servers I've been on already use WG, so that was one of the reasons I tie into it. This keeps PS small, fast, and lite on the server
-
View User Profile
-
Send Message
Posted Feb 14, 2013What I mean, is that when you place a protectionstone(my blocks of choice are ironblock, goldblock, diamondblock, and emeraldblock because they cost alot) and that It would take the money when you place it and if they did not have the amount required (more money for bigger areas) it would deny them the ability to place it. That way you don't have anybody going and getting 3 stacks of iron and making a place fit for a king. It would be also cool to implement in the config how many protected areas each person can have of each type of block. Say you could have 8 ironblock areas or one emeraldblock area and so on.
-
View User Profile
-
Send Message
Posted Feb 14, 2013@AxelDios
Ah okay, the copying of all ids would be nice, I actually moved here from PreciousStones as their system has become more and more of a strain on the server load times. Currently liking your system more due to the fact it links in with WorldGuard. I'm also just curious as to what you would say start-up/load time would be with 4693 regions being loaded?
-
View User Profile
-
Send Message
Posted Feb 13, 2013@ViscousSummer88
There is not means and there can't be to link the stones without adding at separate PS Database, which I won't add to keep the plugins lite and fast.
There is currently a plan to allow players to either clone their flags from one region to another or allow a player to create a default flags set to set them all at once.
Still working out the way I want it to work.
-
View User Profile
-
Send Message
Posted Feb 13, 2013@XvR3LAPS3vX
There are numerous ways to remove it or find where it is:
First off the name is the location of the PS. So if you have the permission to use WorldGuard's Region Command do: "/rg info" to see the name of the PS Region.
Or if you have the permission to use PS's Command do: "/ps region info"
If you are the owner of the PS or have the protectionstones.superowner permission you can use "/ps reclaim" command to remove the region.
Or with WG use the "/rg remove [psname]"