PreciousStones - Back under the development of phaed

Discussion in 'Inactive/Unsupported Plugins' started by aPunch, Apr 20, 2011.

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

    aPunch

    Ryannober, Avous and kahlilnc like this.
  2. Offline

    BBFPaco

    I think this is an awesome mod, but we can't use it because it takes over in our towny town :(

    Any idea how to have Towny override preciousstones so we can use them outside of town only?
     
  3. Offline

    Ryannober

    How would you completely turn off, lets say glow of life. so people dont get healed by it?
    thanks
    -Ryan
     
  4. Offline

    Freezy

    three options:
    /ps off
    remove the node from the config
    remove the setting from the node

    also you could add other behaviours, just read the config manual
     
  5. Offline

    mrgreaper

    we recently added item craft along with mo creatures, slopes, trees, fancypack and stained glass windows

    sadly precious stones seems to have stoped working
    the log file is too big to access from here (im at work) but it cant seem to deal with the entities (its quite amusing seeing it yell about entitie.bunnie


    Code:
    42:10 [SEVERE] Could not pass event PLAYER_MOVE to PreciousStones
    java.lang.NullPointerException
            at net.sacredlabyrinth.Phaed.PreciousStones.managers.SnitchManager.recordSnitchEntry(Unknown Source)
            at net.sacredlabyrinth.Phaed.PreciousStones.managers.EntryManager.enterField(Unknown Source)
            at net.sacredlabyrinth.Phaed.PreciousStones.listeners.PSPlayerListener.onPlayerMove(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:285)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:139)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:402)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:312)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    >
    
    ava:306)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:166)
            at net.minecraft.server.BlockSoil.b(BlockSoil.java:61)
            at net.minecraft.server.Entity.move(Entity.java:581)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:312)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:402)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:312)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    17:42:44 [SEVERE] Could not pass event PLAYER_MOVE to PreciousStones
    java.lang.NullPointerException
    17:42:44 [SEVERE] Could not pass event PLAYER_MOVE to PreciousStones
    java.lang.NullPointerException
    17:42:44 [SEVERE] Could not pass event PLAYER_MOVE to PreciousStones
    java.lang.NullPointerException
    
    this is from the console (via terminal)
    is there a way to fix this (my log file is now 24 megs large and none of the precious stones that provide protection work, the launcher works great though lol )
     
  6. Offline

    Niles

    Is there a way in the config file to ONLY enable certain blocks. I only want the Entry Bouncer (lapis block).
     
  7. Offline

    snickerless1

    Thanks Maxis, I know I have the sql stuff all right but I'm still getting errors...
    11:40:07 [INFO] DataSourcePool [PreciousStones] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    11:40:07 [SEVERE] FATAL: DataSourcePool [PreciousStones] is down!!!
    11:40:07 [INFO] Reseting DataSourcePool [PreciousStones] min:2 max:20 free:0 busy:0 waiting:0 highWaterMark:0 waitCount:0 hitCount:0
    11:40:07 [INFO] Busy Connections:

    11:40:07 [SEVERE] Could not load 'plugins/PreciousStones.jar' in folder 'plugins':
     
  8. Offline

    mrgreaper

    yep look at the config file and delete all put the bouncer we use it to remove jack of death and change air of atlantis to jack-o-lanterns :) much neater...when it works ..damn itemcraft
     
  9. Offline

    Niles

    thanks :)

    When loading the plugin it throws a mysql error. I did create the database minecraft with the user root and the password a****.
    Show Spoiler
    14:21:31 [INFO] Can not test connection as heartbeatsql is not set
    14:21:31 [INFO] Closing Connection[PreciousStones.2] psReuse[0] psCreate[1] psSize[0]
    14:21:31 [INFO] DataSourcePool [PreciousStones] grow; id[PreciousStones.3] busy[4] max[20]
    14:21:31 [INFO] Installing database for PreciousStones due to first time usage
    14:21:31 [INFO] runScript
    14:21:31 [INFO] executing 1 of 14 create table ps_allowed_players ( id bigint primary key,...
    14:21:31 [INFO] executing 2 of 14 create table ps_cloaked ( id bigint primary key, data_byt...
    14:21:31 [INFO] executing 3 of 14 create table ps_fields ( id bigint primary key, x...
    14:21:31 [INFO] executing 4 of 14 create table ps_item_stacks ( id bigint primary key, type...
    14:21:31 [INFO] executing 5 of 14 create table ps_snitch_entries ( id bigint primary key, n...
    14:21:31 [INFO] executing 6 of 14 create table ps_unbreakables ( id bigint primary key, x...
    14:21:31 [INFO] executing 7 of 14 alter table ps_allowed_players add constraint fk_ps_allowed_players_field_1 fore...
    14:21:31 [INFO] Can not test connection as heartbeatsql is not set
    14:21:31 [INFO] Closing Connection[PreciousStones.3] psReuse[0] psCreate[7] psSize[6]
    14:21:31 [INFO] DataSourcePool [PreciousStones] grow; id[PreciousStones.4] busy[5] max[20]
    14:21:31 [SEVERE] Error occurred while enabling PreciousStones v4.2.5 (Is it up to date?): Error: Error executing stmt[alter table ps_allowed_players add constraint fk_ps_allowed_players_field_1 foreign key (field_id) references ps_fields (id)] error[[SQLITE_ERROR] SQL error or missing database (near "constraint": syntax error)]
    javax.persistence.PersistenceException: Error: Error executing stmt[alter table ps_allowed_players add constraint fk_ps_allowed_players_field_1 foreign key (field_id) references ps_fields (id)] error[[SQLITE_ERROR] SQL error or missing database (near "constraint": syntax error)]
    at com.avaje.ebeaninternal.server.ddl.DdlGenerator.runScript(DdlGenerator.java:233)
    at org.bukkit.plugin.java.JavaPlugin.installDDL(JavaPlugin.java:251)
    at net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.setupDatabase(Unknown Source)
    at net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.onEnable(Unknown Source)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:339)
    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:247)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:273)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:430)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:415)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.RuntimeException: Error executing stmt[alter table ps_allowed_players add constraint fk_ps_allowed_players_field_1 foreign key (field_id) references ps_fields (id)] error[[SQLITE_ERROR] SQL error or missing database (near "constraint": syntax error)]
    at com.avaje.ebeaninternal.server.ddl.DdlGenerator.runStatement(DdlGenerator.java:281)
    at com.avaje.ebeaninternal.server.ddl.DdlGenerator.runStatements(DdlGenerator.java:246)
    at com.avaje.ebeaninternal.server.ddl.DdlGenerator.runScript(DdlGenerator.java:224)
    ... 16 more
    Caused by: java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (near "constraint": syntax error)
    at org.sqlite.DB.newSQLException(DB.java:383)
    at org.sqlite.DB.newSQLException(DB.java:387)
    at org.sqlite.DB.throwex(DB.java:374)
    at org.sqlite.NativeDB.prepare(Native Method)
    at org.sqlite.DB.prepare(DB.java:123)
    at org.sqlite.PrepStmt.<init>(PrepStmt.java:42)
    at org.sqlite.Conn.prepareStatement(Conn.java:404)
    at org.sqlite.Conn.prepareStatement(Conn.java:399)
    at org.sqlite.Conn.prepareStatement(Conn.java:383)
    at com.avaje.ebeaninternal.server.lib.sql.PooledConnection.prepareStatement(PooledConnection.java:426)
    at com.avaje.ebeaninternal.server.lib.sql.PooledConnection.prepareStatement(PooledConnection.java:396)
    at com.avaje.ebeaninternal.server.ddl.DdlGenerator.runStatement(DdlGenerator.java:271)
    ... 18 more


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

    Maxis010

    You can not use SQLite, you must use MySQL
    Caused by: java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (near "constraint": syntax error)
     
  11. Offline

    Niles

  12. Offline

    Maxis010

    OK, let me make this clear
    You are using SQLite, PreciousStones can not function with SQLite no matter what your config file looks like
    Change your bukkit.yml to run off of a MySQL database or find another plugin
     
    GehennaGirl likes this.
  13. Offline

    Niles

    I had already changed my bukkit.yml and it is working now for some reason.
     
  14. Offline

    NEO

    @phaed

    When using the jack o death, sometimes users get stuck dieing. They re spawn and die over and over again. This usually happens when someone teleports away as there aobut to die from it, but not always. CB 860 ps 4.2.5
     
  15. Offline

    Ratchet

    I have a huge issue.
    chunks that a forcefield block is placed in are being changed to Air.

    not.. visually. visually they look the same. but if I do /cinfo (another plugin) and punch any block in that chunk, it says "that Air is not registered"

    it's somehow messing up the blocks in the chunk it's placed in and sort-of making them become Air...but not.
    it's causing other plugins to behave strangely because they think the blocks are Air and can't interact with them
     
  16. Offline

    phaed

    That is impossible, blocks can't be changed to something and have them visually look like something else. Contact the other plugin's dev and ask them to see what could be conflicting. The only thing PS actually changes when a PStone is placed on a chunk is it tags it by placing an obisidan block on coordinate 0,0,0 of that chunk, under bedrock. Maybe the other plugin is doing something with the same coordinate and PStones is thus conflicting with it. Other than this I can't think of anything else.

    Please add to the bug tacker on my github.

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

    Ratchet

    the other plugin i'm getting /cinfo from is just LWC. other plugins that do anything to interact with blocks behave strangely after being placed in a chunk with a forcefield, I don't really have anything else that could be causing it :/
     
  18. Offline

    phaed

    Some PS fields are protection fields and thus blocks a lot of player interaction, so other plugins that expect the player to be able to do certain things act differently when they player can't. What other plugins, and whats the exact behavior?
     
  19. Offline

    Ryannober


    How would you remove the node from the config, or remove the setting from the node?

    I'm a little new to this, sorry if that was a stupid question

    -Ryan
     
  20. Offline

    neoguy21

    This is an awesome plugin! love it.. so much is possible.. i used this to create a dungeon game called Treasure Quest III.. have a look..​
    i created healing booths.. death floors.. ladders that kill you if you go up them the wrong way.. all kids of crazy things..​
    however i found an issue..
    if you die from a damage block thats doing more damage to you than you have left it kills you over and over again forever..
    say you have 1 heart.. and the block deals 2 hearts of damage.. you would die.. go to spawn.. then keep dying over and over again.. with your hearts going down by 2.. respawn.. repeat.. theres only 2 ways to stop it.. have someone tp you or step on a healing block..
     
  21. Offline

    Ratchet

    prevent-flow flag doesn't seem to work in 880
     
  22. Offline

    phaed

    Put in my github's bug tracker please.
     
  23. Is a "prevent-bucket' option possible ? it could be REALLY nice !
     
  24. Offline

    Freezy

    Example:

    Before:
    -
    title: "Creature Repeller"
    block: 30
    radius: 20
    prevent-mob-spawn: true
    no-conflict: true
    -
    title: "Flower Power"
    block: 37
    radius: 10
    prevent-mob-damage: true
    no-conflict: true
    -
    title: "Pretty Flower"
    block: 38
    radius: 10
    no-conflict: true
    prevent-mob-spawn: true

    After
    -
    title: "Creature Repeller"
    block: 30
    radius: 20
    prevent-mob-spawn: true
    no-conflict: true
    -
    title: "Pretty Flower"
    block: 38
    radius: 10
    no-conflict: true
    prevent-mob-spawn: true


    More tips:
    Keep backups of working configs
    use a program like notepad++ (http://notepad-plus-plus.org/) and set the language to yaml
    Try it, if it chrashes check the config to see what you broke
     
  25. Offline

    locutus

    I'm having trouble with Jackodeath blocks with B860, on a dedicated Debian with a bunch of other plugins.

    When a player adds other users to the allow list, it still hurts them AM I doing something wrong? Is this a Permission issue? I have preciousstones.whitelist.*
     
  26. Offline

    thefoxygranpa

    Same. Should I add this to your bug tracker? Not sure how to go about this.
     
  27. Offline

    Ryannober

    Thanks for the help but it seems when ever i try to do that i get this nasty error..
    Code:
    2011-06-16 00:49:41 [SEVERE] Could not pass event PLAYER_MOVE to PreciousStones
    java.lang.NullPointerException
        at net.sacredlabyrinth.Phaed.PreciousStones.managers.SnitchManager.recordSnitchEntry(Unknown Source)
        at net.sacredlabyrinth.Phaed.PreciousStones.managers.EntryManager.enterField(Unknown Source)
        at net.sacredlabyrinth.Phaed.PreciousStones.listeners.PSPlayerListener.onPlayerMove(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:285)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:139)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    but it seems to happen to other things to like creature_spawn and things like that, this is after i have deleted what you said.
    Also i checked front and back and their is no errors in my typing.

    Thanks again,
    -Ryan
     
  28. Offline

    phaed

    Yes add it in there pls.
     
  29. It could be really nice, because prevent place and break is really good to protect houses, but griefer still could place lava bucket...

    Prevent bucket (lava and water) is a VERY good option to add to this plugin (that I use since the start of my server !)

    Good job ;)
     
  30. Offline

    thefoxygranpa

  31. Offline

    Bronski

    Are there any issues with pstones losing their names? I've used setname on my fields like 4 times now and it seems fine until later when I revisit, then they are somehow cleared. I'll read back a little bit but I'll keep scanning the previous pages to see if I can find anything.

    Thanks :D
     
Thread Status:
Not open for further replies.

Share This Page