Closed Hinterhaeltiger closed 2 months ago
I should maybe add that I'm registering this using the plugin Bootstrapper. Dunno if that has an impact on that though
Replicable, the server does not sync said registry with the client, as such the client cannot parse such an argument. This won't be fixable, however we might be able to pretty up the error.
(you can fix this rn by switching to resourceKey instead of resource)
Opening this in a new issue, as it is only a documentation issue/error handling.
For people looking at this, see https://jd.papermc.io/paper/1.21/io/papermc/paper/command/brigadier/argument/ArgumentTypes.html#resourceKey(io.papermc.paper.registry.RegistryKey) for most usecases.
Stack trace
Plugin and Datapack List
Spark, My own plugin
Actions to reproduce (if known)
Register a command with an argument of the
Registry.STRUCTURE
type:then try to join the server. You will get an Exception that immediately reaches the end of the pipeline. Also note that RegistryKey.STRUCTURE seems to be a duplicate of RegistryKey.STRUCTURETYPE (which works just fine) nonetheless. The client will display "Network Protocol Error". Client Log:
Paper version
Paper version 1.20.6-147-ver/1.20.6@e41d44f (2024-06-17T19:24:35Z) (Implementing API version 1.20.6-R0.1-SNAPSHOT)
Other
Really weird issue, maybe it just is not meant to be used as an argument type