Ajneb97 / EasyCommandBlocker

MIT License
6 stars 4 forks source link

Most likely, Velocity doesn't respond to the whitelist parameter. #16

Open JuraRusan opened 2 months ago

JuraRusan commented 2 months ago

I'm using the plugin on both Velocity and Paper. But on Velocity, I need to hide commands so that players can't use them.

Velocity config:

tab:
  default:
    priority: 0
    commands: 
      - "/ab"
      - "/antibot"
      - "/banannouncer-reload"
      - "/bareload"
      - "/changepass"
      - "/changepassword"
      - "/litebans"
      - "/litebans:litebans"
      - "/lpv"
      - "/luckpermsvelocity"
      - "/nantibot"
      - "/nlogin"
      - "/offline"
      - "/planbungee"
      - "/planp"
      - "/planproxy"
      - "/planvelocity"
blocked_command_default_actions:
  - "message: &#f42f31 Ошибка: &#caeaf5Вы не можете выполнить данную команду или неверный аргумент!"
use_commands_as_whitelist: false
commands:
  - "/ab"
  - "/antibot"
  - "/banannouncer-reload"
  - "/bareload"
  - "/changepass"
  - "/changepassword"
  - "/litebans"
  - "/litebans:litebans"
  - "/lpv"
  - "/luckpermsvelocity"
  - "/nantibot"
  - "/nlogin"
  - "/offline"
  - "/planbungee"
  - "/planp"
  - "/planproxy"
  - "/planvelocity"
custom_commands_actions:
  example:
    commands:
      - "/velocity"
    actions:
      - "message: &#f42f31 Ошибка: &#caeaf5Вы не можете выполнить данную команду или неверный аргумент!"

Plugins: litebans, spicord, ban_announcer, cmiv, easycommandblocker, luckperms, mapmodcompanion, miniplaceholders, nantibot, nlogin, papiproxybridge, plan, proxyplayernotify, velocitab, sayanvanish, skinsrestorer, spark, venturechat image

Paper config:

tab:
  default:
    priority: 0
    commands: 
      - "/login"
      - "/log"
      - "/register"
      - "/reg"
      - "/premium"
      - "/menu"
      - "/lay"
      - "/sit"
      - "/crawl"
      - "/lobby"
blocked_command_default_actions:
  - "message: #f42f31 Ошибка: #caeaf5Вы не можете выполнить данную команду или неверный аргумент!"
use_commands_as_whitelist: true
commands:
  - "/login"
  - "/log"
  - "/register"
  - "/reg"
  - "/premium"
  - "/menu"
  - "/lay"
  - "/sit"
  - "/crawl"
  - "/lobby"
custom_commands_actions:
  example:
    commands:
      - "/velocity"
    actions:
      - "message: #f42f31 Ошибка: #caeaf5Вы не можете выполнить данную команду или неверный аргумент!"

Regardless of the parameter set, Velocity commands are still visible, while the needed commands are not. It's possible that the whitelist parameter isn't working properly. The server was rebooted after changing the parameters. The reboot command was not used.

Thank you!

Ajneb97 commented 2 months ago

Are you sure you don't have admin permissions on the proxy? If you have LuckPermsVelocity remember to remove all of your permissions from that plugin first.

JuraRusan commented 2 months ago

I specifically used an empty account without administrator rights and without any privileges.

Ajneb97 commented 2 months ago

Ok so you are basically saying that the plugin doesn't work on latest versions of velocity is that right? At least the tab feature.

JuraRusan commented 2 months ago

So, I launched a test server, completely clean. In this example, I wanted to hide commands so that players wouldn’t see them, and they indeed aren’t visible. But even when I enable the whitelist parameter, the commands also stay hidden. Ideally, the block from the lobby shouldn’t affect this.

https://youtu.be/M5JIde-KVCE

On the main server, I want to hide the commands I mentioned above, but they are hidden the same way regardless of either of the two parameters. Maybe I'm doing something wrong. This worked on Waterfall for over a year, but now only the set of commands has changed.

Ajneb97 commented 2 months ago

The use_commands_as_whitelist has nothing to do with the tab feature, they are completely independent.

JuraRusan commented 2 months ago

so it's me doing something wrong?