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 Dec 26, 2013@winterbrine
On the ProtectionStones Configuration Page is a link to the Bukkit API Material Names.
Here are the three you are looking for: DIAMOND_BLOCK, GOLD_BLOCK, IRON_BLOCK .
-
View User Profile
-
Send Message
Posted Dec 26, 2013Have you tought about adding configurable messages? Because i would like to translate the plugin and i cant because the messages are hardcoded.
-
View User Profile
-
Send Message
Posted Dec 26, 2013Hello the plugin is working perfectly fine but I was wondering what block names in the config I would use for a block of diamond, block of gold and a block of iron. Thank you.
-
View User Profile
-
Send Message
Posted Dec 26, 2013@nunphix
Good chance it's spigot then, since there were no changes to the command function for a long time before my 1.9d release which isn't showing here yet (until the Bukkit team okays it).
-
View User Profile
-
Send Message
Posted Dec 26, 2013@AxelDios
using spigot now. does that make a different?
-
View User Profile
-
Send Message
Posted Dec 25, 2013@nunphix
I've seen lots of errors in the dev builds, with all kinds of plugins.
Don't forget you are using a dev build, and it's a dev build of Craft Bukkit for a reason, problems or not complete.
I would try a newer version of Craft Bukkit and hope for the best.
-
View User Profile
-
Send Message
Posted Dec 24, 2013I am using 1.7.2 with protection stones...
it was working fine but now I am seeeing interna server erros when trying to do commands like ps flag.
If I restart the server it works but then after a few timed it does it again
[12:55:08] [Server thread/ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'ps' in plugin ProtectionStones v1.9c at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:196) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:542) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:932) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:814) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:47) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to com.sk89q.worldedit.Location at com.sk89q.worldguard.protection.flags.LocationFlag.marshal(LocationFlag.java:40) [?:?] at com.sk89q.worldguard.protection.databases.YAMLDatabase.addMarshalledFlag(YAMLDatabase.java:280) [?:?] at com.sk89q.worldguard.protection.databases.YAMLDatabase.getFlagData(YAMLDatabase.java:268) [?:?] at com.sk89q.worldguard.protection.databases.YAMLDatabase.save(YAMLDatabase.java:240) [?:?] at com.sk89q.worldguard.protection.databases.AbstractProtectionDatabase.save(AbstractProtectionDatabase.java:43) [?:?] at com.sk89q.worldguard.protection.managers.RegionManager.save(RegionManager.java:69) [?:?] at com.axeldios.ProtectionStones.ProtectionStones.onCommand(ProtectionStones.java:977) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [craftbukkit-0.0.1-SNAPSHOT.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] ... 13 more
-
View User Profile
-
Send Message
Posted Dec 23, 2013Uploaded PS 1.9d, built on the newest dev build of Bukkit 1.7.
Change made to the /ps view command.
Now it renders Glowstone blocks directly on the client's screen.
The blocks are spaced at 7 block intervals.
A square area at the players foot level, and vertically at the 4 corners of your region, from the bottom of the region to the top.
The blocks will only go away if you log off, the chunk refreshes (i.e. you walk far enough away and come back), or you interact with the blocks (break them, build on them, etc.)
Player's cannot use the command more than once in a minute, to avoid server lag.
If a region is extremely large then a player may need to move to different sections of the region and reuse the view command to expose more of the boundary.
-
View User Profile
-
Send Message
Posted Dec 20, 2013@Puremin0rez
PS is not setting the "Invincible" flag by default, the PS defaults can be changed to whatever you like,
The defaults are:
Flag.chest-access: (ALLOW/DENY) CHEST-ACCESS Flag set to DENY by default, if set to DENY only the ProtectionStone Owner and Members can use chests in the region.
Flag.entry: (ALLOW/DENY) ENTRY Flag set to ALLOW by Default, if set to DENY only the ProtectionStone Owner and Members can enter the region.
Flag.mob-spawning: (ALLOW/DENY) MOB-SPAWNING Flag set to DENY by default, if set to DENY mobs won't spawn in the region.
Flag.pvp: (ALLOW/DENY) PVP Flag set to DENY by default, if set to DENY PVP is turned off in the region.
Flag.use: (ALLOW/DENY) USE Flag set to DENY by default, if set to DENY only the ProtectionStone Owner and Members can use items in the region.
Flag.greeting: Default GREETING Message Flag message for entering a region. This can use %player% and will replace this token with the player's name.
Flag.farewell: Default FAREWELL Message Flag message for leaving a region. This can use %player% and will replace this token with the player's name.
-
View User Profile
-
Send Message
Posted Dec 19, 2013@AxelDios
The "Invincible" flag is God Mode.
Since this flag is given default permission to everyone in PS, anyone can toggle god mode on there sponge region which most Survival servers probably wouldn't enjoy. (Reference: http://dev.bukkit.org/bukkit-plugins/protectionstones/pages/permissions/)
As for the Greeting and Farewell flag, I'll need to re investigate that at a later date. What happened was someone used characters such as : and '' and " in there welcome / farewell message which caused WorldGuard to misinterpret them from its file and basically cause a total region file catastrophe (since yml relies on those characters for functions). I'm not sure if WGs own command properly filters these characters, which is why I'd need to test.
Anyways love the plugin and will continue to use it (and have been for years), just a few little irks came up recently as more players arrived and people got clever.
-
View User Profile
-
Send Message
Posted Dec 19, 2013Oh dear i am using sky to bedrock.
Had to get one player to fly up above his area and view it just so he could see the ones at his feet level.
-
View User Profile
-
Send Message
Posted Dec 18, 2013@weston1993
If you are using the sky to bedrock setting then good luck seeing them :)
I'm experimenting with a drastic change to the view command, but that is all being pushed into PS 2.0, which currently has been delayed even further.
-
View User Profile
-
Send Message
Posted Dec 18, 2013Ahh hmm ok thanks only ever seen the four at foot level thought keep up the good work i like the plugin so much more easier to work with that precious stones. thought i do like the viewing of that plugin. Is protection stones open source or closed?
-
View User Profile
-
Send Message
Posted Dec 16, 2013@weston1993
That is PreciousStones which uses a glass cuboid with it's visualize command.
ProtectionStones view command generates the 4 at the corners at your foot level, and also 4 at the top of your region and 4 at the bottom of your region.
There is currently no other options for viewing the area.
-
View User Profile
-
Send Message
Posted Dec 16, 2013I remember using this plugin on a server i once played and loved the way the viewing of your area work a cuboid of glass. i recently installed this plugin on my server and now i'm only seeing 4 blocks of glass at each corner of the level you are stood at. is there anyway we can change the viewing of our areas?
-
View User Profile
-
Send Message
Posted Dec 15, 2013@AxelDios
Ok, thanks for the clarification!
-
View User Profile
-
Send Message
Posted Dec 15, 2013@BlueGriffon33
Couple of notes, blowing up the PS doesn't remove their region protection.
You can set WorldGuard flags either by the player as defaults that protect against creeper-explosions, tnt, enderman-grief, etc.
You can set the blocks to auto-hide, or the player can hide them, etc.
Read all the documentation, especially the Configuration Page.
-
View User Profile
-
Send Message
Posted Dec 15, 2013@BlueGriffon33
You really need to read the Configuration Page and all the documentation.
You can block silk touch of PS's,
You can set the region flag called creeper-explosion to deny, either the players can set it or you can make it a region default.
You can also allow players to hide their PS's, or set them auto-hide on placement, also block players from unhiding them, which blocks pretty much any greifing/exploit.
Read the documentation please.
-
View User Profile
-
Send Message
Posted Dec 15, 2013@Puremin0rez
What god mode flag are you talking about, PS doesn't set any flag called god mode, and I never heard of a god mode flag for WorldGuard unless they just added it.
Check your WG configuration.
Also PS just passes the greeting and farewell information to WG's API assuming , if there are any characters you want stripped in future versions PS, then simply PM which ones.
-
View User Profile
-
Send Message
Posted Dec 15, 2013Nice plugin to give players control of their build xD