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

    Epolixa

    I'm having a slight problem with this plugin on my server. For some reason, the plugin registers and delivers points to players before they actually kill the monsters, usually one hit before the monster is dead. Is there any way to fix this?
     
  3. Offline

    triarry

    I'm having a slight problem on my server as well. I'm using XenonServer.com to host my server, and I cannot open, or delete, your global.config file. I can delete the folder that it is in, so thats not really a problem. My problem is, if I were to try and recreate the global.config myself, instead of using the automatically generated one your mod makes, I would not have the original settings from YOUR global.config, since I can't even open it. Is it possible you could post the default configuration settings in a spoiler in the original post? Thanks.
     
  4. Offline

    Azukay

    I'm having major issues when I set "UseMySQL: true", it works fine with it set to "false". I'm using bukkit #733

    (MySQLConn: jdbc:mysql://localhost:3306/monsterhunt)
    I have tried having the mysql connector plugin in the "lib" folder (where all other plugins of this type are stored), the ".minecraft server" folder and the plugin folder.
    The mySQL server settings I use are an exact copy of what I use for other plugins that work fine.


    Code:
    2011-04-29 12:36:33 [SEVERE] java.sql.SQLException: invalid database address: 
    2011-04-29 12:36:33 [SEVERE]     at org.sqlite.JDBC.createConnection(JDBC.java:74)
    2011-04-29 12:36:33 [SEVERE]     at org.sqlite.JDBC.connect(JDBC.java:64)
    2011-04-29 12:36:33 [SEVERE]     at java.sql.DriverManager.getConnection(Unknown Source)
    2011-04-29 12:36:33 [SEVERE]     at java.sql.DriverManager.getConnection(Unknown Source)
    2011-04-29 12:36:33 [SEVERE]     at com.matejdro.bukkit.monsterhunt.InputOutput.createConnection(InputOutput.java:48)
    2011-04-29 12:36:33 [SEVERE]     at com.matejdro.bukkit.monsterhunt.InputOutput.getConnection(InputOutput.java:35)
    2011-04-29 12:36:33 [SEVERE]     at com.matejdro.bukkit.monsterhunt.InputOutput.PrepareDB(InputOutput.java:218)
    2011-04-29 12:36:33 [SEVERE]     at com.matejdro.bukkit.monsterhunt.MonsterHunt.onEnable(MonsterHunt.java:47)
    2011-04-29 12:36:33 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-04-29 12:36:33 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
    2011-04-29 12:36:33 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    2011-04-29 12:36:33 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    2011-04-29 12:36:33 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    2011-04-29 12:36:33 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    2011-04-29 12:36:33 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    2011-04-29 12:36:33 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    2011-04-29 12:36:33 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    2011-04-29 12:36:33 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-04-29 12:36:33 [SEVERE] null loading MonsterHunt v1.0.2 (Is it up to date?)
    java.lang.NullPointerException
        at com.matejdro.bukkit.monsterhunt.InputOutput.PrepareDB(InputOutput.java:219)
        at com.matejdro.bukkit.monsterhunt.MonsterHunt.onEnable(MonsterHunt.java:47)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    A couple other things (suggestions) after browsing through the global.config file.
    Should all messages be enclosed in quotes? Some are but some aren't?

    StartMessage: '&2Monster Hunt has started in world <World>! Go kill those damn mobs!'
    MessageTooLateSignUp: Sorry, you are too late to sign up. Better luck next time!
    FinishMessageWinners: 'Sun is rising, so monster Hunt has now finished in world <World>!
    MessageHuntStatusNoKills: You haven't killed any monsters in this world's hunt yet. Hurry up!

    Keep up the good work :)

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

    paully104

    Really odd thing is that on xenon servers i cant use .config files, does .yml work?
     
  6. Offline

    Azukay

    Check the types of file extensions they allow users to have. Maybe ".config" is on their deny list?
     
  7. Offline

    paully104

    Yeah /config is on their deny list, i was curious if i could just change it to .yml and if that would work but i really doubt it. It's a great plugin just need a .yml extension and it could be used on xenon servers.
     
  8. Offline

    Azukay

    With my limited understanding of bukkit's plugins, I assume that the plugin would be looking for ".config" only, so would probably just need to look for ".yml" too and perform whatever necessary code translations.
     
  9. Offline

    Puffs

    I have a very strange thing happening when I am using percentages in the rewards. my code:

    Code:
    Rewards:
        RewardEveryone: true
        RewardParametersPlace2: :60 21 R0.2-0.4,14 R0.1-0.25;:30 48 R0.2-0.4,265 R0.1-0.9;:10 354 1-2,49 R0.05-0.1
        RewardParametersPlace3: :60 38 R1,37 R1;:30 39 R1,40 R1;:10 86 R1, 41 R1
        NumberOfWinners: 3
        RewardParametersPlace1: :60 14 R0.1-0.25,357 3-8;:30 18 64,42 1-3;:10 322 2-5,57 1-3
        EnableRewardEveryonePermission: false
        RewardParametersEveryone: 262 R0.1-0.5,265 R0.1-0.5,264 1-3
        EnableReward: true
    
    The testing I have does is specifically with the reward for 1st place. I have won both the 60% and 30%. When I won the 60% I got:
    15 cobble and 5 cookie.

    30% I got:
    64 water and 3 Iron Block.

    It should not have been Cobble as 14 should be Gold Ore. It should not have been water as 18 is Leaves. 4 is Cobble and 8 is water. So I am thinking it is not reading the tens column or something. Is anyone else getting this same issue? Did I miss something in the code?

    edit: [MonsterHunt 1.0.2] [Craftbukkit 733]
     
  10. Offline

    triarry

    I realized that I cannot upload .config files, and yeah, they are restricted on Xenonservers.com. An alternative would be verryyyy nice :)
     
  11. Offline

    Ratchet

    Code:
    2011-04-29 21:08:36 [SEVERE] found duplicate anchor 2Your; first occurence; second occurence loading MonsterHunt v1.0.2 (Is it up to date?)
    found duplicate anchor 2Your; first occurence
     in "<reader>", line 35, column 19:
            NoBowMessage: &2Your kill is not counted. Stop ...
                          ^
    second occurence
     in "<reader>", line 37, column 33:
            MessageHuntStatusLastScore: &2Your last score in this world  ...
                                        ^
    
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:149)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:73)
        at com.matejdro.bukkit.monsterhunt.InputOutput.LoadSettings(InputOutput.java:126)
        at com.matejdro.bukkit.monsterhunt.MonsterHunt.onEnable(MonsterHunt.java:46)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    how can I fix this?
     
  12. Offline

    Azukay

    Did you manually add the &2? you will probably have to use '&2 MESSAGE HERE'
     
  13. Offline

    Ratchet

    yeah I did, is it the ' you mean I should add or the space between &2 and the message? or both?

    EDIT: I tried both, i'm still getting the message.. does this mean I can't use colour codes at the start of the message?

    Code:
    2011-04-30 04:24:30 [SEVERE] while parsing a block mapping; expected <block end>, but found Scalar loading MonsterHunt v1.0.2 (Is it up to date?)
    while parsing a block mapping
     in "<reader>", line 35, column 5:
            NoBowMessage: 'Your kill is not  ...
            ^
    expected <block end>, but found Scalar
     in "<reader>", line 59, column 44:
         ... HuntStatusNoKills: '&2You haven't killed any monsters in this Hu ...
                                             ^
    
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:576)
        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:228)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:73)
        at com.matejdro.bukkit.monsterhunt.InputOutput.LoadSettings(InputOutput.java:126)
        at com.matejdro.bukkit.monsterhunt.MonsterHunt.onEnable(MonsterHunt.java:46)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    I removed it and now it's throwing me a different message o_o
     
  14. Offline

    Azukay

    I don't think a space would affect it, but you should try using a ' at the start and end of the message.
     
  15. Offline

    Ratchet

    I updated my post while you were replying^

    EDIT: managed to fix it. it seems the lines MessageSignUpPeriod: and MessageHuntStatusNoKills: can't have ' or it breaks for some reason. ohwell.
     
  16. Offline

    DarkAge

    This is a bukkit issue and has been asked like 20 times already. Read the previous posts first.

    Use "
    When using the double quotation mark it will display a single ' quotation mark.
    So your message will look like this:
    Code:
    '&2You haven"t killed any monsters in this Hunt'
     
  17. Offline

    L24D

    Hmm, strange... it refuses to start a "hunt" for me... and when i try to force start a hunt (/huntstart the matrix, or /huntstart nether) it just tells me there is no such world.
    no errors or anything, it just doesn't work. 0_0

    [EDIT]: I'm guessing it doesn't have multiworld support, or support worldnames with spaces in them. :p
     
  18. Offline

    Ratchet

    trying that and it's still throwing errors at me when I load the server;
    these are the messages i'm trying to use;

    Code:
    Messages:
        NoBowMessage: 'Your kill is not counted. Stop camping with your bow and get into the fight!'
        MessageHuntStatusNotInvolvedLastHunt: 'You were not involved in the last hunt.'
        MessageHuntStatusLastScore: 'Your last score was <Points> points.'
        MessageHuntStatusTimeReamining: 'Keep up the killing! You have only <Timeleft>% of the night left in this world!'
        MessageHuntStatusNotActive: 'Monster Hunt is currently not active anywhere.'
        StartMessage: 'Monster Hunt has started! Kill monsters to earn points, winners are rewarded with Gold!'
        MessageTooLateSignUp: 'You are too late to sign up for the Hunt.'
        HighScoreMessage: 'You have reached a new high score: <Points> points!'
        MessageStartNotEnoughPlayers: 'Monster Hunt was about to start, but unfortunately there were not enough players signed up.'
        MessageSignUpPeriod: 'Sharpen your swords, strengthen your armor and type /hunt because Monster Hunt will begin in several mintues!'
        FinishMessageNotEnoughPoints: 'The Sun is rising, and the monster hunt has ended! Unfortunately nobody killed enough monsters, so there is no winner.'
        FinishMessageNotEnoughPlayers: 'The Sun is rising, and the monster hunt has ended! 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!'
        SignupAtHuntMessage: 'You have signed up for the hunt.'
        KillMessage: '<MobValue> points from killing that <MobName>. You have <Points> points so far'.
        iConomyCurrencyName: Gil
        MessageHuntStatusHuntActive: 'Monster Hunt is active!'
        SignupBeforeHuntMessage: 'You have signed up for the next monster hunt!'
        RewardMessage: 'Congratulations! You have received <Items>'
        FinishMessageWinners: 'The Sun is rising, and the monster hunt has ended!'
            Winners are: 'NEWLINE 1st place: <NamesPlace1> (<PointsPlace1>
            points) NEWLINE 2nd place: <NamesPlace2> (<PointsPlace2> points) NEWLINE
            3rd place: <NamesPlace3> (<PointsPlace3> points)'
        MessageHuntStatusCurrentScore: 'Your current score is <Points> points!'
        MessageHuntStatusNoKills: 'You haven"t killed any monsters in this Hunt yet!'
        DeathMessage: 'You have died, and your Monster Hunt score is reduced by 30%. Be more careful next time!'
    I want to add colour codes too but that just seems to make it even worse
     
  19. Offline

    DarkAge

    What's the error you are getting?

    Here you can use my color codes as a basis. Just use Notepad++ and replace the &x with the color you want.

    Code:
    Messages:
        NoBowMessage: '&6Your kill was not counted. Stop camping with your bow &6and get into the fight!'
        MessageHuntStatusNotInvolvedLastHunt: '&6You were not involved in last hunt'
        MessageHuntStatusLastScore: '&6Your last score was &b<Points>&6 points'
        MessageHuntStatusTimeReamining: '&6Keep up the killing! You have only &b<Timeleft>%&6 left of the &6night!'
        MessageHuntStatusNotActive: '&6Monster Hunt&4 is currently not active'
        StartMessage: '&6Monster Hunt&2 has begun! Go kill those damn
            mobs!'
        MessageTooLateSignUp: '&4Sorry, you are too late to sign up. Better luck next time!'
        HighScoreMessage: '&6You have reached a new high score: &b<Points>&6 points!'
        MessageStartNotEnoughPlayers: '&6Monster Hunt&4 was about to start, but unfortunately not
    	    &4enough players signed up. '
        MessageSignUpPeriod: '&6Sharpen your swords, strengthen your armor and type &b/hunt&6, because Monster Hunt will begin in &b1&6
    	    &6minute!'
        FinishMessageNotEnoughPoints: '&4Sun is rising and the monsters have fled. Unfortunately
    	    &4nobody killed enough monsters, so there is no winner.'
        FinishMessageNotEnoughPlayers: '&4Sun is rising and the monsters have fled. Unfortunately
    	    &4there were not enough players participating, so there is no
    	      &4winner.'
        KillMobSpawnedInsideMessage: '&6Your kill was not counted. Stop grinding in caves and go
    	    &6outside!'
        SignupAtHuntMessage: '&6You have signed up for the hunt. Now hurry and kill some monsters!'
        KillMessage: '&6Earned &b<MobValue>&6 points for killing &b<MobName>&6. [NEWLINE]   &6You have &b<Points>&6 points in total.'
        iConomyCurrencyName: Rocks
        MessageHuntStatusHuntActive: '&2Hunt is in progress'
        SignupBeforeHuntMessage: '&6You have signed up for the next hunt!'
        RewardMessage: '&2Congratulations! You have received &b<Items>'
        FinishMessageWinners: '&6The hunt has ended!
            &6Winners of the today''s match are: [NEWLINE] &21st place: &f<NamesPlace1>&2 (&b<PointsPlace1>
            points&2) [NEWLINE] &22nd place: &f<NamesPlace2>&2 (&b<PointsPlace2> points&2) [NEWLINE]
            &23rd place: &f<NamesPlace3>&2 (&b<PointsPlace3> points&2)'
        MessageHuntStatusCurrentScore: '&6Your current score in this hunt is &b<Points>&6 points!'
        MessageHuntStatusNoKills: '&6You haven"t killed any mobs in this hunt yet. Hurry up!'
        DeathMessage: '&6You have died, so your Monster Hunt score is reduced by &b30%&6. Be more careful next time!'
    You will notice some lines have the same color repeating. That is because for some reason the color doesn't work for the whole message, it only displays parts of it in color and the rest in white. So the multiple use of the same color code fixes the white color that appears sometimes.
     
  20. Offline

    lastmikoi

    Good plugin, enjoying it in my server.

    However, since I updated to 733, then 740, I got this error at startup, which kill MonsterHunt.
    Code:
    2011-05-01 15:44:39 [SEVERE] java.sql.SQLException: No suitable driver found for
    2011-05-01 15:44:39 [SEVERE]    at java.sql.DriverManager.getConnection(Unknown Source)
    2011-05-01 15:44:39 [SEVERE]    at java.sql.DriverManager.getConnection(Unknown Source)
    2011-05-01 15:44:39 [SEVERE]    at com.matejdro.bukkit.monsterhunt.InputOutput.createConnection(InputOutput.java:48)
    2011-05-01 15:44:39 [SEVERE]    at com.matejdro.bukkit.monsterhunt.InputOutput.getConnection(InputOutput.java:35)
    2011-05-01 15:44:39 [SEVERE]    at com.matejdro.bukkit.monsterhunt.InputOutput.PrepareDB(InputOutput.java:218)
    2011-05-01 15:44:39 [SEVERE]    at com.matejdro.bukkit.monsterhunt.MonsterHunt.onEnable(MonsterHunt.java:47)
    2011-05-01 15:44:39 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-05-01 15:44:39 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
    2011-05-01 15:44:39 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    2011-05-01 15:44:39 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    2011-05-01 15:44:39 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    2011-05-01 15:44:39 [SEVERE]    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    2011-05-01 15:44:39 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    2011-05-01 15:44:39 [SEVERE]    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    2011-05-01 15:44:39 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    2011-05-01 15:44:39 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-01 15:44:39 [SEVERE] null loading MonsterHunt v1.0.2 (Is it up to date?)
    It's very strange since I was using mysql before 733, which worked perfectly.
    Nothing changed, except my CraftBukkit build.
     
  21. Offline

    Azukay

    Got the latest SQLversion.jar? Also check whether you're using sqlite or mysql. That would be my guess.
     
  22. Offline

    Todrias

    I'm getting the same error as lastmikoi, i have the latest mysql-connector-java-bin.jar... If I use sqlite it works fine.

    Is anyone else getting the "No suitable driver" error? Also, you get points 1hit before killing a monster.

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

    Ratchet

    Code:
    2011-05-02 17:52:38 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'huntstatus' in plugin MonsterHunt v1.0.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
        at com.matejdro.bukkit.monsterhunt.MonsterHunt.Message(MonsterHunt.java:89)
        at com.matejdro.bukkit.monsterhunt.MonsterHunt.onCommand(MonsterHunt.java:403)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    plugin just seems to have crashed and stopped working at some point.

    as for suggestions, i've been using this on my server and the players love it, but it could do with some improvements.

    - Allow us to set the time that the "hunt is starting soon" message appears, and possibly even have it come up again at another time so you can do like "30 seconds left to join the /hunt!" etc.

    - minimum required kills for each place would be good. sometimes I get one person that just gets 30 points and second and third place get like 5 points, and get rewarded for the guy who came first doing most of the work to get past the 'minimum points' mark
     
  24. Offline

    DarkAge


    OMG Dude, you are the people who shouldn't be replied to.

    The 2 questions you asked are right above yours. Please read the thread before posting.

    You can do that already
    SignUpPeriodTime: 1 - This is the number of minutes before the StartTime: that you set that you get the message.
     
  25. Offline

    valdark

    Maybe he got ninja'd
     
  26. Offline

    Todrias

    Yes, i know that getting points before killing a monster is a bukkit issue, i saw that post right after i posted. The "No suitable driver" error was asked, but not solved, please read the thread before posting :) .
     
  27. Offline

    DarkAge

    Here you go. Haha nah no problem man just helping out
    As you can see this was already mentioned and then verified by another few players. Now please tell me how can you ask the question "Is anyone else getting the "No suitable driver" error?" when right above your post that question is answered.

    I think you should read the thread before posting.... then re-read the thread again because you tried
    and failed...

    ;)
     
  28. Offline

    matejdro

    @Fortifier42 added to my list.

    @DarkAge can you set Debug=true? You should get some lines from console before error, please paste them here.

    @(Insert cool name here) no, there is no way and i have no idea how i can do this. I guess it's very complicated, so it probably won't be integrated into this plugin. But there is probably plugin around that can already do that.

    @Epolixa this is problem in bukkit. I can't do much about that.

    @triarry I'm just guessing here: try renaming it to global.config.txt, make changes and then rename back.

    @paully104 different extension is, because if you have world named global, it would use global.yml as world config instead of global one. Anyway, i will change extension to cfg in next release. Is that ok?

    @Azukaj
    Wow that's weird error. Do you have your mysql-connector-java-bin.jar inside bukkit folder (not lib)?

    I'm not 100% sure, but i think that messages with color codes need to be enclosed in quotes.

    @Puffs whoa. I will check it.

    @lastmikoi @Todrias do you have mysql-connector-java-bin.jar in bukkit folder (not lib) ?

    @Ratchet minimum kills suggestion noted.
     
  29. Offline

    lastmikoi

    When this error hapenned I copied the mysql-connector-java-bin.jar from lib folder to bukkit folder, didn't solved the problem.
    Now I got two mysql-connector-java-bin.jar in my folders x).
     
  30. Offline

    DarkAge

    Ran with Debug on. Here are the results:

    Code:
    16:03:17 [INFO] [MonsterHunt][Debug]extendday: null
    16:03:17 [INFO] [MonsterHunt][Debug]WillBe
    16:04:03 [INFO] [MonsterHunt][Debug]extendday: null
    16:04:03 [INFO] [MonsterHunt][Debug][MonterHunt][DEBUG - NEVEREND]Stop Time
    16:04:03 [INFO] [MonsterHunt][Debug] R0.1-1
    16:04:03 [WARNING] Task of 'MonsterHunt' generated an exception
    java.lang.NumberFormatException: For input string: ""
            at java.lang.NumberFormatException.forInputString(Unknown Source)
            at java.lang.Integer.parseInt(Unknown Source)
            at java.lang.Integer.valueOf(Unknown Source)
            at com.matejdro.bukkit.monsterhunt.Rewards.Reward(Rewards.java:142)
            at com.matejdro.bukkit.monsterhunt.Rewards.NormalReward(Rewards.java:67)
    
            at com.matejdro.bukkit.monsterhunt.Rewards.Reward(Rewards.java:28)
            at com.matejdro.bukkit.monsterhunt.MonsterHunt.stop(MonsterHunt.java:147
    )
            at com.matejdro.bukkit.monsterhunt.MonsterHunt$1.run(MonsterHunt.java:23
    0)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C
    raftScheduler.java:128)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:358)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    If I try R0-1 it works fine. These crash the server:
    R0.1-1
    R0.5-1 (Was in your wiki under RewardParameters, just not for iConomy)
    R0.1-1.0

    Basically it doesn't accept decimals.
     
  31. I'm getting the following error when rewards should be given to the players:
    Code:
    [WARNING] Task of 'MonsterHunt' generated an exception
    java.lang.NumberFormatException: For input string: ""
            at java.lang.NumberFormatException.forInputString(Unknown Source)
            at java.lang.Integer.parseInt(Unknown Source)
            at java.lang.Integer.valueOf(Unknown Source)
            at com.matejdro.bukkit.monsterhunt.Rewards.Reward(Rewards.java:142)
            at com.matejdro.bukkit.monsterhunt.Rewards.NormalReward(Rewards.java:67)
            at com.matejdro.bukkit.monsterhunt.Rewards.Reward(Rewards.java:28)
            at com.matejdro.bukkit.monsterhunt.MonsterHunt.stop(MonsterHunt.java:147)
            at com.matejdro.bukkit.monsterhunt.MonsterHunt$1.run(MonsterHunt.java:230)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:128)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:358)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    I think it has something to do with my Reward Parameters:
    Code:
    Rewards:
        RewardEveryone: false
    #10% Diamons, NumberOfItems=Score*0.5x-1.2x; 15% Netherrack,  NumberOfItems=Score*1x-1.5x; 35% 2xTNT; 40% Gunpowder  NumberOfItems=Score*1x-2x
        RewardParametersPlace1: :10 264 R0.5-1.2;:15 87 R1.0-1.5;:35 46 2;:40 289 R1.0-2.0
    #10% Obsidian, NumberOfItems==Score*0.5x-1.2x; 15% Redstone, NumberOfItems=Score*1x-1.5x; 35% 8xRails; 40% Iron NumberOfItems=Score*1x-2x
        RewardParametersPlace2: :10 49 R0.5-1.2;:15 331 R1.0-1.5;:35 66 8;:40 265 R1.0-2.0
    #10% Bed, NumberOfItems=Score*0.5x-1.2x; 15% Apple, NumberOfItems=Score*1x-1.5x; 35% 2xCookie; 40% Leather NumberOfItems=Score*1x-2x
        RewardParametersPlace3: :10 26 R0.5-1.2;:15 260 R1.0-1.5;:35 357 2;:40 334 R1.0-2.0
        NumberOfWinners: 3
        EnableRewardEveryonePermission: false
        RewardParametersEveryone: 264 1
        EnableReward: true
     

Share This Page