ProtectionStones 1.4.1

A useful Grief prevention plugin that uses a certain block to protect regions.

  1. Vik1395
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.10
    Contributors:
    AxelDios, Dragoboss
    ProtectionStones is based off the original ProtectionStones plugin at Bukkit by AxelDios. It works very similar to the original plugin and most of the code has been derived from it. The main reason I have made this is because the plugin is dead and has been very glitchy in 1.8, especially with the release on WorldGuard and WorldEdit 6.1+.

    This plugin uses a specified type of minecraft block as a protection block. When a player placed a block of that type, they are able to protect a region around them. The size of the protected region is configurable in the plugins config file. You can also set which flags players can change and also the default flags to be set when a new region is created.

    The original ProtectionStones plugin: http://dev.bukkit.org/bukkit-plugins/protectionstones/

    Please report any issues with this plugin HERE

    If you like my work, please consider donating, I would greatly appreciate it. [​IMG]

    Dependencies
    WorldGuard 6.1+
    WorldEdit 6.1+

    Configuration
    Code (Text):
    ConfVer: 1
    #Protection Stones Configuration Page
    #Protection Stones for MC 1.10 is brought to you by Dragoboss
    #Please do not edit the ConfVer number unless told to do so in update message on spigotmc.org

    #Specify the block you want to use to protect regions. Use names from https://goo.gl/EBM8w5
    #You can specify multiple block types, divided by comma's (NO SPACES!)
    #If you wish to have sub-block-types as pstones, you can use -#. # is the number of
    #subtype similar to the number you'd use in a /give command. I.E. stone:2 --> STONE-2
    Blocks: ENDER_STONE
    #If you define multiple block types be sure to define their specs below

    #Specify the default flags to be set when a new protected region is created..
    Flags:
      - use deny
      - pvp deny
      - greeting Entering %player%'s protected area
      - farewell Leaving %player%'s protected area

    #List all the flags that can be set by region owners. Separate them with a comma, no space.
    Allowed Flags: use,pvp,greeting,farewell,mob-spawning

    #Toggle UUID support for protected regions.
    #NOTE: This does NOT convert existing PStones to UUID Format!!
    UUID: true

    #Disable the use of pStones in certain worlds.
    Worlds Denied:
        - exampleworld1
        - exampleworld2

    #Protected Region Configuration, defined per block type (refer to list defined above)
    Region:
      #Default block type
      ENDER_STONE:
        X Radius: 20
        #Set Y to 0 if you want it to protect from sky to bedrock.
        Y Radius: 0
        Z Radius: 20
        #Hide pstone right away when placed?
        Auto Hide: false
        #Disable returning the block when the pstone is removed/reclaimed?
        No Drop: false
        #Block Piston pushing of pstones by default; recommend to set to true if "No Drop" is false, as it can be abused to gain more pstones.
        Block Piston: true
        #Default priority type for this block type pstone
        Priority: 0
      #STONE-1:    # the "-1" part would mean 'Granite' to be used as pstone, but not regular stone
        #X Radius: 10
        #Y Radius: 10
        #Z Radius: 10
        #Auto Hide: false
        #No Drop: false
        #Block Piston: true
        #Priority: 1
    Commands
    Aliases in case of command conflicts: /ps, /protectionstone,
    Code (Text):
    /protectionstones, /pstone
    /ps info members|owners|flags - Use this command inside a ps region to see more information about it.
    /ps add|remove {playername} - Use this command to add or remove a member of your protected region.
    /ps addowner|removeowner {playername} - Use this command to add or remove an owner of your protected region.
    /ps flag {flagname} {setting|null} - Use this command to set a flag in your protected region.
    /ps hide|unhide - Use this command to hide or unhide your protectionstones block.
    /ps home {num} - Teleports you to one of your protected regions.
    /ps tp {player} {num} - Teleports you to one of a given player's regions.
    /ps toggle - Use this command to turn on or off ProtectionStones blocks.
    /ps view - Use this command to view the borders of your protected region.
    /ps priority {number|null} - Use this command to set your region's priority.
    /ps region count|list|remove|regen|disown {playername} - Use this command to find
    information or edit other players' (or your own) protected regions.
    /ps admin {version|settings|hide|unhide|cleanup|lastlogon|lastlogons|stats} - This is an
    admin command showing different stats and allowing to override other player's regions.
    Permissions
    The permissions are very similar to the old plugin.
    Code (Text):
    protectionstones.create - Protect a region by placing a ProtectionStones block.
    protectionstones.destroy - Allow players to remove their own protected regions.
    protectionstones.view - Allows players the use of /ps view command.
    protectionstones.info - Allows players use of /ps info command.
    protectionstones.hide - Allow players to hide their ProtectionStones block.
    protectionstones.unhide - Allow players to unhide their ProtectionStones block.
    protectionstones.home - Access to the /ps home command.
    protectionstones.tp - Access to /ps tp command.
    protectionstones.priority - Allows players to set their region's priority.
    protectionstones.owners - Allows players to add or remove region owners. Allows players to use /ps info owners command.
    protectionstones.members - Allows players to add or remove region members. Allows players to use /ps info members command.
    protectionstones.flags - Allows players to set their region flags.
    protectionstones.toggle - Allows players to toggle ProtectionStones placement.
    protectionstones.region - Allows players to use the /ps region commands.
    protectionstones.admin - This permission allows users to override all ProtectionStones regions.
    protectionstones.limit.x - Replace x with a limit for players' protected regions.
    If you don't want a limit, do not give this permission. x can only be replaced with an integer number.


    [​IMG]

    This plugin is licensed under CC Attribution-NonCommercial-ShareAlike 4.0 International. In very basic terms, Do whatever you want with the code of this plugin, as long as you give credits to the author and/or the plugin itself.

    Please leave a comment or rate the plugin, and tell me what you think of it. I would really appreciate it.

Recent Reviews

  1. mario13
    mario13
    4/5,
    Version: 1.4.1
    How do allow buttons/levers/anvils on protections ?
    People can't interact with buttons, levers and anvils, on THEIR protection
  2. SebasG_
    SebasG_
    5/5,
    Version: 1.4.1
    Update to 1.15.*
    Update to 1.15.*
    Update to 1.15.*
    Update to 1.15.*
    Update to 1.15.*
    Update to 1.15.*
  3. iTamago
    iTamago
    2/5,
    Version: 1.4.1
    The plugin doesn't remove banned player regions when you type /ps region disown <player>. Reloading the plugin doesn't fix it. This needs to be fixed, otherwise it's not worth installing.
  4. TamasVarga
    TamasVarga
    5/5,
    Version: 1.4.1
    WOW! Amazing and very easy to use this plugin. Can u add messages.yml to edit permission, and place block messages?
  5. KazMNF
    KazMNF
    5/5,
    Version: 1.4.1
    Good plugin for survival rpg servers.Can you pdate 1.14.x ??
    199999999999999999999999999 chars
  6. Nik1800
    Nik1800
    3/5,
    Version: 1.4.1
    Worlds-Denied option not workinf, fix please))))))))))))))))))))))))))))))))))))))))))))))))
  7. KotsosTrela
    KotsosTrela
    4/5,
    Version: 1.4.1
    Excellent plugin. The only thing is that when someone tries to set a flag i get this error
    [16:48:17 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'ps' in plugin ProtectionStones v1.4.1
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Spigot-7754231-9a1f5ee]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[craftbukkit.jar:git-Spigot-7754231-9a1f5ee]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:651) ~[craftbukkit.jar:git-Spigot-7754231-9a1f5ee]
    at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1392) [craftbukkit.jar:git-Spigot-7754231-9a1f5ee]
    at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1227) [craftbukkit.jar:git-Spigot-7754231-9a1f5ee]
    at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [craftbukkit.jar:git-Spigot-7754231-9a1f5ee]
    at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [craftbukkit.jar:git-Spigot-7754231-9a1f5ee]
    at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [craftbukkit.jar:git-Spigot-7754231-9a1f5ee]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_151]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_151]
    at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [craftbukkit.jar:git-Spigot-7754231-9a1f5ee]
    at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [craftbukkit.jar:git-Spigot-7754231-9a1f5ee]
    at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [craftbukkit.jar:git-Spigot-7754231-9a1f5ee]
    at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [craftbukkit.jar:git-Spigot-7754231-9a1f5ee]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [craftbukkit.jar:git-Spigot-7754231-9a1f5ee]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151]
    Caused by: java.lang.NoSuchMethodError: com.sk89q.worldguard.protection.flags.DefaultFlag.fuzzyMatchFlag(Ljava/lang/String;)Lcom/sk89q/worldguard/protection/flags/Flag;
    at me.vik1395.ProtectionStones.FlagHandler.setFlag(FlagHandler.java:16) ~[?:?]
    at me.vik1395.ProtectionStones.Main.onCommand(Main.java:492) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-7754231-9a1f5ee]
    ... 15 more
    and players are not able to change their flags to their likings ;/
  8. iamharak
    iamharak
    4/5,
    Version: 1.4.1
    please update 1.13
    worldguard version: the newest WorldGuard7.0.0


    16:10:28 [INFO] john issued server command: /ps
    16:10:29 [ERROR] null
    16:10:29 org.bukkit.command.CommandException: Unhandled exception executing command 'ps' in plugin ProtectionStones v1.4.4
    16:10:29 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.13-R0.1-SNAPSHOT-b1779.jar:git-Spigot-69774b3-8e87d03]
    16:10:29 at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.13-R0.1-SNAPSHOT-b1779.jar:git-Spigot-69774b3-8e87d03]
    16:10:29 at org.bukkit.craftbukkit.v1_13_R1.CraftServer.dispatchCommand(CraftServer.java:693) ~[spigot-1.13-R0.1-SNAPSHOT-b1779.jar:git-Spigot-69774b3-8e87d03]
    16:10:29 at net.minecraft.server.v1_13_R1.PlayerConnection.handleCommand(PlayerConnection.java:1634) ~[spigot-1.13-R0.1-SNAPSHOT-b1779.jar:git-Spigot-69774b3-8e87d03]
    16:10:29 at net.minecraft.server.v1_13_R1.PlayerConnection.a(PlayerConnection.java:1469) ~[spigot-1.13-R0.1-SNAPSHOT-b1779.jar:git-Spigot-69774b3-8e87d03]
    16:10:29 at net.minecraft.server.v1_13_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[spigot-1.13-R0.1-SNAPSHOT-b1779.jar:git-Spigot-69774b3-8e87d03]
    16:10:29 at net.minecraft.server.v1_13_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[spigot-1.13-R0.1-SNAPSHOT-b1779.jar:git-Spigot-69774b3-8e87d03]
    16:10:29 at net.minecraft.server.v1_13_R1.PlayerConnectionUtils.a(SourceFile:10) ~[spigot-1.13-R0.1-SNAPSHOT-b1779.jar:git-Spigot-69774b3-8e87d03]
    16:10:29 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_171]
    16:10:29 at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_171]
    16:10:29 at net.minecraft.server.v1_13_R1.SystemUtils.a(SourceFile:198) [spigot-1.13-R0.1-SNAPSHOT-b1779.jar:git-Spigot-69774b3-8e87d03]
    16:10:29 at net.minecraft.server.v1_13_R1.MinecraftServer.w(MinecraftServer.java:884) [spigot-1.13-R0.1-SNAPSHOT-b1779.jar:git-Spigot-69774b3-8e87d03]
    16:10:29 at net.minecraft.server.v1_13_R1.DedicatedServer.w(DedicatedServer.java:411) [spigot-1.13-R0.1-SNAPSHOT-b1779.jar:git-Spigot-69774b3-8e87d03]
    16:10:29 at net.minecraft.server.v1_13_R1.MinecraftServer.v(MinecraftServer.java:819) [spigot-1.13-R0.1-SNAPSHOT-b1779.jar:git-Spigot-69774b3-8e87d03]
    16:10:29 at net.minecraft.server.v1_13_R1.MinecraftServer.run(MinecraftServer.java:717) [spigot-1.13-R0.1-SNAPSHOT-b1779.jar:git-Spigot-69774b3-8e87d03]
    16:10:29 at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]
    16:10:29 Caused by: java.lang.NoSuchMethodError: com.sk89q.worldguard.bukkit.WorldGuardPlugin.getRegionManager(Lorg/bukkit/World;)Lcom/sk89q/worldguard/protection/managers/RegionManager;
    16:10:29 at me.vik1395.ProtectionStones.Main.onCommand(Main.java:146) ~[?:?]
    16:10:29 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.13-R0.1-SNAPSHOT-b1779.jar:git-Spigot-69774b3-8e87d03]
    16:10:29 ... 15 more
  9. Jony_Xaker
    Jony_Xaker
    4/5,
    Version: 1.4.1
    I want to use this plugin for Anarchy. For this, I include TNT explosions in the region. But this TNT destroys the private block. Privat remains, but you can not remove this private already! What to do?
  10. BrunoAvixdubSB
    BrunoAvixdubSB
    1/5,
    Version: 1.4.1
    Dont work World-Denied plugin or crash, no work or work in all world FIX PLEASE