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 Mar 26, 2012@wallofchaos
Thank you, page has been revised a lot so often typos come up.
Very little time to update.
Thanks.
-
View User Profile
-
Send Message
Posted Mar 26, 2012You have a typo in your description here.
"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 came using other plugins:"
give or sell in Game using other plugins:"
Sorry. Grammar Nazi sometimes :)
-
View User Profile
-
Send Message
Posted Mar 26, 2012@BSPiotr
Yes, more performance issue then work on my end.
As it is people would like the PS Regions to have different WorldGuard Region Names, but to keep the performance of the server I opted to use a set naming convention.
For now the only check is during block break events, then PS gets the block type by checking region size vs. your block list sizes.
Sorry I can't really make the block limiting down to a number of blocks via block types but it's now close with block groups able to limit both region counts and over all block types.
-
View User Profile
-
Send Message
Posted Mar 26, 2012@AxelDios
Second set was my notes, not the config, but right.
Thanks for the information on your third point.
As for the limits/block, you could add an identifier to the region name, then regex/if statement the making of the next region to see if it identifies with that block type.
Probably too much work though. Thanks for the info.
-
View User Profile
-
Send Message
Posted Mar 26, 2012@BSPiotr
First off the LIMIT# limits the total number of ProtectionStones/WorldGuard Regions for that group, there is no limiting for the number of allowed block types for that group, the way ProtectionStones is written there is no way to add separate block type limits per block type because PS uses WorldGuard's Database and there is no means to easily and efficiently keep track of that information.
As far as block names, the first set you show in the BLOCKS# are the correct names, not the second group you show.
The last note is that a player can only be assigned to one group as per the configuration notes on the configuration page. Assigning more than one group defaults to the first group found.
-
View User Profile
-
Send Message
Posted Mar 26, 2012ProtectionStones 1.7f - SNAPSHOT
Fixed:
There was a reported problem with the nosilktouch option on blocks in non-protected areas dropping multiple items and ore.
Fixed a someone related problem and recompiled under the newest 1.2.4 Dev Snapshot.
This problem is really related to the Bukkit breakNaturally(); function having problems with events being cancelled.
The fix will require you to update to the latest 1.2.4 Build.
This is unsupported, use at your own risk, always backup your servers!
-
View User Profile
-
Send Message
Posted Mar 26, 2012Is there a good way to limit the number of each block for a group?
Trying...
LIMIT1: 4
LIMIT2: 2
LIMIT3: 1
BLOCKS1: COAL_ORE
BLOCKS2: LAPIS_ORE
BLOCKS3: DIAMOND_ORE
and giving all 3 perms gives you only 1 max region.
Limit1: 1
Limit2: 2
Limit3: 4
Blocks1: Diamond
Blocks2: Lapis
Blocks3: Coal
With all 3 perms in a group, it gives you 2 lapis-sized regions. o_o;
-
View User Profile
-
Send Message
Posted Mar 23, 2012Tested with latest dev snapshot of 1.2.4 and all seems to be working correctly.
-
View User Profile
-
Send Message
Posted Mar 21, 2012@funk1983
I've never seen it have that problem, but between plugin interactions, lag, permissions, etc. anything is possible.
If you are able to catch this, please report, the player's permissions, like op, etc.
And what you are using for settings in PS, like blocking silk touch, types of stones, etc.
Don't forget to get info from the "/ps admin version" command.
Thanks
-
View User Profile
-
Send Message
Posted Mar 21, 2012@AxelDios
Sorry forgot to post this morning, the 1.7e update seems to have cleared it. And to be honest i couldn't answer that (not that technically minded lol). What i should have explained though is my public server is hosted by multiplay, my test servers are ran locally on my desktop that is what i meant.
On a seperate note
I'm getting reports that the ores are not allways being placed back into your inventory after being broken and breaking as the actual material (ie. diamond ore breaking as diamond). But everytime i've tested its been fine, do you know if its a little buggy or not?
-
View User Profile
-
Send Message
Posted Mar 21, 2012@funk1983
How are you running it (web front end to a remote server etc.)?, you say copy it over locally.
Please give me more information on where it works and where it doesn't work.
-
View User Profile
-
Send Message
Posted Mar 20, 2012Wondering if anyone can help me understand what is throwing this error, when using /ps flag command i get the "internal error" message and the attached console error. When i copy the files over locally and run it i don't get any errors.
-
View User Profile
-
Send Message
Posted Mar 20, 2012@AxelDios
Nice job and limit type of block by group it's exactly what i wand for my server :) :)
-
View User Profile
-
Send Message
Posted Mar 20, 2012@AxelDios
Thanks a lot dude, :)
-
View User Profile
-
Send Message
Posted Mar 20, 2012@zimko95
Okay, now there are 9 groups, and that's the limit unless Bukkit changes the permissions infrastructure.
-
View User Profile
-
Send Message
Posted Mar 20, 2012ProtectionStones 1.7e - SNAPSHOT
Fixed:
"/ps flag greeting" and "/ps flag farewell" not updating correctly
Changes:
"/ps info region" command permission changed from "protectionstones.admin" to "protectionstones.region"
ProtectionStones Groups (in permissions) changed from 1..5 to 1..9.
So now you have an additional four new groups, so the last group is now "protectionstones.group9".
Additions:
New block type limiting for groups, one for each of the groups.
For Example:
Blocks:
- COAL_ORE 5
- LAPIS_ORE 10
- DIAMOND_ORE 20
Groups:
LIMIT1: 1
LIMIT2: 3
BLOCKS1: COAL_ORE
BLOCKS2: COAL_ORE DIAMOND_ORE
The blocks listed in the blocks must have a space between them if there is more than one. They must also appear in the Blocks Section of the config.yml. The Limit Number is the total PS/World Guard Regions the player in this group can own, the blocks are the only blocks that the player in this group can place.
This is unsupported, use at your own risk, always backup your servers!
-
View User Profile
-
Send Message
Posted Mar 20, 2012@funk1983
The "/ps flag greeting" like all the flags was changed so if you put no information it would unset the flag. But as you pointed out a bug has slipped into the code making it unset even with a value. I'll fix it ASAP, and create an early release with some new group limiting additions and changes.
Thanks for the feedback.
-
View User Profile
-
Send Message
Posted Mar 20, 2012@zimko95
No it's actually not that simple, because you need to do a check vs. each permission to see which one is set, the more you check each time every user uses a block equals more delay.
If every plugin does this you would create major lag.
If PS was the only plugin running then it wouldn't matter as much.
-
View User Profile
-
Send Message
Posted Mar 19, 2012@AxelDios
The simple solution is make permission for more group :
Ex :
protectionstone.maxuse.X or X is the max number off région
Easy and if people want 50 group it's possible :)
-
View User Profile
-
Send Message
Posted Mar 19, 2012@AxelDios
greetings don't set anymore? Tried to change the message today and it just removed it all together :/