[SPIGOT-7349] Player#setDisplayName not working Created: 04/May/23  Updated: 25/Dec/24  Resolved: 28/Jul/23

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

Type: Bug Priority: Minor
Reporter: Mattia Palazzolo Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: bug, chat, error, player
Environment:

Windows 10
4gb ram
Java 18.0.2.1


Attachments: File Video_230504200722.mp4    
Version: 1.19.4
Guidelines Read: Yes

 Description   

I was coding a nick plugin and when i simply tried to do Player#setDisplayName the server gave me an error on console.

This is the error:
Async Chat Thread - #1/ERROR: Chain link failed, continuing to next one
java.lang.IllegalStateException: Missing key in ResourceKey[minecraft:root / minecraft:chat_type]: ResourceKey[minecraft:chat_type / minecraft:raw]
        at net.minecraft.core.IRegistry.e(SourceFile:88) ~[spigot-1.19.4-R0.1-SNAPSHOT.jar:3743-Spigot-d1bd3bd-563d422]
        at net.minecraft.network.chat.ChatMessageType.a(ChatMessageType.java:59) ~[spigot-1.19.4-R0.1-SNAPSHOT.jar:3743-Spigot-d1bd3bd-563d422]
        at net.minecraft.network.chat.ChatMessageType.a(ChatMessageType.java:49) ~[spigot-1.19.4-R0.1-SNAPSHOT.jar:3743-Spigot-d1bd3bd-563d422]
        at net.minecraft.server.network.PlayerConnection.chat(PlayerConnection.java:2115) ~[spigot-1.19.4-R0.1-SNAPSHOT.jar:3743-Spigot-d1bd3bd-563d422]
        at net.minecraft.server.network.PlayerConnection.b(PlayerConnection.java:2183) ~[spigot-1.19.4-R0.1-SNAPSHOT.jar:3743-Spigot-d1bd3bd-563d422]
        at net.minecraft.server.network.PlayerConnection.lambda$17(PlayerConnection.java:1895) ~[spigot-1.19.4-R0.1-SNAPSHOT.jar:3743-Spigot-d1bd3bd-563d422]
        at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718) ~[?:?]
        at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]


Generated at Sat Dec 13 13:40:49 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.