MobHunting

MobHunting

114k Downloads

Mob heads lore

Sikatsu opened this issue · 15 comments

commented

Hmm, when they do [item] using a mobhunting head, they see a lot of random information. Not sure if that can be changed, so this is more like a question. Example:

image

commented

Any update on this one?

commented

ProtocolLib Should Remove this?

commented

I do have protocollib installed. When I hover over the head in my inventory, only ''Mobhunting Reward'' is displayed, but when using [item] from the ShowItem plugin, the hidden stuff gets shown.

commented

I need to try the plugin on my test server to fully understand but I'm of to bed now.

commented

Understood

commented

Hmm... its this a plugin or what do you do when you see this? I con only remove this if it is an action supported by ProtocolLib and this is hard to check

https://ci.dmulloy2.net/job/ProtocolLib/javadoc/overview-summary.html

commented

Yeah, its the plugin ShowItem, when you use [item] in the chat it will then display the hidden lines.
Not sure what else I can tell you, Im not a developer haha

commented

I will look into what I can do, or perhaps the developer of ShowItem. Will let you know, this is not too important anyway. Might be other issues on the github with a higher priority ^^

commented

Its a paid plugin. I cant test this plugin.

commented

You could try this in the ShowItem config.yml

  # Block items with certain strings in the lore from getting shown (case-insensitive)
  # r= prefix indicates that the string should be handled as a regex
  lore: []
  # - "name 1"
  # - "r=name \\d" 
commented

Or you could ask the guy to add support for mu plugin :-) It would probaly be easy for him to remove the lines starting with "Hidden:"

commented
commented

The issue seems to be due to MobHunting not filtering out the hidden tags from the item component chat packet which ShowItem uses to display it. Filtering the PacketType.Play.Client.CHAT packet should be able to handle that.