[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

    Donny

    2011-09-23 11:12:04 [SEVERE] Error at SQL INSERT Query: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '819-28--824-world' for key 'uq_pstone_fields_1'
     
  3. Offline

    phaed

    Those are fine, ignore them. That is just a duplicate record being bounced off the database. They are normal.
     
  4. Offline

    Tanite

    I'm still having issues with phantom fields that don't go away until a server restart after a block is removed. This is with 6.1 on cb1185. Was this problem found/fixed? I think I saw reference to it before.

    Thanks.
     
  5. Offline

    phaed

    Yes revert back to 5.9. Read the past 10 comments.

    Change log
    Version 6.2

    • Admins now have /ps visualize [radius], to visualize fields in a block radius, /ps visualize will have the same functionality as everyone else (only visualize the fields the player is standing in.
    • Added **visualize-on-rightclick** flag. Fields with this flag will be able to be visualized by right-clicking on the block with a tool while sneaking.
    • Added **visualize-on-place** flag. Players will be shown their field visualization when the field block is placed.
    • Added config: **visualization.spread-divisor** - used to define how much white space there is in the visualization, the lower the number the more space
    • All allowed players not just the owner are now able to see the full field details on right click
    • Added an index collection that holds the source fields for all chunks affected by pstones allowing for constant time pstone lookups, huge performance improvement.
    • A byproduct of this new index is that lookups for fields of any size are equivalent. A 500x128x500 field will have the same performance impact as a 20 radius field.
    • Added cuboids!!!!! Fields with the cuboid flag will start using the new cuboid selection method.
    • Added config: **cuboid.defining-blocktype* - the block type to use during the cuboid defining process
    • Added config: **cuboid.visualization-blocktype** - the block type that will show when you visualize a cuboid field
    • Added iConomy 6 support
    • Added slow-repair flag - slowly removes 25 damage from single item in the players inventory (starts with armor), but only if the item id is in a whitelist (coded by Freezy)
    • Added slow-feeding flag - slowly adds 1 food to the players belly (coded by Freezy)
    • Added remove-mob flag - removes a mob within a field if that mob targets a player. Allows for players to initiate attacks as well as be chased without safety (coded by Freezy)
    • Fixed prevent-mob-damage (coded by Freezy)
    • Added protection from endermen

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

    Mosh Mage

    Sir, i was trying
    Code:
    /ps delete 47
    when i was inside 2 city protections and with the snitch right infront of me, it said something like "it has no fields"

    also, i then proceeded to change the snitch block from 47 to 16; made a /ps reload
    and when i tried to place/remove this came about
    Code:
    17:08:13 [SEVERE] Error at SQL INSERT Query: java.sql.SQLException: not implemented by SQLite JDBC driver
    17:08:14 [SEVERE] Error at SQL INSERT Query: java.sql.SQLException: not implemented by SQLite JDBC driver
    17:08:22 [SEVERE] Error at SQL INSERT Query: java.sql.SQLException: not implemented by SQLite JDBC driver
    17:08:25 [SEVERE] Error at SQL INSERT Query: java.sql.SQLException: not implemented by SQLite JDBC driver
    17:08:27 [SEVERE] Error at SQL INSERT Query: java.sql.SQLException: not implemented by SQLite JDBC driver
    17:08:27 [SEVERE] Error at SQL INSERT Query: java.sql.SQLException: not implemented by SQLite JDBC driver
    17:08:29 [SEVERE] Error at SQL INSERT Query: java.sql.SQLException: not implemented by SQLite JDBC driver
    17:08:29 [SEVERE] Error at SQL INSERT Query: java.sql.SQLException: not implemented by SQLite JDBC driver
    17:08:35 [SEVERE] Error at SQL INSERT Query: java.sql.SQLException: not implemented by SQLite JDBC driver
    17:14:00 [INFO] [PreciousStones] Protective field removed from 1 field by R3DSMiLE near [-7 63 363 world] [R3DSMiLE]
    17:14:10 [SEVERE] Error at SQL INSERT Query: java.sql.SQLException: not implemented by SQLite JDBC driver
    17:17:11 [SEVERE] Error at SQL INSERT Query: java.sql.SQLException: not implemented by SQLite JDBC driver
    
    I hope i didn't divided by 0.

    Also, whenever i start the server i get this
    Code:
    17:22:14 [INFO] [PreciousStones] Version 6.2 loaded
    17:22:14 [INFO] [PreciousStones] SQLite Connection successful
    17:22:14 [INFO] ambiguous column: 'id'
    17:22:14 [INFO] ambiguous column: 'id'
     
  7. Offline

    phaed

    Checking this out now.

    re-download please.

    Yea there is no /delete [type].

    There is a /delete which deletes the field you are standing on and the overlapped fields it connects to and there is the /delete [player], to delete all fields belonging to a player.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 18, 2016
  8. Offline

    Mosh Mage

    my bad, maybe i read some misinformed website - or a fork of some kind - http://www.hakaslak.com/plugins/precious-stones/ like this one
     
  9. Offline

    phaed

    Whoa that's an old ass version, it still has the cloaking feature. They might want to upgrade, PStones now is so much lighter and faster than it was back then.

    P.S.
    Re-download 6.2, I just added the /ps delete [typeId] feature.
     
  10. Offline

    Mosh Mage

    You, Sir, are THE man :)
     
  11. Offline

    phaed

    The new cuboid field is the solution to your problem. You can stretch out the new cuboid fields all along the railway.

    Cuboid Fields
    http://wiki.sacredlabyrinth.net/index.php/PreciousStones#Cuboid_Fields
     
  12. Offline

    kahlilnc

    Only get this error on my test server???
    Code:
    00:08:48 [INFO] [PreciousStones] Version 6.2 loaded
    00:08:48 [SEVERE] Error occurred while enabling PreciousStones v6.2 (Is it up t
     date?): null
    java.lang.NullPointerException
            at net.sacredlabyrinth.Phaed.PreciousStones.managers.SettingsManager.lo
    d(SettingsManager.java:222)
            at net.sacredlabyrinth.Phaed.PreciousStones.managers.SettingsManager.<i
    it>(SettingsManager.java:115)
            at net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.onEnable(Pre
    iousStones.java:101)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoade
    .java:920)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManag
    r.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:15
    )
            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)
     
  13. Offline

    phaed



    That's failing when its reading the force-field-blocks from the config, check your config file.
     
  14. Offline

    Technotic

    I'm sorry, I can't seem to find my problem anywhere. I'm trying to use the command /ps snitch and it won't work. It doesn't give an error on my screen or in the console. It just doesn't accept the command. But I can use /ps snitch clear. Any ideas?
     
  15. Offline

    ButtChew

  16. Offline

    Donny

  17. Offline

    zanetheinsane

    Periodically get this error about twice a minute when a player without privs is standing inside a City Protection Field:

    [SEVERE] Error at SQL INSERT Query: java.sql.SQLException: near "UPDATE": syntax error

    Using the default settings with SQLlite, possibly a typo in the code?
     
  18. Offline

    kahlilnc

    I have no config on my test server.
     
  19. Offline

    phaed

    Oh that's the problem. PreciousStones requires you to add in filed definitions in the config. It is suggested you start out with the config packaged in the zip file.

    Fixed in 6.2.1

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 18, 2016
  20. Offline

    Sneaky420


    Thank you but yea... still a crap ton of running to place all the blocks, and such, so it may not work for a rail system that is already in place.

    Still using this for other things :)
     
  21. Offline

    ButtChew



    If you want to protect railways, get a block protector mod that protects specific blocks. LockBlock? Or something. I've seen a 1185 version for sure. Just set it to only protect railblocks.

    Found a couple glitches, made a video to explain it better:


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 18, 2016
  22. Offline

    fudgeballsnucks

    im new to this whole mod thing on a server i have recently made. i have downloaded this and put it in my plugins folder yet im not sure how to make it work. please help in detail.

    thanks
     
  23. Offline

    ButtChew

    Read the documentation:
    http://wiki.sacredlabyrinth.net/index.php/PreciousStones
     
  24. Offline

    fudgeballsnucks

    im doing everything it says and still nothing. ill explain what i did just incase i went wrong somewhere.

    put PreciousStones.jar in my plugins folder. (i then tested it by using diomand block and click both shift and left click at the same time, no luck)

    i then tried going into server.properties and typing plugins=PreciousStones (no luck)

    i copied and pasted the mysql thingy into config.yml file. (still nothing)

    what went wrong?

    im using 1.8 if that matters
     
  25. Offline

    Technotic

    Anyone?
     
  26. cuboid fields. sounds awesome! :)
     
  27. Offline

    nicholosophy

    Since upgrading, fields are not working properly.

    I have an 11x15x11 field. When the block is placed, it only protects some of the area. For example
    [​IMG]

    The yellow blocks show where the protection reaches related to the diamond block.

    They are a normal, not a cuboid field.

    Any suggestions?

    ETA: Downgrading to 6.1 fixed this issue.

    Different issue, different post.

    I'm a member of a clan. Whenever I place a pstone, it allows the clan automatically. is there a way to turn this off? I didn't see a config option.
    Cheers,
    Nick

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 18, 2016
  28. Offline

    zanetheinsane

    Duplicate block error:
    Watching the database and interacting with the world, what seems to be happening is that when you destroy a cuboid_field the plugin takes about 5-10 seconds to remove it from the database. If you place a new block in the exact same spot before that time you get the duplicate entry error and then the block gets placed down, then the plugin deletes the entry, thus you get the block placed but no entry. This will cause the block to function until a /reload or server restart since it only exists in memory.

    Destroying a block and using '/ps clean' seems to force the deletion of the entry but this could cause a problem with players placing their own blocks since it's easy to accidentally destroy a block and want to replace it before the plugin has time to remove the entry.
     
  29. Offline

    ALufkin24

    I installed it right. But when I use the commands ingame, I'm getting 'syntax error: verify command usuage and try again.

    Any help is appreciated!
     
  30. Offline

    phaed

    Change log
    Version 6.2.2

    • Fixed fields not registering correctly at times
    • Fixed cuboid bug where it would start super long
    • Fixed economy functionality
    • Now able to delete offline player's pstones using /delete [player]
    • Console menu. Type "ps" in console to see available commands.
    • Pstone effects are no longer stackable. Putting 5 jacks together will no longer insta-kill a player.
    • Right click info working correctly
    • Added feed and rapir permissions to plugin.yml. Should work now
    • Adjusted slow-damage and fast-famage to compensate for the new feeding system
     
  31. Offline

    Junrall

    I too am having this issue.
    I have no other plugin installed... and I am OP'ed and I am running the latest Bukkit.

    Also, I am receiving this error:
    Code:
    2011-09-26 20:08:07 [SEVERE] Error occurred while enabling PreciousStones v6.2.2 (Is it up to date?): ENDERMAN_PICKUP
    java.lang.NoSuchFieldError: ENDERMAN_PICKUP
        at net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.registerEvents(PreciousStones.java:146)
        at net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.onEnable(PreciousStones.java:131)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:892)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
        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)
     
Thread Status:
Not open for further replies.

Share This Page