MobHunting

MobHunting

114k Downloads

Can't get mobhunting heads off my head

Sikatsu opened this issue · 44 comments

commented

When a player puts a mobhunting head on his head, he is unable to get it off. It seems like there is some sort of curse of binding enchant on it somehow.

commented

You can use essentials /hat remove

But the bug is fixed in 7.5.1, so players cant move the bag to the head using shift + click

commented

image
Can just put it on my head, I either drag it or shift + click..

commented

What?? I know I tested without BagOfGold

commented

I spawned a head in with /mh head give Sikatsu pufferfish

Since the player that reported it also had a pufferfish head.

commented

I mean, I thought I had a bypass so even deopped and set myself to a player rank, but I can just do it. o.O

commented

CAN'T reproduce :-(

commented

I can reproduce this???? Very odd....

commented

That is really odd, what am I doing differently?

commented

Yes tell me :-D

I have tried i both creative and survival and from both player inventory and from the hotbar. With both normal moving with the mouse and with shift-click.

commented

All combinations

commented

It's not just me, everyone is just able to put it on their head :(

commented

But this it suddenly a hard one to solve :-(

commented

No worries I believe you can do it. I think we have to look after differences between our servers. Plugins and so.

commented

Surprised if it would be a plugin conflict actually. I am running build 101 of paper.

image

commented

Im running SpigotMC

Hmm

commented

I will try to install HeadDatabase

commented

Doubt it is a plugin conflict..

commented

I don't use essentials haha, but thanks for fixing it!

commented

Okay, but I dont know how to removed the head without Essentials ? I hope you have found a way then.

commented

Well dying worked haha ^^

I have to see with the new update if this is fixed!

commented

@Rocologo Indeed, this is a weird issue. For me I can not reproduce it for the life of me, but players definitely have this issue.

A player made a video of it.

https://www.dropbox.com/s/9vk3jz24xemogzt/Minecraft_%201.16.1%20-%20Multiplayer%20%283rd-party%20Server%29%202020-07-20%2022-47-41.mp4?dl=0

commented

Players also mention this doesn't happen ALWAYS, but he was able to get it to work the first time I asked to reproduce it...

commented

Happens to heads with this lore
image

Not with these
image

commented

@Rocologo Turns out shift + click indeed blocks the head from wearing. Just dragging it the normal way still works though, and I can indeed not get the head off anymore..

image

commented

Being able to wear heads is a normal Minecraft thing. I’ve been meaning to write a bug report about the heads not staying on— you put them on and they pop back off, but had not yet tested enough to be sure which plugin caused the issue.

commented

It is a normal thing, but with the mobhunting mobheads it's bugging out. You can get them on, but you can not get them off your head without using a command like /hat.

commented

Did you reproduce it with headdatabase installed?

commented

I only got to my computer today. I will look at this issue now.

commented

I cant get a head without the lore "MobHunting Reward" do you know how to get that one. The head might be broken, since the Lore is missing.

commented

I think those are from minecraft itself? Not sure actually, but it happens to the one with mobhunting lore.

commented

@Rocologo Any news regarding this?

commented

Im sorry I have had very little time to take care of my plugins, but today I finally got a break through!!!

I found out how the players were able to place a head in the helmet slot! The problem was that when a player Dragged the Bag across serval slots an event called "InventoryDragEvent" was called, and I didnt know that event, so it was unhandled. This made me discover yet another unhandled event "InventoryMoveItemEvent" and these two unhandled events is the root cause to many of the bugs I have been fighting where the balance did not calculate correct.

So now Im taking care of both these events and now both dragging and balance seems to work :-)

Please test 1073

https://fractal.lindegaard.one:8181/job/MobHunting/1073/

and let me know if you still are able to place the bag in the helmet slot. I hope not :-D

commented

I can shift + click or drag it into the helmet slot on 1075.

But, I can also seem to get it off now unlike before. So I assume this is fixed..?

image

commented

Is this permission based?

image

I can put a bag of gold on my head with shift + click or dragging..
Players can not shift + click a normal mobhunting head, it will just return to the place it was before..

commented

Please be VERY specific in what you are doing? Because i tested this today and i could not move a head into the helmet slot.

commented

And no. There is no permission

commented

I can shift + click to get the mobhunting head OR the bag of gold in the helmet slot, as well for dragging it.

Players can drag it into the helmet slot, but not shift + click, when they shift + click, it will move for a split second to the helmet slot and then return in the slot it was in..

commented

Ahh, but it is allowed to wear heads, but not the Bags. I think this is like Minecraft Vanilla, that you can wear heads?

And yes, yesterday I decided that I would make it possible to remove the heads from the helmet slot - no matter it should not be possible to place the Bag in the slot. And it was actually this which made me find the "unknown" event. Because I could now "speed click" on the slot and then I discovered that I SOMETIME could place the bag in the slot, but now when i did it slowly.

So yes - I think this is fixed now.

I will make a release now, because this is a major bug which is fixed now. (The missing event).

Im very happy about your help and your patience. Thank You!

commented

This should be fixedin build 1079

https://fractal.lindegaard.one:8181/job/MobHunting/

Im sorry I did get this in to V7.5.4

commented

So is this now blocked, or can we just get it off like it should? haha

commented

I have tested shift+click (MOVE_TO_OTHER_INVENTORY) and I discovered that it was possible to SWAP a bag into the Helmet slot, if there was already a HEAD in the slot.

BAGS is blocked. HEADS is not.

I hope. :-)

commented

Im not blocking to pull off Bags :-)

commented

Gotch'a! We don't really use bags, and heads I think were already no longer a problem. Thanks though!

Keep up the good work.