Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Command Selector Bug

Open KKW557 opened this issue 1 year ago • 1 comments

Expected behavior

command selector eg @s will right colored when player have minecraft.command.selector permisssion

Observed/Actual behavior

Image Image command executed, but in chat have wrong colored

Steps/models to reproduce

/minecraft:tp @a @s

Plugin and Datapack List

paper only

Paper version

[12:15:55 INFO]: Checking version, please wait...
[12:15:57 INFO]: This server is running Paper version 1.21.1-118-master@fb76840 (2024-10-02T12:49:56Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.1-116-e7e1ab5 (MC: 1.21.1)

Other

No response

KKW557 avatar Oct 03 '24 12:10 KKW557

I think this is not fixable. The client has it's own logic for checking if selectors can be used, and in vanilla, you have to have an op level of 2. You can try to fake that op level with the sendOpLevel API. In vanilla you have to have at least the 2 level. These arguments are parsed and validated purely on the client. The server-side logic for executing them already has the correct fixes (as evidenced by you being able to run the command).

Machine-Maker avatar Oct 07 '24 01:10 Machine-Maker