[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


  2. Offline


    Nice, can it be adjusted for other blocks, ie, stone?
  3. Offline


    Wonderful Idea
    Ill test it out
  4. Not sure if you realise that this mod - alone - could replace the cuboid protection that pretty much all servers rely on. It's super-brilliant! Hope it works, and thanks for adding a config file - any chance of the source code?
  5. Offline


    Will add to todo list
  6. Offline


    Sounds sexy ;) ty
  7. Offline


    It's included in the jar file. :D Extract with with Winrar or somethign similar.
  8. Offline


    This is truly a good ideal. You can have all blocks placed by a player protected just as the diamond is. Allow players to add friends to a list for them to be able to co-op and such.
    It has flaws but with the right limitations could be really useful.
  9. Offline


    I love this idea, but would love to see a few things

    1. The ability to activate this per user.
    2. The ability to configure it for any given type of block, per user.
    3. Source released so people can study it and learn about the API.
  10. Offline


    Unfortunately, this can be used as a griefer's tool, placing blocks that can't be desroyed can prevent people from building onto their own buildings, or even keeping them from changing it.

    Edit: Please do not quote OP (silentspy), there is reply to a thread for a reason.
  11. Offline


    Very true. But I think in a moderated server with rules in place this doesnt become a problem at all. Moderators can /tp to the block in question and view the owners name and he can be warned and the offending block removed. It might even help catch troublemakes in your comminity but I doubt theres any motivation out there for griefing with gold and diamond that always carries your signature.

    I could see how there could be a poblem in completely unmoderatted servers as there wont be anyone to respond to the community.

    Planning on all three. As for the per user activation I will add it after bukkit gets its groups functionality.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 6, 2016
  12. Hey, tested this now and it works great!!! I don't know why people would want to add Stone (?) but it would be awesome if you added a few other blocks that are currently Admin only, such as Sponge, which could then be used to protect Cities and suchlike. Maybe add a line UseSponge=true above its radius? or check and if Radius=-1 then its not treated as a special block at all. Anyway literally adding Sponge would be awesome - hey, since you log the special placed blocks, please add Bedrock too, since normal bedrock would be unaffected but that would give me an easy way to stop people messing near Admin structures I make eg/spawn welcome house.
    Hope you have time to add those! Thanks!

    Next idea, one config line like Warn=true - if "true" then the code you already have that blocks protected blocks also says "Owned by corumanime".. would help prevent confusion.

    Again, thanks for this awesome mod! And the source! Now, if I can find someone to help me set up the dependencies in Netbeans.. :b
    --- merged: Jan 19, 2011 6:00 PM ---
    p.s. can anyone tell me where to get the dependencies to be able to re-compile this plugin's source using NetBeans? Bukkit.org seems to keep telling me its not released. Thanks! extra credit for telling me how to link them to NetBeans because I'm a nub, sorry but I'm being honest!

    p.p.s. Could really use a list of blocks to allow clicking on, eg/buttons, like:
    have it intecept when a block is actually broken, not just clicked, so doors, levers, etc still work unless they actually try to break it.

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


    Oh I see. ok ill add that next.
  14. Offline


    Does this prevent nearby block placement as well?
  15. Offline


    Yes it prevents block placement in protected areas.
  16. Offline


    is this working for bukkit v66 ? and can you make it so it only protects braking the block's but not placing around the blocks ?
  17. Offline


    Fucking genious. But doesn't seem to work (do not load) on #92.

    GRAVE: Could not load plugins\PreciousStones.jar in plugins: null
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:43)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
            ... 8 more
    Caused by: while scanning a simple key
     in "<reader>", line 7, column 1:
    could not found expected ':'
     in "<reader>", line 7, column 33:
            at org.yaml.snakeyaml.scanner.ScannerImpl.removePossibleSimpleKey(Scanne
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchStreamEnd(ScannerImpl.jav
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:62)
            at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:46)
            at com.bukkit.Phaed.PreciousStones.PreciousStones.<init>(PreciousStones.
            ... 13 more
  18. Offline


    Love this. really.. can't get enough of this plug-in. just one thing
    PLEASE: make a command so players can add people to there areas
    so others can build there too.
    /pstone add <name>
    /pstone remove <name>

    and would be viewed like:

  19. Offline


    Shouldnt that be Moe? :)
  20. Offline


    One more thing:
    Since most of these blocks will be underground it would be nice to check the ownership of the area
    from the protected blocks. Right click with tool on protected blocks displays info to.

    and yeah.. maybe that should have been Moe. [​IMG]

    Another Idea:
    the ability for OP's (atm) and in the future certain groups to add/remove ownership to blocks.
    so if i want to give plots in the main town i can easily do so.
    After right clicking on block or the protected blocks it creates with tool (or certain block/item/tool set in config)
    i could use the command
    /pstone owner <username>
    and it changes the ownership of the selected stone
    /pstone remove
    and it would delete the stone protecting the selected area
    just in case a griefer hides one really deep and height is set high

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


    Any way we could get the ability to add owners to blocks? I'd like to share my blocks with my gf so we can renovate with ease.
  22. Offline


    Ok, I made it works. The issue was with the by-pass config : if I don't put a space between the ":" and my pseudo, plugin do not load. But even loaded, I can't bypass by natural means. I need WorldEdit. No big deal, but wanted to tell you :)

    Thanks again !

    Build #92
  23. btw,when someone places a diamond block it needs to check if another diamond block is near but not just within its radius but DOUBLE that to ensure no overlap - but allow blocks with the SAME owner so ppl can expand their own houses just not impinge on others' areas.
  24. Offline


    loved 1.1 were reluctant to go to 1.2 for a couple of reasons
    1: we spent hours deploying protective diamonds and gold
    2: we hate yml files, the 1.1 yml file was ok the 1.2 seems a bit complicated

    thank you though for the plugin (as i say 1.1 is awsome)
  25. Offline


    Thanks for the add-ons. everything is looking great.
    i support this plug-in 100%
    its the Best protection systems for SMP ever.
  26. Offline


    1) No need to worry about those, they are read in seamlessly, just run 1.2 and you will have everything as it was on 1.1, the stones that were placed will be there on 1.2 with their proper owner. (had to do an extra bit of coding to add this conversion functionality just for this reason, I also have a large server with several hundred stones placed and didn't want to have to replace them :))

    2) Yea they are weird, but this is bukkit and everything is gonna be using yml so better start getting used to it. Though if you look at the default config.yml file which comes inside the PreciousStones1.2 zip file, you can see that it emulates the default configuration of 1.1, with diamond as the only protection stone and gold as the only unbreakable stone, so no need to worry on that front either, default gameplay won't change with the update.
  27. Offline


    thanks for the reply, we will update it on next server update (we were doing 2 daily lol) we extended diamond to 5 blocks in every direction and made gold do 3 blocks in every direction, as we felt diamond and gold blocks are hard to comeby

    we did find a bug with 1.1 (may be fixed on 1.2) we have two admins on our server moleking82uk and mrgreaper (the wonderful and almost perfect ME! (*almost perfect, i need to be far less modest to be perfect)) both added to the ignore list but stuff moleking82uk has protected refuses to allow me to smash (i was helping him with his house or trying to)
  28. Offline


    Yes this has been fixed :)
  29. Offline


    ah cool, thank you
  30. Offline


    let me get this straight

    i am able to go to my already created map and choose which blocks should be unbreakable?
    i dont have to do a completely new building or something?
Thread Status:
Not open for further replies.

Share This Page