MobHunting

MobHunting

114k Downloads

drop-money-on-ground multiplication bug

Solzay opened this issue ยท 10 comments

commented

When you set drop-money-on-ground to true, you will get a message saying the mob has dropped the correct amount of reward, but when picked up, it will be the amount multiplied by the amount.

Eg.

Drop of 1 gives you 1x1=1
Drop of 2 gives you 2x2=4
Drop of 3 gives you 3x3=9
etc....

Debug Message:

[21:05:25 INFO]: [MobHunting][Debug] Solzay killed a Zombie (Minecraft)
[21:05:25 INFO]: [MobHunting][Debug] Permission 'mobhunting.mobs.*' or 'mobhunting.mobs.ZOMBIE' not set, defaulting to True.
[21:05:25 INFO]: [MobHunting][Debug] Basic Prize=2 Bitts for killing a Zombie
[21:05:25 INFO]: [MobHunting][Debug] Checking if player is grinding within a range of 15.0 blocks
[21:05:25 INFO]: [MobHunting][Debug] DampendKills=1
[21:05:25 INFO]: [MobHunting][Debug] Solzay has no Rank Multiplier
[21:05:25 INFO]: [MobHunting][Debug] Killstreak=3, level=0, multiplier=1.0
[21:05:25 INFO]: [MobHunting][Debug] RecordAchievement: hunting-level1-zombie has 21 kills
[21:05:25 INFO]: [MobHunting][Debug] 2 Bitts was dropped on the ground as item ITEM (# of rewards=0)
[21:05:25 INFO]: [MobHunting][Debug] RecordKill: Solzay killed a Zombie (Minecraft) Cash=2 Bitts
[21:05:25 INFO]: [MobHunting][Debug] Command will be run if chance: 0.01 > 0.003417154195095029 (random number)
[21:05:25 INFO]: [MobHunting][Debug] Command to be run:mobhunt head drop zombie 86 69 334 world
[21:05:25 INFO]: [MobHunting][Debug] Description to be send:A zombie skull has dropped!
[21:05:25 INFO]: [MobHunting][Debug] ======================= kill ended (36)=====================
[21:05:26 INFO]: [MobHunting][Debug] Rewards merged - new value=4 Bitts
[21:05:48 INFO]: [MobHunting][Debug] Refreshed 0 leaderboards.
[21:06:17 INFO]: [MobHunting][Debug] Solzay picked up 4 Bitts money. (# of rewards left=0)
[21:06:24 INFO]: [MobHunting][Debug] Saving PlayerStats to Database.
[21:06:24 INFO]: [MobHunting][Debug] Saved.

commented

Please enable debug with /mh debug and then kill one mob and show me the outout in the console?

commented

Sorry, just did that before I saw your response. Edited my original message above with the info.

commented

Are you on v4.8.1?

commented

4.8.2

commented

It looks like i some how drop to many items

Rewards merged - new value=4 Bitts

I will have to look at this on my test server. Unfortunately i dont have time to do this until tonight.

commented

No problem, just glad i could bring it to your attention. Hopefully it's an easy fix.

commented

I cant replicate the problem, it worked on my test server. Please give me a copy of your config.yml

commented

Fixed in V4.8.4 :-)

commented

I had to attach it as a txt because github doesn't support attaching yml.

As a temporary fix I rolled back to version 4.7.7, the version right before you put in the code that combines reward drops, and it appears to work as intended. Also, it should be noted that I'm using Gringotts integration.

config.yml.txt

commented

Ahhh, its something with Gringotts. I didnt use gringotts when i tested this on my test server. I will do so tomorrow, im going to bed now.