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).
Hmm.. when I try to place a stone, it always says "You can't protect that area, it overlaps another region."
Any ideas?
No problem anything i can do to assist just ask. and anything to use unobtainable blocks is preferred by me
I found a workaround to allow for "special" blocks players won't be able to get, even in creative mode, OPs will be able to give them to themselves though.
It would require using different blocks like slabs and setting their data values higher than the normal slab blocks. You could use from 7 to 15 for a total of nine different ProtectionStones Block Types.
The ores like coal and gold, won't retain the data values when I set them, even though it is unused, but the slab blocks rely on them to tell which kind of slab.
I'll look into this more, but it seams like the best option at this time.
Okay ProtectionStones Users, tell me what you think of this possible plan.
@gv1222
I'll see what I can do but it may need to wait until the Mojang Mod API.
And as a note you still can limit the number of protections, via groups or global settings.
@funk1983
Thanks for checking!
@AxelDios
It would be great to have a /ps enchant, players on my server are all trying to get silk touch picks so that they can get free protections.
@AxelDios
Quote from mcwiki: Items able to be obtained legitimately only through use of Silk Touch:
Grass Block Coal Ore Lapis Lazuli Ore Diamond Ore Redstone Ore All huge mushroom blocks Mycelium
@funk1983
Does the enchanted pick drop whole ores?
I checked out minecraftwiki.net and a few other places, all I found is that you can get multi-drops with it, but nothing about it dropping the unbroken ore block.
@AxelDios
DOH, i thought silk touch made it possible to get ore blocks, but it doesn't seem they can. palm and face are two words that come to mind
ProtectionStones 1.6c has been uploaded and awaiting approval
Fixes:
Fixed a problem with the View Command's internal database, the anti-spam feature was getting errors if the player hadn't created a view event
Fixed a problem with non-existent flags being reported as set even if they weren't set.
This can be duplicated by trying to set an invalid region flag (i.e. "/ps flag hello allow") nothing would be set, but you would get a prompt saying "hello" was set.
@AxelDios
With a enchanted pick they can get them can't they?
@funk1983
And you can't use the Ores?
Redstone, Iron, Coal, Gold, Diamond, Lapis
None of those are acquired in game unless you are in creative.
Also blocks like sponge, etc.
@funk1983
4 really, could drop it to 3 i suppose
@gv1222
Are you talking about permissions for the plugin, or the WorldGuard Region Flags?
Because the permissions for the plugin like all plugs are, true, false, op.
The Flags are numerous types of settings which I have no control over, those all come from the WorldGuard Plugin and how it handles regions.
As far as groups there are only five, to add more could possibly slow down a server.
@funk1983
How many blocks do you need?
@AxelDios I do, but there isn't enough blocks like that to cover what i need
@funk1983
Why not use sponge or any other block they can't get unless they are in creative mode?
@AxelDios
Ah ok, shame. At the minute i am using all nether stones and stopping access to the nether so they can't get free areas and would really like to open it up to them :/
@AxelDios
allright thanks, The permissions setup for weather or not to use permissions is a bit confusing, it seems it would be better to set it up so that it is "use permissions: true/false" instead of -1 -2 ect that would make it a bit easier for people to set it up. Also would it be possible to add more groups? Unless i am mistaken and i can add custom groups.
@gv1222
Read the other comment about enchantments, and as far as naming, ProtectionStones uses WorldGuard for all it's protection and pulls information from WorldGuard on the ProtectionStones Regions, so the naming must be fixed, or I would have problems telling information about the regions created. I will be adding a convert command, but that will remove the stone and create a regular WorldGuard Region, with whatever name you want, but then you will no longer be able to use ProtectionStones Commands on that region.