The bug
When giving an effect to an op using the /effect give command all ops are kicked from the server. The kick message is:
Internal Exception: io.netty.handler.codec.DecoderException:com.google.gson.JsonParseException: Don't know how to return {} into a Component
How to reproduce
You have to be opped on the server:
/effect give {playerName} minecraft:{effectName}
this then kicks all ops who are on the server but not non-opped members. This also happens if you include the seconds/amplifier/hide particles.
Linked issues
is duplicated by 7
Comments 7
Can confirm for 1.13-pre5
Opening the 1.13-pre5 server, giving op and running "/effect give @a minecraft:absorption" will kick an op.
Running the same command on console will return "An unexpected error occurred trying to execute that command" but will work.
Oops! My mistake sorry 😛. However, I still can't reproduce this issue in a server, but I can in a single player. Could you give more details about the "server" please?
I downloaded from https://minecraft.net/pt-br/article/minecraft-113-pre-release the server.jar, opened, changed the eula.txt to true, opened again and then joined localhost on Minecraft. Then I just "/op <me>" and tried the command "/effect give @a minecraft:absorption" in game.
Maybe it's an op thing because non-op cannot use /effect. I cannot test it right now with more than one op, maybe it's just a return bug from the command.
I have the same bug, it happens when you give an effect to other entities as well.
I tried:
   /effect give @e[type=pig,limit=50] glowing
   /effect give @e[type=sheep] glowing
Confirmed in 1.13-pre5 server. "/effect give" disconnects everyone out of the server and it doesn't even give the effect.
Command:
/effect give @a minecraft:water_breathing 360 1 true
Message:
Internal Exception: io.netty.handler.codec.DecoderException: com.google.gson.JsonParseException: Don't know how to turn {} into a Component
Couldn't find any logs server or client side.
Could this be to do with the server I'm on?