Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7349

Player#setDisplayName not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • Windows 10
      4gb ram
      Java 18.0.2.1

    • 1.19.4
    • Yes

      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) ~[?:?]

            Unassigned Unassigned
            Brexx Mattia Palazzolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: