[SPIGOT-6065] io.netty.handler.codec.EncoderException: java.lang.IllegalArgumentException: Name cannot be empty Created: 12/Aug/20  Updated: 12/Aug/20  Resolved: 12/Aug/20

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Grant Gryczan Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: bug, error, spigot

Attachments: PNG File image-2020-08-11-23-30-39-564.png    
Version: CraftBukkit version git-Spigot-9639cf7-4b9bc9d (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

(Sorry for broken formatting on the commands–I can't figure out how to fix it. Just remove the line breaks to fix it.)

Running

/give @p minecraft:elytra{AttributeModifiers:[

{AttributeName:"minecraft:generic.armor",Slot:"chest",Operation:0,Amount:3.0d,UUID:[I;-1623373971,-1055374012,-2090507132,1761916046]}

]}

will disconnect the player with the following error screen:

Rejoining the server will result in the same error. The player is NBT-banned from the server due to the lack of the Name property in the attribute modifier object. This issue does not occur in vanilla. This command, in contrast,

/give @p minecraft:elytra{AttributeModifiers:[

{AttributeName:"minecraft:generic.armor",Name:"any text here",Slot:"chest",Operation:0,Amount:3.0d,UUID:[I;-1623373971,-1055374012,-2090507132,1761916046]}

]}

works fine in Spigot, as it is not missing the Name property.


Generated at Tue Apr 08 03:01:15 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.