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 Jul 9, 2013@edan87
You're are not giving me enough information to know what's wrong.
First of all, did you change the Region.Limit to -2 to tell PS that you are using group limits?
And in your permissions plugin did you assign each player group to just one PS Group?
-
View User Profile
-
Send Message
Posted Jul 9, 2013I've changed the config file to use groups, but in the game the groups don't apply. Every rank has unlimited blocks allowed and of every type. What am I doing wrong?
-
View User Profile
-
Send Message
Posted Jul 8, 2013@user_716797
config.yml files use the yml encoding, which can easily be corrupted with a simple typo in the file.
As far as the equal sign goes, you are correct the word "set" and the "=" sign are not used. This is just the explanation of setting the config.yml.
If you look at the config.yml files, Bukkit doesn't use equal signs, and also the "region.limit" in the file would look like this:
With the "Limit" statement in with all the other "Region" Configurations.
-
View User Profile
-
Send Message
Posted Jul 7, 2013@AxelDios
ok, this is how im interpreting the instuctions. "protectionstones.group2" is the perm i would assign to the rank in my permissions ( lets call it guest rank). in the config i have "limit2: 1" and "blocks2: COAL_ORE". im assuming the "protectionstones.group2" is linked to look at limit2 and blocks2. i don't know how these things work, but it's my assumption, just like i would assume "protectionstones.group4" would look to limit4 and blocks4.
in the instuctions:
Group Limits:
To use Group Limits do the following:
1) Set Region.LIMIT = -2
i didn't use the = symbol in the config because the default setting didn't use it. i believe it was just "LIMIT: -1" and i changed it to "LIMIT: -2" should it instead be "LIMIT = -2"?? is there something else im missing?
EDIT: i reinstalled, reconfigured and it's all working now. to anyone else having the same problem, don't use the = sign, yes group# and blocks# points to the protectionstones.group#. i also did a /reload. not sure which one of these things i was messing up, but glad it's fixed!!
-
View User Profile
-
Send Message
Posted Jul 7, 2013@maddyn99
No sorry there isn't a way to do either, and I probably won't be the default flags feature for different stones.
But in the past I mentioned I might create a means for players to update their members and flags for all their PS's that are already placed with one command.
-
View User Profile
-
Send Message
Posted Jul 7, 2013@deforum
Some permissions plugins like PEX allow you to override all defaults. But overriding can create unforeseen problems. You would be better off to manually set the PS Defaults to whatever you need, like defaulting to false.
I've posted how to do this many times and I will be adding it to the Permissions Pages...
To do this to any permission in PS do the following:
Open the protectionstones.jar with an archive program like 7zip, then edit the plugin.yml file inside the jar.
Find the permission section you want to change like the one controlling all flags commands...
protectionstones.flags:
description: Allows Use of Flags Commands
default: true
And change the "default: true" to "default: false"
Don't forget to reload your plugins so it will take effect.
As an additional note, if you go this route you will need to do this each time you update PS to a new version.
-
View User Profile
-
Send Message
Posted Jul 7, 2013@user_716797
This has been answered and even has a section on the Configuration Page which walks you through the steps.
As far as making a video or explaining more, I would need to cover all the permissions plugins and all the ways you can misconfigure them.
The reason in the past I've asked people for their permissions file, what permission plugin they are using and for the PS config.yml is simple, it's easier for me to find the mistake and tell them what it is then to try to explain every possible scenario out there.
As a note there is no "region.limit" permission.
What results are you getting with group2, how many can they place if any, because it sounds like a permissions issue, like they are set to more than one group.
-
View User Profile
-
Send Message
Posted Jul 7, 2013I am using this on my server with no issues. Great Plugin. I do have a question/request. Is there a way to add people to all of your PS stones at once?
Its a pain to have to hunt them all down and manually add them one at a time.
Also, I wanted to add a block that would have different flag properties than the default but I couldn't seem to get it work. Is it possible?
-
View User Profile
-
Send Message
Posted Jul 6, 2013Hello thanks for a great plug-in one of my favorite, however recently started my own server, and I'm trying to set custom permissions per group for your plug-in. I'm using essentials group manager as my permission plug-in and even though code is correct it won't override the default rules/permissions. Any help would be appreciated.
-
View User Profile
-
Send Message
Posted Jul 6, 2013i've seen this asked a few times, but the response is always send me your config and nobody searching the thread history gets an answer so, pretty please with cherries on top, can you post a better explanation of how to set up the limits and groups. i've followed the instructions the best i could, but i still can't get limits to be correct. for my own needs, i want to set up 4 levels of options for my players. the first group i only want to be able to place 1 stone, and preferably a coal ore only. the next group, i would like to be able to place down 4 stones of any kind, the next group i would like 9 stones of any kind, and the last group can be unlimited. what i've done is changed the numbers in the config under the groups. this is my copy/paste of that section.
Region: SKYBEDROCK: false AUTOHIDE: false NODROP: false NOSILKTOUCH: false BLOCKPISTONS: false LIMIT: -2 Group: LIMIT1: 0 LIMIT2: 1 LIMIT3: 4 LIMIT4: 9 LIMIT5: -1 LIMIT6: 0 LIMIT7: 0 LIMIT8: 0 LIMIT9: 0 BLOCKS1: COAL_ORE LAPIS_ORE DIAMOND_ORE BLOCKS2: COAL_ORE BLOCKS3: COAL_ORE LAPIS_ORE DIAMOND_ORE BLOCKS4: COAL_ORE LAPIS_ORE DIAMOND_ORE BLOCKS5: COAL_ORE LAPIS_ORE DIAMOND_ORE BLOCKS6: COAL_ORE LAPIS_ORE DIAMOND_ORE BLOCKS7: COAL_ORE LAPIS_ORE DIAMOND_ORE BLOCKS8: COAL_ORE LAPIS_ORE DIAMOND_ORE BLOCKS9: COAL_ORE LAPIS_ORE DIAMOND_ORE
from there i save the config and add the permission protectionstones.group2 to theplayer group in my permissions file, which i had hoped would give them the protection of only coal ore and limit the blocks they can place to 1. i also added in the region.limit perm to the group, but still isn't right. can you either make a video or give better step by step instructions on how to get the limits working? thanks
-
View User Profile
-
Send Message
Posted Jul 4, 2013@zippenmarble2
Sounds like PS isn't running, first check your running plugins with the /pl command.
Also make sure you have WorldGuard installed (and WG needs WorldEdit).
-
View User Profile
-
Send Message
Posted Jul 4, 2013@QuantumReZz
Sorry I won't switch it to glowstone, because I'm rendering the blocks in game, so they can be exploited with a silk touch pickaxe, I already have people complaining about the use (which is a big waste of silk touch) of silk touch to mine the glass blocks.
-
View User Profile
-
Send Message
Posted Jul 3, 2013@zippenmarble2 What I would try to do is to restart your server first to load the plugin or if you have a plugin management system,then reload/load the plugin itself.Next try to place the block(coal,lapis,or the diamond ore) once more.If your OP you won't need to establish permissions for yourself.
-
View User Profile
-
Send Message
Posted Jul 3, 2013This is not working for me, I placed a diamond ore and it didn't work, then I tried a /ps command and it said unknown command
-
View User Profile
-
Send Message
Posted Jul 3, 2013Would it be possible if the glass shown when issuing the command /ps view be changed to glowstone or a block which which has a glow to it?The reason of asking is due to many of my players asking if it was possible, seeing that during the night many of the players cant see where there boundary would end.Many of our donators have the permission to fly thus switching the glass to a glowing block would help a lot when in the air.
Thanks!
-
View User Profile
-
Send Message
Posted Jul 2, 2013@zx636ninja
You can't, to make PS small and lite, it doesn't have it's own database, it uses WorldGuard's Region Database, so PS has no way to tell which direction you are placing the blocks in relation to the database coordinates, so it uses cube shapes only.
As a note you can use a cube that is sky to bedrock, see the Configuration Page for more information.
-
View User Profile
-
Send Message
Posted Jul 1, 2013How would i be able to make a protection region that is rectangular. All the default ones are square say, 41x41x41. But I want something thats say 12x23 from skylimit to bedrock. Is this at all possible?
-
View User Profile
-
Send Message
Posted Jun 30, 2013@excalios
You just have to copy the ProtectionStones.jar file to your plugins folder, start or restart your server.
As a note WorldGuard requires WorldEdit.
-
View User Profile
-
Send Message
Posted Jun 30, 2013how i install it i already put world guard on plugins but it's still not installing the protection stone plugins
-
View User Profile
-
Send Message
Posted Jun 27, 2013@ToxicAirEvent
Let me answer this in two parts, but first as a note If you look on the Permissions Page all the permission you need are there, like to stop all flag changes you can not give a player the "protectionstones.flags" which will block viewing and changing all flags. Also you can limit any individual flag.
Part One: Some permissions plugins allow for permission removal by using a minus sign or other options, or even to turn off all plugins default permissions. Use the latter with care, for it will often create more issues than you may expect.
Part Two:
PS was created with the most common permission defaults preset. To make PS easy to configure or to use it without a permissions plugin. All the PS Permissions are listed on the Permissions Page with their defaults of either, true (allowed), false (denied), or op (operator allowed).
To change these defaults you would either need to allow a false or op permission in your permissions plugin by adding that permission to the players group or the player directly for unique situations.
But for permissions that are set as true (allowed) many people may find it easier or the only way to deny a player would be to alter PS's defaults directly in the plugin.
To do this to any permission in PS do the following:
Open the protectionstones.jar with an archive program like 7zip, then edit the plugin.yml file inside the jar.
Find the permission section you want to change like the one controlling all flags commands...
protectionstones.flags:
description: Allows Use of Flags Commands
default: true
And change the "default: true" to "default: false"
Don't forget to reload your plugins so it will take effect.
As an additional note, if you go this route you will need to do this each time you update PS to a new version.