JorelAli / CommandAPI

A Bukkit/Spigot API for the command UI introduced in Minecraft 1.13
https://commandapi.jorel.dev
MIT License
526 stars 67 forks source link

Add: Player Example #569

Closed Strokkur424 closed 3 months ago

Strokkur424 commented 3 months ago

Adds an example to the safe suggestions to show a more 'daily' use of the sage suggestions: The example consists of a /warp command, where the player suggests only suggest player names, and no entity selector suggestions, as one would expect.

Strokkur424 commented 3 months ago

I was thinking about putting this into the player page too, but I ultimately put it here, as it shows a great usecase for the safesuggestions. I can put it into the PlayerArgument page though

Strokkur424 commented 3 months ago

Mainly because the player argument page is not specific to players, but to EntitySelectors in general

DerEchtePilz commented 3 months ago

Well, there's a section about the PlayerArgument, I think you could put it there.

Strokkur424 commented 3 months ago

It might be nice to add a quick note that while the argument will not suggest selectors, they will still be accepted to the argument as usual. Just to avoid any possible confusion if developers use this and expect that selectors would no longer be accepted.

Added a note right before the gif. If you want me to rephrase, I would be glad to!