mojira.dev
MC-82425

Insertion tag (tell raw) won't work on servers

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.


Marcono claims to know the reason.

Linked issues

Comments 12

Whoops! I typed it wrong. It's /tellraw @p {text:"Hello!",insertion:"Hello there."}

I tried it with Minecraft Server Vanilla v1.8 on Windows 7 64bit

This bug exists.

@unknown you have to confirm it for the most recent versions, so either 1.8.9 or / and 15w51b

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;
}
2 more comments

Confirmed for 16w06a.

Could someone who got a server please confirm it's fixed?
Thank you }=)

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.

Confirmed fix for 16w21b.

@unknown @unknown Thank you, you two! }=)

W. Powe

Erik Broes

Community Consensus

Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 1.8.9, Minecraft 15w51b, Minecraft 16w02a, Minecraft 16w06a, Minecraft 1.9.1, Minecraft 1.9.2

Minecraft 16w21a

Retrieved