-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending components of an item in HoverEvent is not possible #3688
Comments
cc/ @2008Choco |
I'm unsure how you want to approach this now, but An easily reproducible command is the followng:
EDIT: We could probably solve this in a really ugly way for Bukkit's own personal use by introducing a HoverEventProvider interface and having ItemStack implement it, but that doesn't solve the issue of supporting that in BungeeCord. It's also probably still annoying to implement in Bukkit. CraftBukkit would be fine, Bukkit, not so much. Immediate hacky solution I can think of at least is to serialize everything down and then manually concatenate the serialized string into the serialized JSON where |
As it is a problem in (de-)serialization i have these suggestions:
|
I think this is fine, you put the interface in BungeeCord and have it return |
I think maybe instead we have it return a public interface HoverEventProvider {
public HoverEvent getAsHoverEvent(); // or just asHoverEvent()
} |
Sorry yeah that probably makes more sense |
Bungeecord version
BungeeCord-Bootstrap:1.20-R0.3-SNAPSHOT:52ab21b:1844
Server version
No response
Client version
1.20.6
Bungeecord plugins
n/a
The bug
When creating a HoverEvent with a Item content the components of that item are not shown on the client (this also applies to spigot) I tried this on spigot with
(i also tried stack.getItemMeta().getAsComponentString()) - both don't work, only the item type is shown but no enchantments, custom name or whatever. It was working in 1.20.4.
Log output (links)
No response
Checking
The text was updated successfully, but these errors were encountered: