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

Discussion in 'Inactive/Unsupported Plugins' started by phaed, Jan 18, 2011.

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

    phaed

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    This post has been edited 113 times. It was last edited by phaed Oct 26, 2011.
    weja93, Pim1234, Justink and 9 others like this.
  2.  
  3. Offline

    Sneaky420

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Greetings, so I am diving into the config, and I have relized that either I am missing the option or it is just not there...

    Is there a flag to make it so they have to place a block only in the protected areas they own, ex: no pvp stone can only be places inside of a city protection stone.

    Thought of how it could be done, add two flags, one to define the city zone as a "parent" and another flag to define the pvp as a "child", then make it so stones with a child flag can only be placed inside the owners parent zones, if they dont own any, then they can not place it.

    I am working on prices and limits for the players and I dont want to have to make a city block cost like 100, but then to prevent abuse of the pvp stone, i would have to make them like 500 each. Granted I can make it build into the city protection, but I wanted to make it so the anti pvp feature was an extra to earn later on as they make more money.

    Same thing for the creature repeller and such

    This post has been edited 1 time. It was last edited by Sneaky420 Oct 14, 2011.
  4. Offline

    Zeno

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm using PreciousStones with SimpleClans and it is a great combination.

    I do have one question:
    suppose you want every verified clan to be allowed exactly one City Protection stone and you did not want unverified clans or individuals to place such a stone, how would you go about it?

    Right now I'm using the limits:[] field in precious stone config. When the founder of a clan gets his clan verified, I manually change him to something like preciousstones.limit3 This is suboptimal to say the least. Is there a better more automatic way?

    This post has been edited 1 time. It was last edited by Zeno Oct 14, 2011.
  5. Offline

    Nathan C

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Am I missing something?

    Everytime I add ANYTHING to the config and then reload or restart the server, I lose all my changes in my config!

    Anyone know how to fix this? I am pulling my hair out.

    This post has been edited 1 time. It was last edited by Nathan C Oct 15, 2011.
  6. Offline

    Sneaky420

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Try to change the config, stop the server, put the config in, then start it
    EDIT: said that out of order, stop it first, then edit, and then start

    This post has been edited 1 time. It was last edited by Sneaky420 Oct 15, 2011.
  7. Offline

    Nathan C

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Nope, still doesen't work. Stupid thing overwrites the config file to default each dang time.

    I decided to chmod the config file, so that it cannot write to it, but then it complains with this error:
    Yes I am using SQlite too, because I don't think it is properly working with MySQL.

    Code:
    00:26:29 [INFO] properTime reading from config at /servers/server2/minecraft/plugins/properTime/properTime.conf
    00:26:29 [INFO] properTime 1.9.0 initialized
    00:26:29 [INFO] [PreciousStones] Version 6.4.2 loaded
    00:26:29 [SEVERE] java.io.FileNotFoundException: plugins/PreciousStones/config.yml (Permission denied)
    00:26:29 [SEVERE] at java.io.FileOutputStream.open(Native Method)
    00:26:29 [SEVERE] at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    00:26:29 [SEVERE] at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
    00:26:29 [SEVERE] at java.io.FileWriter.<init>(FileWriter.java:73)
    00:26:29 [SEVERE] at org.bukkit.configuration.file.FileConfiguration.save(FileConfiguration.java:56)
    00:26:29 [SEVERE] at net.sacredlabyrinth.Phaed.PreciousStones.managers.SettingsManager.save(SettingsManager.java:322)
    00:26:29 [SEVERE] at net.sacredlabyrinth.Phaed.PreciousStones.managers.SettingsManager.load(SettingsManager.java:232)
    00:26:29 [SEVERE] at net.sacredlabyrinth.Phaed.PreciousStones.managers.SettingsManager.<init>(SettingsManager.java:116)
    00:26:29 [SEVERE] at net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.onEnable(PreciousStones.java:101)
    00:26:29 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
    00:26:29 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
    00:26:29 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    00:26:29 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    00:26:29 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
    00:26:29 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    00:26:29 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    00:26:29 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    00:26:29 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    00:26:29 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    00:26:29 [INFO] [PreciousStones] SQLite Connection successful
    Funny thing is that I used to use this plugin all the time and it worked fine. These new builds seem to be broke or something.

    This post has been edited 1 time. It was last edited by Nathan C Oct 15, 2011.
  8. Offline

    Sneaky420

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    Yea i wasnt using the sql till it turned it on itself, so maybe delete the sql or back it up and let it recreate that as well, or confirm the settings in the config match your sql it was using before
  9. Offline

    Nathan C

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I actually just got it to work!

    I decided to try 6.3.1 instead and it's working great. I think 6.4.1 has some issues with the config file.
  10. Offline

    Sneaky420

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    So not to add my own problem... but I just updated my pailstone plugin, and well... he added in /ps cmds, so just wondering if you could add a option in the config for toggle between /ps and /pss seeing as you have a s at the end of the name and pailstone doesn't.

    Or if anyone knows of a plugin that i can alias all the cmds from a plugin to separate the /ps cmds
  11. Offline

    phaed

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Bukkit broke pretty much all plugins config system with 1317. Fixing PreciousStones on next version i upload.

    This post has been edited 2 times. It was last edited by phaed Oct 15, 2011.
  12. Offline

    Tanite

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I think you can use "/pailstone cmd" for all of those.
  13. Offline

    Fortune789

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I dont know what has happened but since the update to RB#1317 the plugin starts ok and is able to protect the areas however no one is able to use all the commands, for example people can use /ps on and off however they cannot use /ps visualize or /ps allow. Not even the ops and admins with the * node in PEX.
  14. Offline

    DeimosSobek

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I new to this so what is wrong here?

    Code:
    20:05:28 [SEVERE] Error occurred while enabling PreciousStones v6.4.2 (Is it up to date?): net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.getConfig()Lorg/bukkit/configuration/file/FileConfiguration;
    java.lang.NoSuchMethodError: net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.getConfig()Lorg/bukkit/configuration/file/FileConfiguration;
            at net.sacredlabyrinth.Phaed.PreciousStones.managers.SettingsManager.load(SettingsManager.java:130)
            at net.sacredlabyrinth.Phaed.PreciousStones.managers.SettingsManager.<init>(SettingsManager.java:116)
            at net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.onEnable(PreciousStones.java:101)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:941)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:174)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:157)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    - Deimos
  15. Offline

    Sneaky420

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  16. Offline

    Boos

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    When i place City Protection field and then use /ps off, I'am still not able to place Diamond or Gold Block (or any other block configured as precious Stone) to the field, because it tells me that I cannot place field here (again I HAVE /ps off). Can you tell me how to solve this issue? Players on my server are still complaining about it, because they are not able to build their Gold house.
  17. Offline

    Boos

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Use /ps on, then use that command.
  18. Offline

    zanetheinsane

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I reported a similar bug where blocks were being checked for conflicting fields even with '/ps off'. It has been reported as fixed in the next version to be released. This may be what you are experiencing.

    See here https://github.com/phaed420/PreciousStones/issues/84 to see if this is the problem you are experiencing.

    Edit: I can confirm with version 6.4.2 that I no longer encounter this bug. Check what version you are using.

    This post has been edited 2 times. It was last edited by zanetheinsane Oct 16, 2011.
  19. Offline

    Pim1234

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    is it possible to add a block that keeps chunks loaded? might be useful for redstone stuff. i have big halls that should be lighted using redstone but they're too big, the back never gets lighted :(
  20. Offline

    phaed

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    There's a lot of powerful new features hidden in this release. Read every item.

    Change log

    Version 7

    • Added per-player visualization density. It can be changed with /ps density. A value of 1 gives you only field outlines. A value of 2 divides each side by 2, 8 by 8, etc. Another thing to note is that the density value is also the size of field that will draw completely full. For example with a value of 8 will allow you to fully visualize fields up to 8x8x8, fields larger than this will start to have empty spaces.
    • Added visualization.default-density setting, will let you decide how many sections the visualized fields get split into
    • You can press shift to undo your latest selection, while in drawing mode
    • You can no longer place or break non-field-blocks while in drawing mode
    • Per-player state like /ps off, /ps density is now saved on the database and persist after server restarts
    • Fixed error when generating config
    • Fixed off by one errors that made fields be larger than normal
    • Fixed super long fields bug, for good
    • Allow players with preciousstones.bypass.cuboid permission to close cuboids with exceeded maximums
    • Users who have the preciousstones.bypass.purchase permission and are not charged for a block, now do not get refunded free money
    • Removed /ps setheight, complexity no longer relevant with cuboid system
    • Fixed sql insert not unique error by processing any pending field deletions in the queue before inserting the new one
    • Added custom-volume field flag. When a player opens up drawing mode, he will be given this volume to draw with, instead of one calculated from the radius and height. Use this if you want your players to be able to set down fields with a small radius, yet be able to resize them to much larger.
    • Fixed the default config (it had old pstone layout)
    • Fixed bug with field purging for inactive players where fields never actually got purged
    • Fixed bug where /ps allow and /ps remove were not triggering saves to db and were sometimes not saved
    • Fixed bug with /ps allow not working
    • /ps info listing now shows a more comapct view when listing multiple fields
    • Fixed bug where cuboid fields were allowed to overlap no-conflict:false fields
    • Fixed bug where pstone-type blocks with were mistaken by pstones with /ps off
    • Added the fields flags list on right-click info
    • Added /ps toggle [flag] - toggles on/off individual field flags from your fields. Field info on right-click now shows color coded enabled and disabled field flags. Use example: Want to turn off prevent-fire flag form one of your fields. Point at your field, type /ps toggle prevent-fire, right click on your field to verify its toggle off. Now your field does not prevent agianst fire.
    • Added keep-chunks-loaded field flag. The flag will keep the chunks the field covers loaded in memory. Good for redstone stuff, etc.
    • Added /ps insert [flag] - An admin command that allows you to insert field flags into any fields. i.e. /ps insert slow-heal
    • Added force field mixing! Now you can open drawing mode, then place down another type of pstone and poof! its flags get imported! For example you can put a City Proteciton field in drawing mode, and place down a Peace Keeper, now you have a field that is a mix of both fields! Note: only the field flags transfer over, no extra volume is added
    • Added mixing-group field flag. With this you will be able to choose which fields can mix with what other fields. I'm ure you dont want your users mixing a City Protect and a Jack-o-Death fields. You put them into their own groups. Fields without a mixing-group canno mix.

    This post has been edited 4 times. It was last edited by phaed Oct 16, 2011.
  21. Offline

    phaed

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  22. Offline

    RugRats

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  23. Offline

    phaed

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Very bottom of OP.
  24. Offline

    RugRats

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Wow, past right over it heh.
  25. Offline

    Monstertke

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Change log

    Version 7
    • Added visualization.subsection-count setting, will let you decide how many sections the visualized fields get split into
    • You can press shift to undo your latest selection, while in drawing mode
    • You can now just click shift to close and open cuboid, instead of going back to the original cube and clicking on it
    • You can no longer place or break blocks while in drawing mode (prevents source blocks from being covered)
    • Added per-player visualization density. It can be changed with /ps density. A value of 1 gives you only field outlines. A value of 2 divides each side by 2, 8 by 8, etc. Another thing to note is that the density value is also the size of field that will draw completely full. For example with a value of 8 will allow you to fully visualize fields up to 8x8x8, fields larger than this will start to have empty spaces.
    • Default visualization density can be changed in the config
    • Per-player state like /ps off, /ps density is now saved on the database and persist after server restarts
    • Fixed error when generating config
    • Fixed off by one errors that made fields be larger than normal
    • Fixed super long fields bug, for good
    • Allow players with preciousstones.bypass.cuboid permission to close cuboids with exceeded maximums
    • Users who have the preciousstones.bypass.purchase permission and are not charged for a block, now do not get refunded free money
    • Removed /ps setheight, complexity no longer relevant with cuboid system
    • Fixed sql insert not unique error by processing any pending field deletions in the queue before inserting the new one
    • Added custom-volume field flag. When a player opens up drawing mode, he will be given this volume to draw with, instead of one calculated from the radius and height. Use this if you want your players to be able to set down fields with a small radius, yet be able to resize them to much larger.
    • Fixed the default config (it had old pstone layout)
    • Fixed bug with field purging for inactive players where fields never actually got purged
    • Fixed bug where /ps allow and /ps remove were not triggering saves to db and were sometimes not saved
    • Fixed bug with /ps allow not working
    • /ps info listing now shows a more comapct view when listing multiple fields
    • Fixed bug where cuboid fields were allowed to overlap no-conflict:false fields
    • Fixed bug where pstone-type blocks with were mistaken by pstones with /ps off
    • Added the fields flags list on right-click info
    • Added /ps toggle [flag] - toggles on/off individual field flags from your fields. Field info on right-click now shows color coded enabled and disabled field flags. Use example: Want to turn off prevent-fire flag form one of your fields. Point at your field, type /ps toggle prevent-fire, right click on your field to verify its toggle off. Now your field does not prevent agianst fire.
    • Added keep-chunks-loaded field flag. The flag will keep the chunks the field covers loaded in memory. Good for redstone stuff, etc.
    • Added /ps insert [flag] - An admin command that allows you to insert field flags into any fields. i.e. /ps insert slow-heal
    • Added force field mixing! Now you can open drawing mode, then place down another type of pstone and poof! its flags get imported! For example you can put a City Proteciton field in drawing mode, and place down a Peace Keeper, now you have a field that is a mix of both fields! Note: only the field flags transfer over, no extra volume is added
    • Added mixing-group field flag. With this you will be able to choose which fields can mix with what other fields. I'm ure you dont want your users mixing a City Protect and a Jack-o-Death fields. You put them into their own groups. Fields without a mixing-group canno mix.

    [/quote]

    Phaed, you are a beast. You may be one of the most innovative, prolific devs around here.
  26. Offline

    sTiCkEd

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I installed your Precious Stones mod on my server, however I want to be the only player on the server who can make precious stones (for other ppl and for my self) meaning that if someone wants to make a precious stone, he has to ask me first. How might I do that?

    I've seen those Permission Nodes on the wiki page, but I have no idea where they go or how to use'em!

    Thanks in advance bud
    EWa
  27. Offline

    phaed

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Give yourself all the permissions, and no one else.
  28. Offline

    TobyZ28

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Just installed version 7 over the 6.3 version.
    Receiving a new warning console message that happens every 15 seconds exactly:
    15:02:05 [WARNING] a
    15:02:20 [WARNING] a
    15:02:35 [WARNING] a

    Any ideas?
  29. Offline

    sTiCkEd

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That's what I mean. How would one do that?
  30. Offline

    phaed

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This is no longer a PreciousStones problem, if you lack basic understanding of permissions I suggest you read your permissions plugin's thread.
  31. Offline

    alex3223223

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    phaed i had some problems in Precious Stones cant manage to make it work to connect with MySQL could u help me out? i'm running my server on a VPS and i dont know what i'm doing wrong!

    P.S. when i'm ingame and press /ps i get a Syntax error.

    This post has been edited 1 time. It was last edited by alex3223223 Oct 16, 2011.
  32. Offline

    phaed

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Re-download version 7. I removed the debug output.
Thread Status:
Not open for further replies.

Share This Page