You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to try have a stab at implementing this, please leave a comment below, and/or feel free to chat to me on the Discord in #other-lokka30-plugins.
What & Why
At the moment, any Vanilla or Brigadier-registered commands, e.g. /gamemode (vanilla registered, so it uses Brigadier) and /blackwidow (we use Brigadier) won't have their argument suggestions filtered.
For example, if you try to make a rule that blocks the suggestion of /gamemode creative, it is not possible. However, blocking its execution works as expected.
This is because PlayerCommandSendEvent only sends the base commands that the server wants to suggest the player. We are meant to use TabCompleteEvent to listen for arguments, however, this event does not fire for Brigadier (and thus also Vanilla)-registered commands (unless you are in console?????? which there, it works fine?).
Implementation Wanted
I'm unsure how to approach this at the moment, and will edit this with any updates. Regardless, I want BlackWidow to be able to block command argument suggestions for Brigadier commands. So, if someone wants to hide /gamemode creative from the suggestions list, or /bw version, they can do so.
The text was updated successfully, but these errors were encountered:
Help Wanted!
If you want to try have a stab at implementing this, please leave a comment below, and/or feel free to chat to me on the Discord in
#other-lokka30-plugins
.What & Why
At the moment, any Vanilla or Brigadier-registered commands, e.g.
/gamemode
(vanilla registered, so it uses Brigadier) and/blackwidow
(we use Brigadier) won't have their argument suggestions filtered.For example, if you try to make a rule that blocks the suggestion of
/gamemode creative
, it is not possible. However, blocking its execution works as expected.This is because
PlayerCommandSendEvent
only sends the base commands that the server wants to suggest the player. We are meant to useTabCompleteEvent
to listen for arguments, however, this event does not fire for Brigadier (and thus also Vanilla)-registered commands (unless you are in console?????? which there, it works fine?).Implementation Wanted
I'm unsure how to approach this at the moment, and will edit this with any updates. Regardless, I want BlackWidow to be able to block command argument suggestions for Brigadier commands. So, if someone wants to hide
/gamemode creative
from the suggestions list, or/bw version
, they can do so.The text was updated successfully, but these errors were encountered: