Inactive [FUN/ECON]MonsterHunt v1.5.1 - Who kills most mobs? [1.1-R4]

Discussion in 'Inactive/Unsupported Plugins' started by matejdro, Jan 29, 2011.

  1. Offline

    matejdro

    MonsterHunt

    Are your players building at day, but bunker into their houses, when night comes? Make them hunt monsters!

    This plugins adds another layer of fun against monsters. It's absolute must have, if you have monsters turned on.

    At night, when monsters come out, plugin will count how many monsters each player kills. At the end of the night, name of the player with most kills is announced globally.

    Additionally, you can enable reward to add another way of gathering stuff to the server or to simply motivate players to hunt monsters.


    (BIG thanks to @Samkio for the video)

    See BukkitDev page for more information and download links: http://dev.bukkit.org/server-mods/monsterhunt/
    (you can use your minecraft forum username and password on BukkitDev)
     
  2. Offline

    matejdro

  3. Offline

    Yudaz

    k... tnx!
     
  4. Offline

    Swippen

    I redownloaded it 2 times now. but its still the same problem.
    I looked intp the jar file and the files in question are set as updated last night (CET) . You sure the link is updated?
     
  5. Offline

    matejdro

    Yeah, i have actually uploaded fix last night.

    Do you use reload? Can you try to reboot server instead?
     
  6. Offline

    Swippen

    I have rebooted (restarted with stop and and then starting it up).. yeah..
    If you look in the HuntWorldManager.java you see:
    Code:
    public static HashMap<String,MonsterHuntWorld> worlds = new HashMap<String,MonsterHuntWorld>();
    
    ...
    public static List<MonsterHuntWorld> getWorlds()
    {
         ....
         return (List<MonsterHuntWorld>) worlds.values();
    
    
    there it tries to convert the Hashmap of the worlds to a List... wich seems to make it crash. So its a valid crash I guess?
    And only runs when HuntZoneMode = false. else it shoudl work.
     
  7. Offline

    matejdro

    Github have old source, i forgot to commit it. I will try to reupload it again. Maybe github screwed up something with downloads.
     
  8. Offline

    Swippen

    Great!
    By the way thanks for great support and fast answers/fixes! Well appriciated!
     
  9. Offline

    stereo

    Hi, I'm getting this error when starting the MonsterHunt 1.3.0 plugin:
    Code:
    [SEVERE] Error occurred while enabling MonsterHunt v1.3.0 (Is it up to date?): null
    java.lang.NullPointerException
            at com.matejdro.bukkit.monsterhunt.InputOutput.LoadSettings(InputOutput.java:221)
            at com.matejdro.bukkit.monsterhunt.MonsterHunt.onEnable(MonsterHunt.java:51)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    I tried starting the plugin by itself (with all other plugins disabled), and the error persisted. I deleted the global.txt file and let the plugin re-create it, which didn't help. I tried enabling/disabling mysql, which didn't help either.
    This is on 64-bit Linux, CB 953.

    Any help would be appreciated..

    Thanks!
     
  10. Offline

    matejdro

    you have non-existant world in EnabledWorlds.
     
  11. Offline

    Swippen

    is your Huntzone.world set to the main world? It should get the main world other ways if not.. but try setting that.
    I was too slow =)
     
  12. Offline

    stereo

    Thanks for pointing me in the right direction.
    I created a test setup with a world called "Test", and that was the only entry in the EnabledWorlds of global.txt, and the problem was still there.

    However, I looked a few lines below, and saw this:
    Code:
    HuntZone:
        SecondCorner: 0,0,0
        FirstCorner: 0,0,0
        World: world
        TeleportLocation: 0,0,0
    
    I didn't pay any attention to this bit at first since I wasn't even using a hunt zone. However, the world name "world" was the culprit. I changed it to "Test" and the plugin started working.

    Maybe this line should also be auto-set to the current world name when global.txt is created?

    Thanks again!
     
  13. Offline

    matejdro

    I see, It's my bad. Will fix that in next version.
     
  14. Offline

    Ratchet

    i'm still getting the exception after re-downloading it :(
     
  15. Offline

    matejdro

    Try now.
     
  16. Offline

    andrewkm

    @matejdro
    As always your updates look epic :D And im glad to see some of my suggestions are in the changelog :)
    Will be testing this as soon as I get a chance, probably over the night live. Right now ima throw it on the test machine give it a quick spin =D
     
  17. Offline

    Ratchet

    seems to be working fine except;
    Code:
    2011-07-07 14:47:03 [SEVERE] [MonsterHunt] Error while retreiving high scores! - [SQLITE_ERROR] SQL error or missing database (no such table: monsterhunt_highscores)
    2011-07-07 14:47:03 [SEVERE] java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (no such table: monsterhunt_highscores)
    2011-07-07 14:47:03 [SEVERE]     at org.sqlite.DB.newSQLException(DB.java:383)
    2011-07-07 14:47:03 [SEVERE]     at org.sqlite.DB.newSQLException(DB.java:387)
    2011-07-07 14:47:03 [SEVERE]     at org.sqlite.DB.throwex(DB.java:374)
    2011-07-07 14:47:03 [SEVERE]     at org.sqlite.NativeDB.prepare(Native Method)
    2011-07-07 14:47:03 [SEVERE]     at org.sqlite.DB.prepare(DB.java:123)
    2011-07-07 14:47:03 [SEVERE]     at org.sqlite.PrepStmt.<init>(PrepStmt.java:42)
    2011-07-07 14:47:03 [SEVERE]     at org.sqlite.Conn.prepareStatement(Conn.java:404)
    2011-07-07 14:47:03 [SEVERE]     at org.sqlite.Conn.prepareStatement(Conn.java:399)
    2011-07-07 14:47:03 [SEVERE]     at org.sqlite.Conn.prepareStatement(Conn.java:383)
    2011-07-07 14:47:03 [SEVERE]     at com.matejdro.bukkit.monsterhunt.InputOutput.getHighScore(InputOutput.java:64)
    2011-07-07 14:47:03 [SEVERE]     at com.matejdro.bukkit.monsterhunt.MonsterHuntWorld.stop(MonsterHuntWorld.java:92)
    2011-07-07 14:47:03 [SEVERE]     at com.matejdro.bukkit.monsterhunt.HuntWorldManager$1.run(HuntWorldManager.java:86)
    2011-07-07 14:47:03 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
    2011-07-07 14:47:03 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:438)
    2011-07-07 14:47:03 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-07 14:47:03 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    also;
    [​IMG]

    <world> should display the world name on the third paragraph there but it doesn't? had this in the previous version too.
     
  18. Offline

    matejdro

    Can you try backing up and deleting database file to see if that fixes error? As for second problem, i will fix that after 2 weeks when i come back from vacation. Please add it to issue tracker so i won't forgot it.
     
  19. Offline

    andrewkm

    @matejdro
    mysql still having problems, doesnt create tables im assuming:
    Code:
    2011-07-08 04:01:45 [SEVERE] [MonsterHunt] Error while retreiving high scores! - Table 'monsterhunt.monsterhunt_highscores' doesn't exist
    2011-07-08 04:01:45 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'monsterhunt.monsterhunt_highscores' doesn't exist
    2011-07-08 04:01:45 [SEVERE]  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-07-08 04:01:45 [SEVERE]  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    2011-07-08 04:01:45 [SEVERE]  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    2011-07-08 04:01:45 [SEVERE]  at java.lang.reflect.Constructor.newInstance(Unknown Source)
    2011-07-08 04:01:45 [SEVERE]  at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-07-08 04:01:45 [SEVERE]  at com.mysql.jdbc.Util.getInstance(Util.java:382)
    2011-07-08 04:01:45 [SEVERE]  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
    2011-07-08 04:01:45 [SEVERE]  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
    2011-07-08 04:01:45 [SEVERE]  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
    2011-07-08 04:01:45 [SEVERE]  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    2011-07-08 04:01:45 [SEVERE]  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    2011-07-08 04:01:45 [SEVERE]  at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
    2011-07-08 04:01:45 [SEVERE]  at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
    2011-07-08 04:01:45 [SEVERE]  at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2273)
    2011-07-08 04:01:45 [SEVERE]  at com.matejdro.bukkit.monsterhunt.InputOutput.getHighScore(InputOutput.java:67)
    2011-07-08 04:01:45 [SEVERE]  at com.matejdro.bukkit.monsterhunt.commands.HuntScoreCommand.run(HuntScoreCommand.java:56)
    2011-07-08 04:01:45 [SEVERE]  at com.matejdro.bukkit.monsterhunt.commands.BaseCommand.execute(BaseCommand.java:20)
    2011-07-08 04:01:45 [SEVERE]  at com.matejdro.bukkit.monsterhunt.MonsterHunt.onCommand(MonsterHunt.java:83)
    2011-07-08 04:01:45 [SEVERE]  at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-07-08 04:01:45 [SEVERE]  at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-08 04:01:45 [SEVERE]  at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    2011-07-08 04:01:45 [SEVERE]  at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
    2011-07-08 04:01:45 [SEVERE]  at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    2011-07-08 04:01:45 [SEVERE]  at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
    2011-07-08 04:01:45 [SEVERE]  at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-07-08 04:01:45 [SEVERE]  at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-07-08 04:01:45 [SEVERE]  at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    2011-07-08 04:01:45 [SEVERE]  at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-07-08 04:01:45 [SEVERE]  at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-07-08 04:01:45 [SEVERE]  at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-08 04:01:45 [SEVERE]  at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-08 04:01:54 [SEVERE] [MonsterHunt] Error while retreiving high scores! - Table 'monsterhunt.monsterhunt_highscores' doesn't exist
    2011-07-08 04:01:54 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'monsterhunt.monsterhunt_highscores' doesn't exist
    2011-07-08 04:01:54 [SEVERE]  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-07-08 04:01:54 [SEVERE]  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    2011-07-08 04:01:54 [SEVERE]  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    2011-07-08 04:01:54 [SEVERE]  at java.lang.reflect.Constructor.newInstance(Unknown Source)
    2011-07-08 04:01:54 [SEVERE]  at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-07-08 04:01:54 [SEVERE]  at com.mysql.jdbc.Util.getInstance(Util.java:382)
    2011-07-08 04:01:54 [SEVERE]  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
    2011-07-08 04:01:54 [SEVERE]  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
    2011-07-08 04:01:54 [SEVERE]  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
    2011-07-08 04:01:54 [SEVERE]  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    2011-07-08 04:01:54 [SEVERE]  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    2011-07-08 04:01:54 [SEVERE]  at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
    2011-07-08 04:01:54 [SEVERE]  at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
    2011-07-08 04:01:54 [SEVERE]  at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2273)
    2011-07-08 04:01:54 [SEVERE]  at com.matejdro.bukkit.monsterhunt.InputOutput.getHighScore(InputOutput.java:67)
    2011-07-08 04:01:54 [SEVERE]  at com.matejdro.bukkit.monsterhunt.commands.HuntScoreCommand.run(HuntScoreCommand.java:56)
    2011-07-08 04:01:54 [SEVERE]  at com.matejdro.bukkit.monsterhunt.commands.BaseCommand.execute(BaseCommand.java:20)
    2011-07-08 04:01:54 [SEVERE]  at com.matejdro.bukkit.monsterhunt.MonsterHunt.onCommand(MonsterHunt.java:83)
    2011-07-08 04:01:54 [SEVERE]  at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-07-08 04:01:54 [SEVERE]  at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-08 04:01:54 [SEVERE]  at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    2011-07-08 04:01:54 [SEVERE]  at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
    2011-07-08 04:01:54 [SEVERE]  at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    2011-07-08 04:01:54 [SEVERE]  at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
    2011-07-08 04:01:54 [SEVERE]  at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-07-08 04:01:54 [SEVERE]  at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-07-08 04:01:54 [SEVERE]  at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    2011-07-08 04:01:54 [SEVERE]  at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-07-08 04:01:54 [SEVERE]  at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-07-08 04:01:54 [SEVERE]  at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-08 04:01:54 [SEVERE]  at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-08 04:01:58 [SEVERE] [MonsterHunt] Error while retreiving high scores! - Table 'monsterhunt.monsterhunt_highscores' doesn't exist
    2011-07-08 04:01:58 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'monsterhunt.monsterhunt_highscores' doesn't exist
    2011-07-08 04:01:58 [SEVERE]  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-07-08 04:01:58 [SEVERE]  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    2011-07-08 04:01:58 [SEVERE]  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    2011-07-08 04:01:58 [SEVERE]  at java.lang.reflect.Constructor.newInstance(Unknown Source)
    2011-07-08 04:01:58 [SEVERE]  at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-07-08 04:01:58 [SEVERE]  at com.mysql.jdbc.Util.getInstance(Util.java:382)
    2011-07-08 04:01:58 [SEVERE]  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
    2011-07-08 04:01:58 [SEVERE]  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
    2011-07-08 04:01:58 [SEVERE]  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
    2011-07-08 04:01:58 [SEVERE]  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    2011-07-08 04:01:58 [SEVERE]  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    2011-07-08 04:01:58 [SEVERE]  at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
    2011-07-08 04:01:58 [SEVERE]  at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
    2011-07-08 04:01:58 [SEVERE]  at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2273)
    2011-07-08 04:01:58 [SEVERE]  at com.matejdro.bukkit.monsterhunt.InputOutput.getHighScore(InputOutput.java:67)
    2011-07-08 04:01:58 [SEVERE]  at com.matejdro.bukkit.monsterhunt.commands.HuntScoreCommand.run(HuntScoreCommand.java:48)
    2011-07-08 04:01:58 [SEVERE]  at com.matejdro.bukkit.monsterhunt.commands.BaseCommand.execute(BaseCommand.java:20)
    2011-07-08 04:01:58 [SEVERE]  at com.matejdro.bukkit.monsterhunt.MonsterHunt.onCommand(MonsterHunt.java:83)
    2011-07-08 04:01:58 [SEVERE]  at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-07-08 04:01:58 [SEVERE]  at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-08 04:01:58 [SEVERE]  at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    2011-07-08 04:01:58 [SEVERE]  at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
    2011-07-08 04:01:58 [SEVERE]  at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    2011-07-08 04:01:58 [SEVERE]  at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
    2011-07-08 04:01:58 [SEVERE]  at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-07-08 04:01:58 [SEVERE]  at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-07-08 04:01:58 [SEVERE]  at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    2011-07-08 04:01:58 [SEVERE]  at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-07-08 04:01:58 [SEVERE]  at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-07-08 04:01:58 [SEVERE]  at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-08 04:01:58 [SEVERE]  at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-08 04:02:03 [SEVERE] [MonsterHunt] Error while retreiving high scores! - Table 'monsterhunt.monsterhunt_highscores' doesn't exist
    2011-07-08 04:02:03 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'monsterhunt.monsterhunt_highscores' doesn't exist
    2011-07-08 04:02:03 [SEVERE]  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-07-08 04:02:03 [SEVERE]  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    2011-07-08 04:02:03 [SEVERE]  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    2011-07-08 04:02:03 [SEVERE]  at java.lang.reflect.Constructor.newInstance(Unknown Source)
    2011-07-08 04:02:03 [SEVERE]  at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-07-08 04:02:03 [SEVERE]  at com.mysql.jdbc.Util.getInstance(Util.java:382)
    2011-07-08 04:02:03 [SEVERE]  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
    2011-07-08 04:02:03 [SEVERE]  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
    2011-07-08 04:02:03 [SEVERE]  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
    2011-07-08 04:02:03 [SEVERE]  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    2011-07-08 04:02:03 [SEVERE]  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    2011-07-08 04:02:03 [SEVERE]  at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
    2011-07-08 04:02:03 [SEVERE]  at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
    2011-07-08 04:02:03 [SEVERE]  at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2273)
    2011-07-08 04:02:03 [SEVERE]  at com.matejdro.bukkit.monsterhunt.InputOutput.getHighScore(InputOutput.java:67)
    2011-07-08 04:02:03 [SEVERE]  at com.matejdro.bukkit.monsterhunt.commands.HuntScoreCommand.run(HuntScoreCommand.java:48)
    2011-07-08 04:02:03 [SEVERE]  at com.matejdro.bukkit.monsterhunt.commands.BaseCommand.execute(BaseCommand.java:20)
    2011-07-08 04:02:03 [SEVERE]  at com.matejdro.bukkit.monsterhunt.MonsterHunt.onCommand(MonsterHunt.java:83)
    2011-07-08 04:02:03 [SEVERE]  at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-07-08 04:02:03 [SEVERE]  at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-08 04:02:03 [SEVERE]  at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    2011-07-08 04:02:03 [SEVERE]  at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
    2011-07-08 04:02:03 [SEVERE]  at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    2011-07-08 04:02:03 [SEVERE]  at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
    2011-07-08 04:02:03 [SEVERE]  at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-07-08 04:02:03 [SEVERE]  at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-07-08 04:02:03 [SEVERE]  at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    2011-07-08 04:02:03 [SEVERE]  at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-07-08 04:02:03 [SEVERE]  at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-07-08 04:02:03 [SEVERE]  at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-08 04:02:03 [SEVERE]  at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-08 04:02:14 [SEVERE] [MonsterHunt] Error while retreiving high scores! - Table 'monsterhunt.monsterhunt_highscores' doesn't exist
    2011-07-08 04:02:14 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'monsterhunt.monsterhunt_highscores' doesn't exist
    2011-07-08 04:02:14 [SEVERE]  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-07-08 04:02:14 [SEVERE]  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    2011-07-08 04:02:14 [SEVERE]  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    2011-07-08 04:02:14 [SEVERE]  at java.lang.reflect.Constructor.newInstance(Unknown Source)
    2011-07-08 04:02:14 [SEVERE]  at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-07-08 04:02:14 [SEVERE]  at com.mysql.jdbc.Util.getInstance(Util.java:382)
    2011-07-08 04:02:14 [SEVERE]  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
    2011-07-08 04:02:14 [SEVERE]  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
    2011-07-08 04:02:14 [SEVERE]  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
    2011-07-08 04:02:14 [SEVERE]  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    2011-07-08 04:02:14 [SEVERE]  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    2011-07-08 04:02:14 [SEVERE]  at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
    2011-07-08 04:02:14 [SEVERE]  at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
    2011-07-08 04:02:14 [SEVERE]  at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2273)
    2011-07-08 04:02:14 [SEVERE]  at com.matejdro.bukkit.monsterhunt.InputOutput.getHighScore(InputOutput.java:67)
    2011-07-08 04:02:14 [SEVERE]  at com.matejdro.bukkit.monsterhunt.commands.HuntScoreCommand.run(HuntScoreCommand.java:48)
    2011-07-08 04:02:14 [SEVERE]  at com.matejdro.bukkit.monsterhunt.commands.BaseCommand.execute(BaseCommand.java:20)
    2011-07-08 04:02:14 [SEVERE]  at com.matejdro.bukkit.monsterhunt.MonsterHunt.onCommand(MonsterHunt.java:83)
    2011-07-08 04:02:14 [SEVERE]  at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-07-08 04:02:14 [SEVERE]  at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-08 04:02:14 [SEVERE]  at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    2011-07-08 04:02:14 [SEVERE]  at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
    2011-07-08 04:02:14 [SEVERE]  at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    2011-07-08 04:02:14 [SEVERE]  at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
    2011-07-08 04:02:14 [SEVERE]  at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-07-08 04:02:14 [SEVERE]  at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-07-08 04:02:14 [SEVERE]  at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    2011-07-08 04:02:14 [SEVERE]  at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-07-08 04:02:14 [SEVERE]  at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-07-08 04:02:14 [SEVERE]  at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-08 04:02:14 [SEVERE]  at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    edit:
    @matejdro
    sqlite however is working fine.
     
  20. Offline

    Ratchet

    it seems it didn't create the DB tables. I got the insert code from inside the plugin and did it manually
     
  21. Offline

    ValBGaming

    Getting this on start up...
    Code:
    07:23:56 [SEVERE] [MonsterHunt]: Error while creating tables! - You have an erro
    r in your SQL syntax; check the manual that corresponds to your MySQL server ver
    sion for the right syntax to use near '"monsterhunt_highscores" ("name" VARCHAR
    PRIMARY KEY  NOT NULL , "highscore" INT' at line 1
    07:23:56 [INFO] [MonsterHunt] MonsterHunt Loaded!
    CB Version: 953
    Plugin Version: 1.3.0
    MySQL Config:
    Code:
    Database:
        MySQLConn: jdbc:mysql://***.***.*.***:3306/minecraft
        UseMySQL: true
        MySQLPassword: ****
        MySQLUsername: ****
    EDIT: Also getting the no table creation error others are getting when the hunt ends.
     
  22. Offline

    Ratchet

    some players keep getting told to stop grinding in caves, but they are outside with no blocks above them, that setting seems kind of glitchy but I don't want to disable it because then people can grind in a mob trap
     
  23. Offline

    Fabis94

    Hey matej there's one problem with the plugin. It can be easily abused. Since there are not many people online on a server at most times (well at least on mine), 2-4 guys who are friends can just join in and not kill anything except for 1 guy. So the one guy just kills the mobs without a worry, because the other guys aren't doing anything intentionally, then he gets the rewards and sells it for good cash. If I make the reward worse then the hunt just ends up not worth playing.

    So you should balance this out somehow. Maybe make a new variable for rewards, like so the amount of the item he gets is relative to how much other people played. Or if other people are too far behind, no one gets a reward. That wouldn't be very good though. Maybe introduce more risk, like if you're the last you lose stuff? Like money, if you have Essentials Economy or iConomy. Well those are just a few suggestions, I bet you can think of something better :p
     
  24. Offline

    Xuanz

    Is there a way for this to be compatible with Iconomy so players get cash for killed monsters instead of a competition?
     
  25. Offline

    kevinhs10

    how do you use the signs to spawn monsters in the hunt zone???
     
  26. Offline

    andrewkm

    @matejdro here is the big issue im having, im sure its always best to see it on video
    Quick description: /hunt before the hunt starts, and you can already start racking up points.
    -
    Video:

    -
    Config:
    Code:
    SkipDays: 0
    EnableSignup: true
    MinimumPlayers: 1
    Database:
        MySQLConn: jdbc:mysql://localhost:3306/monsterhunt
        UseMySQL: false
        MySQLPassword: removed
        MySQLUsername: minecraft
    AllowSignUpAfterHuntStart: true
    CountBows: true
    EnabledWorlds: worldeco
    DeathPenalty: 10
    OnlyCountMobsSpawnedOutside: false
    EnableHighScores: true
    StartTime: 13000
    OnlyCountMobsSpawnedOutsideHeightLimit: 0
    AnnounceLead: true
    SelectionTool: 268
    Value:
        ZombiePigman:
            General: 0
            Arrow: 0
            Wolf: 0
        Creeper:
            General: 0
            Arrow: 0
            Wolf: 0
        Spider:
            General: 5
            Arrow: 3
            Wolf: 0
        Player:
            General: 0
            Arrow: 0
            Wolf: 0
        Giant:
            General: 0
            Arrow: 0
            Wolf: 0
        ElectrifiedCreeper:
            General: 0
            Arrow: 0
            Wolf: 0
        TamedWolf:
            General: 0
            Arrow: 0
            Wolf: 0
        WildWolf:
            General: 0
            Arrow: 0
            Wolf: 0
        Zombie:
            General: 3
            Arrow: 2
            Wolf: 0
        Skeleton:
            General: 7
            Arrow: 4
            Wolf: 0
        Slime:
            General: 0
            Arrow: 0
            Wolf: 0
        Ghast:
            General: 0
            Arrow: 0
            Wolf: 0
    SkipToIfFailsToStart: 0
    Debug: false
    Rewards:
        RewardEveryone: false
        RewardParametersPlace2: 264 3
        RewardParametersPlace3: 264 1
        NumberOfWinners: 3
        RewardParametersPlace1: 264 5
        EnableRewardEveryonePermission: false
        RewardParametersEveryone:
        EnableReward: true
    HuntZoneMode: false
    HuntZone:
        SecondCorner: 0,0,0
        FirstCorner: 0,0,0
        World: worldeco
        TeleportLocation: 0,0,0
    Messages:
        MessageAlreadySignedUp: You are already signed up for Monster Hunt!
        MessageHuntStatusNotInvolvedLastHunt: You were not involved in last Monster Hunt!
        MessageHuntTeleNoHunt: You cannot teleport to hunt zone when there is no hunt.
        MessageHuntStatusNotActive: Hunt is currently not active anywhere.
        MessageTooLateSignUp: Sorry, you are too late to sign up. Sign up earlier next time!
        StartMessage: '&2Monster Hunt has started! Kill mobs for points! &fIf you want to join in the action, type /hunt or your kills wont count!'
        HighScoreMessage: 'You have reached a new high score: <Points> points!'
        MessageStartNotEnoughPlayers: '[&4Monster Hunt&f] did not start tonight because not enough users entered. Switching back to day time for the builders. Enjoy!'
        MessageSignUpPeriod: '[&4Monster Hunt&f] will start in 2 minutes! To kill monsters for rewards type /hunt to sign up! If 5 or more users do not sign up day time will resume!'
        FinishMessageNotEnoughPlayers: Sun is rising, so monster Hunt is finished! Unfortunately there were not enough players participating, so there is no winner.
        SignupAtHuntMessage: You have signed up for the Monster Hunt. Now hurry and kill some monsters!
        SignupBeforeHuntMessage: You have signed up for the next Monster Hunt!
        RewardMessage: Congratulations! You have received <Items>
        MessageHuntStatusCurrentScore: Your current score in the hunt is <Points> points! Keep it up!
        KillMessageArrow: You have got only <MobValue> points because you used bow when killing <MobName>. You have <Points> points so far. Keep it up!
        DeathMessage: You have died, so your Monster Hunt score is reduced by 10%. Be more careful next time!
        NoBowMessage: Your kill is not counted. Stop camping with your bow and get into the fight!
        MessageHuntStatusLastScore: Your last score in the hunt was <Points> points
        MessageHuntStatusTimeReamining: Keep up the killing! You have only <Timeleft>% of the night left in the hunt!
        FinishMessageNotEnoughPlayers: Sun is rising, so monster Hunt is finished! Unfortunately there were not enough players participating, so there is no winner.
        KillMobSpawnedInsideMessage: Your kill was not counted. Stop grinding in caves and go outside!
        MessageHuntTeleNotSignedUp: You cannot teleport to hunt zone if you are not signed up for the hunt!
        KillMessageWolf: You have got <MobValue> points because your wolf killed <MobName>. You have <Points> points so far. Keep it up!
        MessageHuntStatusHuntActive: Monster Hunt is active
        FinishMessageWinners: 'Sun is rising, so monster Hunt is finished!
            Winners of the today''s match are: [NEWLINE] 1st place: <NamesPlace1> (<PointsPlace1>
            points) [NEWLINE] 2nd place: <NamesPlace2> (<PointsPlace2> points) [NEWLINE]
            3rd place: <NamesPlace3> (<PointsPlace3> points)'
        MessageLead: <Player> has just taken over lead with <Points> points!
        MessageHuntStatusNoKills: You haven't killed any mob in the hunt yet. Hurry up!
        KillMessageGeneral: You have got <MobValue> points from killing that <MobName>. You have <Points> points so far. Keep it up!
    SignUpPeriodTime: 2
    StartChance: 100
    TellTime: true
    EndTime: 23600
    MinimumPointsPlace2: 1
    MinimumPointsPlace3: 1
    MinimumPointsPlace1: 1
    
     
  27. Offline

    Ratchet

    Code:
    2011-07-14 03:59:11 [SEVERE] [MonsterHunt]: Error while creating tables! - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"monsterhunt_highscores" ("name" VARCHAR PRIMARY KEY  NOT NULL , "highscore" INT' at line 1
    2011-07-14 03:59:11 [INFO] [MonsterHunt] MonsterHunt Loaded!
     
  28. Offline

    matejdro

    @Xuanz you can already do this

    @kevinhs10 this plugin only counts mobs. Guy in video used another plugin for spawning.

    Everyone else, i will look into /hunt and DB issues tommorow.

    Updated

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

    Cristof

    Download not work fine!
     
  30. Offline

    andrewkm

    @matejdro
    The mysql table creation still has not been fixed:
    Code:
    2011-07-18 12:43:43 [SEVERE] [MonsterHunt]: Error while creating tables! - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"monsterhunt_highscores" ("name" VARCHAR PRIMARY KEY  NOT NULL , "highscore" INT' at line 1
    2011-07-18 12:43:43 [INFO] [MonsterHunt] MonsterHunt Loaded!
     
  31. Offline

    TibTuner04

    I installed but only ops can do /hunt. I do not use any permissions mod but normal users cannot use it. How can i fix?
     

Share This Page