MobHunting

MobHunting

114k Downloads

CrackShot SUPPORT :D PLEASE!

chillerkraft opened this issue ยท 18 comments

commented

i'm shocked this hasn't been requested... Or maybe you decided not to do it?
The final straw was when I got a bonus for unarmed combat. There needs to be crackshot support in mobhunting. Please! You might also need to support CrackShotPlus btw, not sure but here's the link to the 2 plugins
https://dev.bukkit.org/projects/crackshot
https://www.spigotmc.org/resources/%E2%96%91-crackshotplus-%E2%96%91-1-8-x-1-12-x-%E2%96%91.18085/

commented

So... I found CrackShot.jar and the API, so I have started the integration/support.

It only Basic support at the moment but I think I got the bonus for Brawler (unarmed combat) removed, but I need your help testing.

I dont know CrackShot - so if you have more ideas to do/test, please tell me. Should the reward be smaller when i CrackShot weapon was used?

Please enable debug using /mh debug when you help me test, and give me the kill information in the console output, when you find a bug.

Could I have a copy of your default-configuration files with working SOUNDS?

commented
commented

Im now able to check which CrackShot Weapon was used (see debug info)

[17:16:50 INFO]: [MobHunting][Debug] ======================== New kill ==========================
[17:16:50 INFO]: [MobHunting][Debug] Rocologo killed a Spider (Minecraft) using a Bazooka
[17:16:50 INFO]: [MobHunting][Debug] Permission 'mobhunting.mobs.*' or 'mobhunting.mobs.SPIDER' not set, defaulting to True.
[17:16:50 INFO]: [MobHunting][Debug] Basic Prize=$10 for killing a Spider
[17:16:50 INFO]: [MobHunting][Debug] Checking if player is grinding within a range of 15.0 blocks
[17:16:50 INFO]: [MobHunting][Debug] Last Kill Area Center was null. DampendKills reset to 0
[17:16:50 INFO]: [MobHunting][Debug] Multiplier: Rank = 1.05
[17:16:50 INFO]: [MobHunting][Debug] Multiplier: Sneaky! = 2.0
[17:16:50 INFO]: [MobHunting][Debug] Killstreak=1, level=0, multiplier=1.0
[17:16:50 INFO]: [MobHunting][Debug] RecordAchievement: hunting-level5-spider has 1079 kills
[17:16:50 INFO]: [MobHunting][Debug] RecordKill: Rocologo killed a Spider (Minecraft) Cash=$21
[17:16:50 INFO]: [MobHunting][Debug] $21 was dropped on the ground as item SKULL (# of rewards=1)
[17:16:50 INFO]: [MobHunting][Debug] Command will be run if chance: 0.5 > 0.524686542074985 (random number)
[17:16:50 INFO]: [MobHunting][Debug] ======================= kill ended (37)=====================

commented

Try build 401 or newer

commented

seems fine. im not really able to test if it gives that bonus still or not but i trust you. i'll let you know if i see anything in the future and run the debug for you if possible..
thanks so much! awesome work! :)

commented

looked in console, saw lots of errors
https://pastebin.com/JEEaKhXd here's one

commented

there doesn't seem to be any pattern of causes in the console before all these errors.

commented

Stupid NPE bug. I forgot to test for null...

This should be fixed in B404
http://jenkins.lindegaard.one:8180/job/MobHunting/

commented

Okay... I tried to do some more testing and bug fixing, using my Bazooka :-)

Please test build 406 or newer
https://fractal.lindegaard.one:8181/job/MobHunting/

And let me see the debug information in the console, if you find bugs.

commented

https://pastebin.com/NuyMqHvf

i think im still noticing unarmed stuff in the debug here

commented

Yes, I can see you do damage with an Ak.... but when the spider dies it's not detected. Hmm.

Can I have your working weapon files so I can do better testing?

commented

my weapons only work with crackshotplus

commented

I have added a "CrackShot" multiplier bonus/penalty in build 408
https://fractal.lindegaard.one:8181/job/MobHunting/

Default it is a penalty = x 0.7 because it is easier to kill the mobs using CrackShot.

What do you think about this?

commented

sounds good
ill give that a try
thanks!

commented

Dont you Build 407-410. Go directly to Build 411. The others is causing big lag!!!

Build 411 is lag free on my main server.
https://fractal.lindegaard.one:8181/job/MobHunting/

commented

thankyou

commented

When you say go I will make an official release of V4.9.5 ?

commented

V4.9.5 Is released. Please create a nerw ticket if you find any bugs or have a suggestion for the CrackShot support.