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
you can use cw dump to print out all available commands to a file.
The plugin was always meant to be a whitelist, and it's not really in the scope to go the opposite way
UltimateBoi
added a commit
to UltimateBoi/CommandWhitelist
that referenced
this issue
Jan 15, 2025
FixesYouHaveTrouble#95
Add support for blacklisting commands to protect velocity's command.
* Add methods `addToBlacklist` and `removeFromBlacklist` in `CWCommand.java` to manage blacklisted commands.
* Update `helpComponent` method in `CWCommand.java` to include blacklist commands in the help message.
* Add `blacklist` field in `CWGroup.java` to store blacklisted commands.
* Add methods `addToBlacklist` and `removeFromBlacklist` in `CWGroup.java` to manage the blacklist.
* Update `serialize` method in `CWGroup.java` to include the blacklist.
* Add method `getBlacklistedCommands` in `CommandWhitelistVelocity.java` to retrieve blacklisted commands.
* Update `onUserCommandExecuteEvent` and `onUserTabCompleteEvent` in `CommandWhitelistVelocity.java` to check for and filter out blacklisted commands.
* Add subcommands `blacklist add` and `blacklist remove` in `VelocityMainCommand.java` to manage the blacklist.
* Update help message in `VelocityMainCommand.java` to include the new blacklist commands.
Possible solution to this problem (enhancement). Cant test right now, OP of issue YouHaveTrouble#95 could test?
because i need protect velocity's command
but i just ban some command
The text was updated successfully, but these errors were encountered: