Fabric API

Fabric API

108M Downloads

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

No-Eul opened this issue · 0 comments

commented

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 single-player world or join the existing world, or join the multiplayer server that applied the mod.
  4. If you have not the permission level '4' to use, acquire it.
  5. Try to enter the test (client|server) command.
  6. See that client-side commands are executed, but server-sides are not.
  7. Also, see the client-sides are not suggested, but server-sides are suggested correctly.

Expected Result

Players who have permission to use the command, should be able to execute both-side commands, and they should be suggested.

See Also