Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The client-side command overwrites the same command defined on the server-side, and the suggestions do the opposite #3568

Open
No-Eul opened this issue Feb 3, 2024 · 0 comments

Comments

@No-Eul
Copy link

No-Eul commented Feb 3, 2024

Description of issue

To make the command behavior of the client and server different, we can define it as follows:

  • somecommand client (Defined on client)
  • somecommand server (Defined on server)

The issue occurs when satisfied with the following:

  • On the Integrated server (single player and LAN server) or when the player joins the Dedicated server.
  • The player has permissions to execute the command.

And the player tries to enter the server-side command, then the server-side command doesn't work, but the suggestion is working well. Meanwhile, the client-side command is still working, but the suggestion is not.

Environment Execution Suggestion
Client
Server

Steps to reproduce

  1. Create a mod and build, like: /No-Eul/FabricTestMod/tree/command/environment-test
  2. Apply the mod.
  3. Create a new singleplayer world or join the existing world, or join the multiplayer server that applied the mod.
  4. If you have not the permission to use, acquire it.
  5. Try to enter the test (client|server) command.
  6. See the client-sided to execute and the server-sided not.
  7. Also see the client-sided to not suggest and the server-sided correctly.

Expected result

Players should be able to execute both-side commands, and they can be suggested.

@No-Eul No-Eul changed the title The client-side command overwrites the same command defined on server-side and the suggestions does oppositely The client-side command overwrites the same command defined on the server-side, and the suggestions do the opposite Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant