[SEC/MECH/FUN] PreciousStones - Block Area Proteciton System [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by phaed, Jan 18, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    phaed

  2. Offline

    phaed

    Nope. You have to configure them in the settings, and the place them. The blocks that are converted automatically are the gold and diamond blocks placed from the last version only.
     
  3. Offline

    maxsteele

    I'm trying to find a common CraftBukkit build to use with the plugins I'm going to install. Does anyone know if the latest version of this plugin works with Build #106? I see in the front page it says: "1.2 (build 66+ / 115+)", which I have no clue what that's supposed to mean. Do I have to have build 115? or does it mean it supports any build from 66 to 115?
     
  4. Offline

    Abecbu

    Best update ever! Thanks!
     
  5. Offline

    maxsteele

    I'm running version 1.2 on Build #106. When I start up the server, PreciousStones tells me:

    2011-01-21 14:27:10 [INFO] [PreciousStones] version [1.2] loaded
    2011-01-21 14:27:10 [INFO] [PreciousStones] unbreakable savefile not found.
    2011-01-21 14:27:10 [INFO] [PreciousStones] protection savefile not found.

    These files are not created.

    Am I out of luck unless I use Build 115? That would be really sad, because all of my other plugins are successfully running on Build #106.

    EDIT:

    I think I get it... I believe those files will be created when someone sets down a block that will protect an area... I'll try that out.

    EDIT EDIT:

    Yep, that is exactly how that works. I did a quick test with a gold and diamond block, and they are behaving as expected on build #106.
     
  6. Offline

    phaed

    It was built using bukkit #66 and works with craftbukkit #115 but im sure it works with older versions.
     
  7. Offline

    Brack

    I'm running bukkit #66 and craftbukkit #115 and version 1.2 of Precious Stones and I'm having some issues. It appears to not be reading the config file. Here is my config.yml:
    Code:
    unbreakable:
        blocks: []
    protection:
        blocks: [57,41]
        radius: [50,30]
        extra-height: [3]
        can-build: [false]
    log:
        placement: false
        removal: false
        bypass-removal: true
    notify:
        placement: true
        removal: true
        bypass-removal: true
    warn:
        place-on-protected-area: true
        break-on-protected-area: true
        on-break-anothers-stone: true
    bypass-list: []
    public-allowed-list: false
    unprotectable-blocks: [68,9,10,11,39,40,59]
    So, do I have it correct that 57 and 41 (diamond and gold) are my 2 protection stones, and their radii are 50 and 30 respectively? I'm basically just trying to set up some large, ungriefable zones.

    When I start my Server I see:
    Code:
    2011-01-21 18:03:52 [INFO] [PreciousStones] version [1.2] loaded
    2011-01-21 18:03:52 [INFO] [PreciousStones] unbreakable savefile not found.
    2011-01-21 18:03:52 [INFO] [PreciousStones] loaded 1 protection stones
    Also in game diamond works like the default config file, protecting the same as before I changed it. Gold remains unaffected. Am I just missing something in the config file? Any help is much appreciated. I really like this approach to anti-griefing.
     
  8. Offline

    phaed

    Yep, you are missing stuff, the protection lists should have the same number of items, the way you have it gold is missing a couple of config values:

    protection:
    blocks: [57,41]
    radius: [50,30]
    extra-height: [3,0]
    can-build: [false,false]
     
  9. Offline

    Brack

    Oh thanks. Didn't realize each block required all parameters to be set.
     
  10. Offline

    spoonikle

    can this prevent entry into an area the stone is in?
     
  11. Offline

    phaed

    Not yet
     
  12. Offline

    Tyler

    Very nice plugin! I look very forward to the possible part that was commented from spoonikle. The entry protection. Keep it up!
     
  13. Offline

    Brack

    I'm still not sure why I'm having issues but I still can't get it to load my config.yml. I've tried reinstalling the plugin and running with the default config, as well as using the example config on the first post. Every time I load my server I get this message:

    2011-01-21 21:03:45 [INFO] [PreciousStones] version [1.2] loaded
    2011-01-21 21:03:45 [INFO] [PreciousStones] unbreakable savefile not found.
    2011-01-21 21:03:45 [INFO] [PreciousStones] loaded 4 protection stones.

    The plugin generates the file protection.bin, and the number of protection stones updates accordingly to what I place, yet I can't seem to get my settings loaded. I assume the PreciousStones folder that contains config.yml and protection.bin should be in my plugins folder, along with PreciousStones.jar.
     
  14. Offline

    Abecbu

    I tried to place a gold block and got this error. I restarted the server and it happened again. Fresh install with Bukkit 123. It could very well be bukkit.

    Doesn't work on 124 also :p

    EDIT: It does work with the default config so I guess I did something wrong in there. Can anyone look through it and tell me what I'm missing? I want gold to have a radius of 1
     

    Attached Files:

  15. Offline

    phaed

    This message comes out when there are no unbreakable blocks found. Its not an error, once you place one block it will write the file and the message will dissapear.
     
  16. Offline

    talbot

    is there a way to get this to protect against creepers? i run a small server and really have no issues with greifing but creeper protection is a common request. bonus if you could make a toggle between creeper, fire, block-place, block-destroy.
     
  17. Offline

    Brack

    I understand now. I was misinterpreting the output. I've managed to get diamond working fine now. My only problem now is when I try to use another block I get an error. This was the result of me trying to place a Gold block, then placing a Diamond block successfully, then attempting to place a Lapizis block:

    Code:
    Jan 22, 2011 5:17:36 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event BLOCK_PLACED to PreciousStones
    java.lang.IndexOutOfBoundsException: Index: 2, Size: 1
            at java.util.ArrayList.RangeCheck(Unknown Source)
            at java.util.ArrayList.get(Unknown Source)
            at com.bukkit.Phaed.PreciousStones.ProtectionManager.isInConflict(Protec
    tionManager.java:262)
            at com.bukkit.Phaed.PreciousStones.PSBlockListener.onBlockPlace(PSBlockL
    istener.java:163)
            at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.ja
    va:173)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:201)
            at net.minecraft.server.ItemBlock.a(ItemBlock.java:80)
            at net.minecraft.server.ItemStack.a(ItemStack.java:56)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:124
    )
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:65)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-01-22 05:17:43 [INFO] PreciousStones: Protection stone [DIAMOND_BLOCK] bypa
    ss-removed by kenn213 [63 58 -126]
    Jan 22, 2011 5:17:48 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event BLOCK_PLACED to PreciousStones
    java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
            at java.util.ArrayList.RangeCheck(Unknown Source)
            at java.util.ArrayList.get(Unknown Source)
            at com.bukkit.Phaed.PreciousStones.ProtectionManager.isInConflict(Protec
    tionManager.java:262)
            at com.bukkit.Phaed.PreciousStones.PSBlockListener.onBlockPlace(PSBlockL
    istener.java:163)
            at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.ja
    va:173)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:201)
            at net.minecraft.server.ItemBlock.a(ItemBlock.java:80)
            at net.minecraft.server.ItemStack.a(ItemStack.java:56)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:124
    )
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:65)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    
    Using this as the top of my config:
    Code:
    unbreakable:
        blocks: []
    protection:
        blocks: [57,22,41]
        radius: [70,30,50]
        extra-height: [30,0,0]
        can-build: [false,true,false]
     
  18. Offline

    phaed

    Try the new version let me know if you experience the same thing
     
  19. Offline

    Gorfob

    Does this protect chests within the protection radius from being opened?
     
  20. Offline

    Brack

    Working much better now. Also the layout of the yml is much easier to understand as well. Having no issues with the old features. Still kinda buggy with prevent-entry set to true in a confined space, like a 2 block tall tunnel, but i'll take it. :)

    Thanks for the work you've done.
     
  21. Offline

    TSO

    Added dnthurtmeh to my allowed list. Later when placeing a block over diamond I saw the protection bypass and a hesperiax or something was added...
    removed them from the list when I re-entered protection area...
    Might wanna look into that.

    Guess gold doesn't get it's own exception list in general?
     
  22. Offline

    phaed

    Not sure I understand this.

    Done ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  23. Offline

    Nathan C

    Not sure if you realize this. WorldGuard has built in protection.
     
  24. Offline

    TSO

    A name I didn't add was on one of my diamonds.
    I've removed it from my allowed list but was curious how it got there?
     
  25. Offline

    phaed

    There was a bug on version 1.2 where the allow command allowed the name on other peopels blocks
     
  26. Offline

    Survivorman

    I've found some bugs with the latest version (1.3). When diamond blocks are broken their protection cube isn't removed. I only found this on diamond, but it could be the same for other blocks.

    Also I'm frequently getting this error in the console, only when a player is online.
    Code:
    Jan 23, 2011 6:23:00 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event BLOCK_IGNITE to PreciousStones
    java.lang.NullPointerException
            at com.bukkit.Phaed.PreciousStones.PSBlockListener.onBlockIgnite(PSBlockListener.java:34)
            at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.java:188)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:201)
            at net.minecraft.server.BlockStationary.a(BlockStationary.java:63)
            at net.minecraft.server.World.g(SourceFile:1556)
            at net.minecraft.server.World.f(SourceFile:1482)
            at net.minecraft.server.WorldServer.f(WorldServer.java:33)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:256)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    I'm on CraftBukkit build 129.
     
  27. Offline

    mrgreaper

    getting the same error
     
  28. Been trying WorldGuard thru many versions. All total fail. Your mod was the first thing to protect anything on my Bukkit server. Kudos.
    Gonna try latest WG now but still..
     
  29. Offline

    M1sT3rM4n

    Support!
    --- merged: Jan 23, 2011 6:08 PM ---
    /stone allow doesn't work for some reason
     
  30. Offline

    phaed

    sorry thats a typo. should be pstone
     
  31. Offline

    M1sT3rM4n

    Wonderful plugin by the way, this is much simpler and more intuitive than anything I've ever used, and I've been running servers since late August!
     
Thread Status:
Not open for further replies.

Share This Page