YouHaveTrouble / CommandWhitelist

You decide what commands players can use or tab complete on your server!
GNU General Public License v2.0
207 stars 22 forks source link

Add an execute only prefix to commands `~` #58

Closed PoQuatre closed 2 years ago

PoQuatre commented 2 years ago

This PR is adding a way to hide commands from tab completion but still allow said command's execution, by doing this, it fixes issue #12.

Example usage

groups:
  default:
    commands:
    - rules
    - ~cmi
    - ~cmil

This will only show the /rules command in the tab completion, but the usage of /cmi and /cmil is still allowed

YouHaveTrouble commented 2 years ago

Denying this. CW was designed to be dead simple "I can see it - I can use it". This not only complicating things, but also would promote bad practice and unexpected behavior.