
`/execute in` tab complete not updating for online players
bonn2 opened this issue ยท 6 comments
I discovered this little quirk while trying to teleport into a dimension I created
Steps to reproduce:
- Create a new dimension with
/dim create test:one minecraft:overworld
- Type
/execute in
and notice that the new dimension is not listed in the suggestions - Leave and join the server
- Type
/execute in
and notice the new dimension now exists in the suggestion list - Delete test dimension with
/dim delete test:one
- Type
/execute in
and notice that the deleted dimension is persisting in the suggestion list - Leave and join the server
- Type
/execute in
and notice the new dimension no longer exists in the suggestion list
This has been discussed on the discord, might require some packet trickery to fix
I have noticed the same behaviour with the portal command, where the portal will only work after a server restart.
It seems that the state is not updated immediately, but only on startup.
Seen behaviour:
/dim create test minecraft:overworld
/dim portal add test test aqua minecraft:stone false
[08:07:01] [Server thread/INFO]: [STDOUT]: [customportalapi]ERROR: Dimension not found
[08:07:01] [Server thread/INFO]: [STDOUT]: minecraft:overworld
[08:07:01] [Server thread/INFO]: [STDOUT]: minecraft:the_end
[08:07:01] [Server thread/INFO]: [STDOUT]: minecraft:the_nether
- restart the server
[08:09:21] [Server thread/INFO]: [STDOUT]: minecraft:test
[08:09:21] [Server thread/INFO]: [STDOUT]: minecraft:overworld
[08:09:21] [Server thread/INFO]: [STDOUT]: minecraft:the_end
[08:09:21] [Server thread/INFO]: [STDOUT]: minecraft:the_nether
/dim portal add test test aqua minecraft:cobblestone false
- portal is created correctly and works for teleporting back and forth.
I have seen similar issues with portal remove
where it does not actually remove it and complains about it existing when trying to create a new portal with the same block type.
I would assume if I created a portal with a certain block type, and then remove that portal, that the blocktype would become available again. Is the actual behaviour different?
I also did some more testing and it looks like my dimensions.json file is not updated immediately when running the /dim create
command, but only on shutdown of my minecraft server. It then adds it and can be used on the next boot.