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

    Tjezee

    Works just fine for me except that if I hit an enemy it will already count as a kill before he is actually dead?
     
  3. Offline

    matejdro

    This is bug in bukkit and i can't do much about it.
     
  4. Offline

    moopcow

    I changed it so there's no space, same problem. Hunts aren't even starting normally. Please help, somebody, anybody.:mad:

    rei
    I deleted the old folder, it works now. :D

    Can u add an option for getting points for killing humans?

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

    moopcow

    Sorry, but another problem has sprung up. Whenever somebody wins, they don't get an award, even with a empty inventory. Can somebody help me?
     
  6. Offline

    matejdro

    Do you have EnableReward = true?
     
  7. Offline

    moopcow

    DOH, thanks XD
     
  8. Offline

    SXpepper

    ERROR:

    while scanning for the next token
    found character '\t' that cannot start any token
    in "<unicode string>", line 69, column 1:
    - 'monsterhunt.usercmd.hunt'

    WHAT DO I DO WITH THIS??
    ^
     
  9. Offline

    matejdro

    Do you use notepad++? Go to settings ---> TAB Settings and check "Replace by space". Then set permissions again.
     
  10. Offline

    masterkorp

    Hello, this seems a interesting plugin, but i cant make mysql to work, it always creates a sqlite database in the directory. Also the hunt doesn't start by itself, it works when i force it, and i need to stop it manually too, but it gives me an sql exepection.

    The mysql server is excluded since its working for another mods and other applications form this an other machines.


    here is my global.config
    Code:
    SkipDays: 0
    Value:
        Creeper: 3
        ZombiePigman: 3
        Spider: 2
        Giant: 1
        Wolf: 0
        Zombie: 1
        Slime: 1
        Skeleton: 1
        Ghast: 5
    MinimumPlayers: 2
    EnableSignup: true
    Database:
        MySQLConn: jdbc:mysql://178.239.56.40:3306/monsterhunt
        UseMySQL: true
        MySQLPassword: notmypassword
        MySQLUsername: minecraft
    Debug: false
    SkipToIfFailsToStart: -1
    Rewards:
        EnableReward: true
        NumberOfWinners: 3
        RewardParametersPlace1: 322 1
        RewardParametersPlace2: 264 3
        RewardParametersPlace3: 265 4
        EnableRewardEveryonePermission: false
        RewardEveryone: true
        RewardParametersEveryone: 45 3
    CountBows: true
    DeathPenalty: 30
    EnabledWorlds: world, netherworld
    SignUpPeriodTime: 2
    Messages:
        NoBowMessage: Your kill is not counted. Stop camping with your bow and get into the fight!
        MessageHuntStatusNotInvolvedLastHunt: You were not involved in last hunt in this world
        MessageHuntStatusLastScore: Your last score in this world was <Points> points
        MessageHuntStatusTimeReamining: Keep up the killing! You have only <Timeleft>% of the night left in this world!
        MessageHuntStatusNotActive: Hunt is currently not active anywhere
        StartMessage: '&2Monster Hunt have started in world <World>! Go kill those damn
            mobs!'
        MessageTooLateSignUp: Sorry, you are too late to sign up. More luck next time!
        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 2 mintues in <World>!
        FinishMessageNotEnoughPoints: Sun is rising, so monster Hunt is finished in <World>! Unfortunately nobody killed enough monsters, so there is no winner.
        FinishMessageNotEnoughPlayers: Sun is rising, so monster Hunt is finished in <World>! 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 in in world <World>. Now hurry and kill some monsters!
        KillMessage: You have got <MobValue> points from killing that <MobName>. You have <Points> points so far. Keep it up!
        iConomyCurrencyName: iConomy coin
        MessageHuntStatusHuntActive: Hunt is active in <Worlds>
        SignupBeforeHuntMessage: You have signed up for the next hunt in <World>!
        RewardMessage: Congratulations! You have received <Items>
        FinishMessageWinners: 'Sun is rising, so monster Hunt is finished in <World>!
            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)'
        MessageHuntStatusCurrentScore: Your current score in this world's hunt is <Points> points! Keep it up!
        MessageHuntStatusNoKills: You haven't killed any mob in this world's hunt yet. Hurry up!
        DeathMessage: You have died, so your Monster Hunt score is reduced by 30%. Be more careful next time!
    MinimumPoints: 1
    StartChance: 100
    OnlyCountMobsSpawnedOutside: true
    TellTime: true
    EndTime: 23600
    EnableHighScores: true
    StartTime: 13000
    
     
  11. Offline

    Rhythmatic

    Code:
    2011-04-18 21:21:10 [SEVERE] java.lang.NumberFormatException: For input string: ""
    2011-04-18 21:21:10 [SEVERE]     at java.lang.NumberFormatException.forInputString(Unknown Source)
    2011-04-18 21:21:10 [SEVERE]     at java.lang.Integer.parseInt(Unknown Source)
    2011-04-18 21:21:10 [SEVERE]     at java.lang.Integer.valueOf(Unknown Source)
    2011-04-18 21:21:10 [SEVERE]     at com.matejdro.bukkit.monsterhunt.Rewards.Reward(Rewards.java:141)
    2011-04-18 21:21:10 [SEVERE]     at com.matejdro.bukkit.monsterhunt.Rewards.NormalReward(Rewards.java:67)
    2011-04-18 21:21:10 [SEVERE]     at com.matejdro.bukkit.monsterhunt.Rewards.Reward(Rewards.java:28)
    2011-04-18 21:21:10 [SEVERE]     at com.matejdro.bukkit.monsterhunt.MonsterHunt.stop(MonsterHunt.java:147)
    2011-04-18 21:21:10 [SEVERE]     at com.matejdro.bukkit.monsterhunt.MonsterHunt$1.run(MonsterHunt.java:230)
    2011-04-18 21:21:10 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    2011-04-18 21:21:10 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    2011-04-18 21:21:10 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-18 21:21:10 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-18 21:21:10 [SEVERE] Unexpected exception
    Code:
    SkipDays: 0
    Value:
        Creeper: 5
        ZombiePigman: 0
        Spider: 2
        Giant: 0
        Wolf: 0
        Zombie: 1
        Slime: 1
        Skeleton: 3
        Ghast: 0
    MinimumPlayers: 2
    EnableSignup: true
    Database:
        MySQLConn: jdbc:mysql://nottheurl:3306/minecraft
        UseMySQL: true
        MySQLPassword: notthepassword
        MySQLUsername: minecraft
    Debug: false
    SkipToIfFailsToStart: -1
    Rewards:
        RewardEveryone: true
        RewardParametersPlace2: 354 1, 357 8
        RewardParametersPlace3: 354 1, 357 8
        NumberOfWinners: 3
        RewardParametersPlace1: :1 302 R0.01;:1 303 R0.01;:1 304 R0.01;:1 305 R0.01;:10 264 R0.02-0.08;:25 351:4 R0.05-0.2;:61 265 R0.06-0.15
        EnableRewardEveryonePermission: false
        RewardParametersEveryone: 262 R1.5-3.5
        EnableReward: true
    CountBows: true
    DeathPenalty: 0
    EnabledWorlds: world
    SignUpPeriodTime: 3
    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 in this world.
        MessageHuntStatusLastScore: Your last score in this world was <Points> points.
        MessageHuntStatusTimeReamining: Keep up the killing! You have only <Timeleft>% of the night left in this world!
        MessageHuntStatusNotActive: Hunt is currently not active anywhere.
        StartMessage: '&2The hunt has begun in the <World>!'
        MessageTooLateSignUp: Sorry, you are too late to sign up. Be quicker about it next time!
        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 minutes in the <World>!
        FinishMessageNotEnoughPoints: Sun is rising, so monster Hunt is finished in the <World>! Unfortunately nobody killed enough monsters, so there is no winner.
        FinishMessageNotEnoughPlayers: Sun is rising, so monster Hunt is finished in the <World>! 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 in in world <World>. Now hurry and kill some monsters!
        KillMessage: You have got <MobValue> points from killing that <MobName>. You have <Points> points so far. Keep it up!
        iConomyCurrencyName: credit
        MessageHuntStatusHuntActive: Hunt is active in <Worlds>
        SignupBeforeHuntMessage: You have signed up for the next hunt in world <World>!
        RewardMessage: Congratulations! You have received <Items>
        FinishMessageWinners: 'Sun is rising, so monster Hunt is finished in world <World>!
            Winners of today''s match are: [NEWLINE] Champion:  <NamesPlace1> (<PointsPlace1>
            points) [NEWLINE] 2nd place: <NamesPlace2> (<PointsPlace2> points) [NEWLINE]
            3rd place: <NamesPlace3> (<PointsPlace3> points)'
        MessageHuntStatusCurrentScore: Your current score in this world's hunt is <Points> points! Keep it up!
        MessageHuntStatusNoKills: You haven't killed any mob in this world's hunt yet. Hurry up!
        DeathMessage: You have been eaten by a grue! Don't walk around in pitch blackness!
    MinimumPoints: 25
    StartChance: 100
    OnlyCountMobsSpawnedOutside: false
    TellTime: true
    EndTime: 22000
    EnableHighScores: true
    StartTime: 14000
    I know this error is from the list of rewards, so it must be a syntax error. Where is it?

    EDIT1: It could, perhaps, be triggered when the recipient has a full inventory.
     
  12. Offline

    matejdro

    Do not use space after comma (,).

    So:

    @masterkorp i will check it.
     
  13. Offline

    noobcrafter

    How do I go about giving the winner...
    money + items(with percentage)

    0 1000,:10 264 10;:10 266 1;:80 3 64
    is that right?

    great fun plugin btw!
     
  14. Offline

    masterkorp

    @matejdro i am using you other plugin Jail and it works like a charm with mysql. Are you using the same class to abstarct the database connection ? Do you a public repo for the code, i am not java a expert but i can surely give you a hand
     
  15. Offline

    matejdro

    @noobcrafter what exactly do you want?

    @masterkorp yes database code is the same. But i suspect that something is wrong in configuration code. Can you try using "UseMySql" instead of "UseMySQL"?
     
  16. Offline

    masterkorp

    @matejdro its the same, it still creates tha sqlite database and doesn't connet at all to the mysql db.
     
  17. Offline

    Rhythmatic

    Feature Request: Allow players to combine their scores in a Team vs Team hunt.
     
  18. Offline

    noobcrafter

    bump
     
  19. Offline

    matejdro

    bump

    @Rhythmatic sounds nice. Team Monster Hunt.
     
  20. Offline

    DarkAge

    Hello,

    Just have 2 problems here:

    1 - I seem to be getting an error that crashes the server when the hunt tries to give out the prizes.

    Code:
    00:55:28 [SEVERE] java.lang.NumberFormatException: For input string: ""
    00:55:28 [SEVERE]       at java.lang.NumberFormatException.forInputString(Unknow
    n Source)
    00:55:28 [SEVERE]       at java.lang.Integer.parseInt(Unknown Source)
    00:55:28 [SEVERE]       at java.lang.Integer.valueOf(Unknown Source)
    00:55:28 [SEVERE]       at com.matejdro.bukkit.monsterhunt.Rewards.Reward(Reward
    s.java:141)
    00:55:28 [SEVERE]       at com.matejdro.bukkit.monsterhunt.Rewards.NormalReward(
    Rewards.java:67)
    00:55:28 [SEVERE]       at com.matejdro.bukkit.monsterhunt.Rewards.Reward(Reward
    s.java:28)
    00:55:28 [SEVERE]       at com.matejdro.bukkit.monsterhunt.MonsterHunt.stop(Mons
    terHunt.java:147)
    00:55:28 [SEVERE]       at com.matejdro.bukkit.monsterhunt.MonsterHunt$1.run(Mon
    sterHunt.java:230)
    00:55:28 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainT
    hreadHeartbeat(CraftScheduler.java:122)
    00:55:28 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:356)
    00:55:28 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:283)
    00:55:28 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:375)
    00:55:28 [SEVERE] Unexpected 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:141)
            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:122)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Just to be sure does your iConomy support also support Relative Reward with Percentages?
    Here is my reward config
    Code:
    Rewards:
        RewardEveryone: false
        RewardParametersPlace2: 0 R1-1.5
        RewardParametersPlace3: 0 R1
        NumberOfWinners: 3
        RewardParametersPlace1: :95 0 R1-2;:5 0 R1-2,264 1-2
        EnableRewardEveryonePermission: false
        RewardParametersEveryone: 264 1-1
        EnableReward: true
    What I am trying to do is reward the 1st place winner with 95% chance to get iConomy money that is relative to their points by up to 2 times OR 5% chance to get both iConomy with Relative Reward + 1-2 diamonds. So basically 1st place must always get money but have a small chance to get money + item.

    2 - I have noticed something about the configurable messages. Don't know how to explain this clearly so I will give example.

    Code:
    KillMessage: '&6Earned &b<MobValue>&6 points for killing &b<MobName>&6.  You have &b<Points>&6 points in total.'
    this prints out a 2 line message in minecraft when there is space for it to fit into 1 line. I assume somehow all the <>& take up the character limit to print to mc but doesn't show it. So you end up with half a message on a line in Minecraft. Untitled.jpg
    The messages were suppose to carry on in the white block area instead of creating them on another line.

    Also I noticed it can take a while to customize the messages to have colour so I am uploading my configured config file that already has the colour codes working correctly as some lines seem to appear not full coloured. You can use the config and just replace the &X with whatever colour you want.

    On another note very nice plugin :) Although what the other guy mention about having pvp support sounds interesting. A basic idea would be to have the event run just like hunt except you type /pvp and you get points (or frags) for killing people that have also participated in the event.

    Also if you could include a /hunt players command that shows players that are participating in the event.
     

    Attached Files:

  21. Offline

    matejdro

    Problem 1:

    Problem 2:

    i think you have figured it out already. I guess that it calculated that all those words with color tags don't fit into first line and got into next line. Client will naturally not display these tags and it looks like wasted space.
     
  22. Offline

    DarkAge

    Thanks for the fix. It's working now.

    EDIT: Can you make a "broadcasttime" option? One that broadcasts the % of night remaining at a certain interval. So you wouldn't have to /huntstatus to check the time.

    Also the /huntscore message is not customizable (unless I missed it somewhere)

    And... a /hunttop would be nice :D It shows top 5 players' points
     
  23. Offline

    Fortifier42

    Is it possible for this plugin to have BOSEconomy Support?
     
  24. Offline

    Shasharala

    Appears to work fine in build #733.
     
  25. Offline

    RebornSheep

    please make this plugin support iConomy
     
  26. Offline

    fneyret

  27. Offline

    RebornSheep

  28. Offline

    DarkAge

    Hi there again. I seem to be getting another problem with Relative Rewards with iConomy :p
    Code:
    16:12:24 [SEVERE] java.lang.NumberFormatException: For input string: ""
    16:12:24 [SEVERE]       at java.lang.NumberFormatException.forInputString(Unknow
    n Source)
    16:12:24 [SEVERE]       at java.lang.Integer.parseInt(Unknown Source)
    16:12:24 [SEVERE]       at java.lang.Integer.valueOf(Unknown Source)
    16:12:24 [SEVERE]       at com.matejdro.bukkit.monsterhunt.Rewards.Reward(Reward
    s.java:142)
    16:12:24 [SEVERE]       at com.matejdro.bukkit.monsterhunt.Rewards.NormalReward(
    Rewards.java:67)
    16:12:24 [SEVERE]       at com.matejdro.bukkit.monsterhunt.Rewards.Reward(Reward
    s.java:28)
    16:12:24 [SEVERE]       at com.matejdro.bukkit.monsterhunt.MonsterHunt.stop(Mons
    terHunt.java:147)
    16:12:24 [SEVERE]       at com.matejdro.bukkit.monsterhunt.MonsterHunt$1.run(Mon
    sterHunt.java:230)
    16:12:24 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainT
    hreadHeartbeat(CraftScheduler.java:122)
    16:12:24 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:356)
    16:12:24 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:283)
    16:12:24 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:375)
    16:12:24 [SEVERE] Unexpected 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:122)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Looking at
    Code:
    16:12:24 [SEVERE]       at java.lang.Integer.parseInt(Unknown Source)
    I assume it's trying to parse the String into an Integer while my Relative Reward is a Double.

    Here's the Reward im testing: RewardParametersPlace1: :60 0 R0.1-1;:40 0 R0.1-1,264 1-2
     
  29. Offline

    h3adj0ka

    i cant get the reward to work if i make reward everyone enabled no one can sign up for the hunt why does it do this?
     
  30. Offline

    DarkAge

    Maybe you have

    EnableSignup: false ?

    Do the players have the monsterhunt.usercmd.hunt permission node?
     
  31. Sorry if this was already said but i'm to lazy to read all 24 pages. Can you make it so that there is an increased rate of monsters spawning during the hunt?
     

Share This Page