When using /tellraw's insertion tag on a server, nothing happens.
While on server:
/tellraw @a {"text":"Hello!","insertion":"Hello there."}
Shift + Click does nothing
While in single player:
/tellraw @a {"text":"Hello!","insertion":"Hello there."}
Shift + Click works.
In fact, it works on L.A.N. worlds! So I don't have any idea of how the server is a problem.
Linked issues
is duplicated by 1
Comments 12
The reason for this is that the method public boolean isEmpty()
of the net.minecraft.util.ChatStyle
class (MCP 1.8 names) does not test if the insertion
is null
as well.
/**
* Whether or not this style is empty (inherits everything from the parent).
*/
public boolean isEmpty()
{
// Replaced the following line to include "insertion"
// return this.bold == null && this.italic == null && this.strikethrough == null && this.underlined == null && this.obfuscated == null && this.color == null && this.chatClickEvent == null && this.chatHoverEvent == null;
return this.bold == null && this.italic == null && this.strikethrough == null && this.underlined == null && this.obfuscated == null && this.color == null && this.chatClickEvent == null && this.chatHoverEvent == null && this.insertion == null;
}
It works. Thanks to the friendly mods on the issue tracker and of course the mojang team! This feature is very important to me.
Tested with 16w21b on vanilla multiplayer server.
Whoops! I typed it wrong. It's /tellraw @p {text:"Hello!",insertion:"Hello there."}