MyPet Error
Sikatsu opened this issue ยท 39 comments
I need ALL the lines including the ones after "INFO Caused by: java.lang.NullPointerException" the last lines contain the linenumbers in my code where the plugin failed, so I am missing the most important part :-)
Same bug #214
Whoops, I didn't see the message from 3 days ago. Didn't see the error anymore ever since..
I use the premium MyPet version, latest devbuild.
I don't have access to MyPet Premium 2.3.4. I can only test with 2.2.9 & 2.3.0-SNAPSHOT and I cant replicate the error.
I'm not sure the bug is because of MobHunting either.
In fact this text line
Caused by: java.lang.NullPointerException [12:59:45 ERROR]: Could not pass event EntityDeathEvent to MobHunting v4.7.6 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.11.jar:git-Spigot-6f7aabf-c8ff651] at
Indicates that the error is in spigot-1.11..jar, so I would recommend that you keep spigot upgraded.
I always run the latest spigot version, as I update nearly every night. So that shouldn't be the problem, though I didn't see the error again ever since I reported it here.
There it is, a full error log: https://pastebin.com/Q2qndEVF
I wasn't online at that moment, just saw the error spamming when I checked on my phone.
But I guess they are using the pet train farm with 2-3 people to train their pet.
Thank you for the full error text. I now know where the problem is, but please enable debug and give me the the debug kill information. I can see its assisted kill, but i cant tell who is the killer and who is assister. The debug information will help me to understand this
Im sorry have been on vacation and very busy afterwards. I looked at your log, but I need the debug information before the error, from the line
======================= new kill =========================
I understand, sorry. Just my console is becoming useless currently.
Full, extended error log: https://pastebin.com/0fp8phsj
Sorry for being slow on this one.... but I finally found some time for doing some development :-)
please test build 345 or newer:
@Rocologo Not fixed. Error has changed though: https://pastebin.com/vZdqFkJ1
Referanced this issue, but not fixed I suppose? @Rocologo
You were a bit too fast :-)
I hope it is fixed now in build 348, Im testing in this moment, to see if I can find more bugs.
Not fixed it seems: https://pastebin.com/AhbqAU7S
With debug: https://pastebin.com/ZUq0veWd
:-( sorry for these annoying bugs :-( Thank you for you patience!!! The debug information helped me.
Its VERY hard to test all aspects of this plugin. There are so many many combinations because of all the integrations I have made. In this case it was some kind of assisted kill - where MyPet was the killer and the player was the assister.... i think :-)
Anyway please try build 349
https://fractal.lindegaard.one:8181/job/MobHunting/
That's fine! Hopefully we can get it fixed.
Hmm, as the MyPet is on ''Farm'' mode, all Eroxx99 and I were doing is flying afk in the air while our pets are killing mobs. We didn't hit the mobs at all. Let me test the new version now.
Okay, if the bug is not solved now, then I will try to put MyPet into Farm and fly AFK like you did, so reproduce the bug.
Another thing: You could argue that you should not get rewards at all, when you were flying AFK. The rules is usually No Risk - No Money :-) What do you think?
I have to go to bed now. If the bug is solved, I will make an release in the morning.
Agree, but it's just for pet training. Actually mobhunting isn't doing anything except for giving these errors.
Gonna test the new version now! Will let you know in a moment, goodnight!
So far so good, didn't see the error yet. Though sometimes money is dropping. We are in fly and not hitting mobs. (http://prntscr.com/eyw16b)
I think you wil get a half reward when your pet is killing mobs also when you dont hit the mob, unless assist is disabled in config.yml
It the rewards drop close they will merge into one item and the values will be added.
I see, but they are mobs from a mobspawner. So money shouldn't drop at all, atleast that's how I've set it up.
So far so good, still.
@Rocologo Oh come on... I just woke up and it's spamming again!
I found the bug. Please test build 354
I honestly don't know how to reproduce it this time, but earlier today it kept on spamming.
Nevermind, it still spams.
I know how to, its when the Pet is farmning. (when the the pet kills a mob without the player hitting on the mob) Im close solve the issue.
I think I got it this time. Please try build 355 https://fractal.lindegaard.one:8181/job/MobHunting/