Skip to content

does not block commands #112

Description

@maxos-void

Describe the bug
CommandWhitelist removes non-whitelisted commands from tab-completion, but does not block their actual execution. Players can still run commands that are not on the whitelist by typing them out fully.

Expected behavior
Commands not present in the whitelist should be blocked from execution entirely, not just hidden from tab-complete.

To Reproduce
Steps to reproduce the behavior:

  1. Do not add a command to the CommandWhitelist, e.g. //expand.
  2. Join as a player without permission for that command.
  3. Press Tab after typing //expand — command does not appear in suggestions.
  4. Manually type the full command anyway, e.g. //expand 100000 up, and press Enter.
  5. Command executes normally instead of being blocked.

Screenshots

Image

Additional context
Server: Paper 1.21.4

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions