-
Notifications
You must be signed in to change notification settings - Fork 5
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
Hide player name tab complete #6
Comments
yes, spectific players, or hide all except |
for me its enough when i can just hide all players |
actually note that you can only do that for spectific commands |
which specific commands? you mean normal in player chat theres still auto complete? |
yes, also i see a good feature request in your message |
won't it work on every command even if you hook into com.destroystokyo.paper.event.brigadier.AsyncPlayerSendSuggestionsEvent ? in the server code it is called right before sending the suggestions, with the final sugestions from the event |
didn't worked with the brigadier so it's a bit confusing why we can't control it XD |
from my testing, even vanilla commands don't use this request on basic arguments (like for /gamemode [client completes this by himselve] ), but request players, (like for /gamemode survival [will request completions from server] ), so you could filter a player from it |
The plugin uses packets, not paper's event as it isnt complete. That's the plugin implementation i can easily get it to work on every command |
Please wait for me i got a few features to be added soon |
Yea! Vanilla commands dont use tab complete, it is only modified from packets or just that commands event |
then how
was working with vanilla commands? if paper was able to implement the event, then it somehow should work behind the scenes, i'm using 1.18.1 btw |
try it with non vanilla commands |
works too |
what command did you try |
from advancedban |
try calling getSuggestions |
succesfully removed all existing suggestions from all the plugin's commands |
what do you mean? |
nvm |
i would take a closer look then |
it didn't removed static suggestions like survival... from gamemode, but removed suggestions that may be different sometimes (like players on /gamemode survival) |
that's what im trying to say |
well, to filter players it is good, because he asks for players every time |
and the event gives the opportunity to removes all the players from the suggestions even from vanilla commands |
i don't see the purpose, remember this is a paper event, im trying to make it work on spigot too so i use packets |
to say that he use tab completions when completing players, if the event is fired, then it means that he worked on these suggestions |
ye not surprised, not tab completion event, its brigadier, its even in the package |
well yes, vanilla uses brigardier from 1.13 |
lol dinnerbone added this in 1.13 so yes |
brigardier is even open source, but as i know it don't have events, that's why paper-brigardier exists |
Ye this plugin modifies it before being sent to client, no paper used |
Currently didn't implement modifications on most parts of brigardier |
This is also because of something i read before but not sure, that there is a argument type for players that the client automatically knows this is for players, probably asks server for player list so this is probably why there is no event on simply stuff like /gamemode creative because for the client its fixed values |
What intellij plugin is that |
Also i use that packet lol, but i dont think it can remove players but other stuff it can |
that is it's debug menu, i don't use any plugins related to plugin development |
Oh ye ur in the packet class lol |
idk, in code it's arraylist, on protocol lib it's 1 value (or i'm just sleepy), but if you can't remove it, hide it (with "" at least), or create and send a new packet |
Only way is doing modifications that may break sometimes |
I guess the event should be modified |
managed to remove my name from every suggestion and add "this is the bigest test ever" to them, without touching other suggestions |
the suggestions class is from brigardier (https://github.com/Mojang/brigadier) that is from vanilla |
Yeah we use that |
This one is also being listened to, but cant add new values, but can remove |
With the plugin config it is actually possible to remove all of them
|
Is it possible to hide the suggestion for player names?
Would be cool because the plugin is mainly about disabling tab complete and commands
The text was updated successfully, but these errors were encountered: