Ajneb97 / EasyCommandBlocker

MIT License
6 stars 2 forks source link

custom_commands_actions no funciona cuando use_commands_as_whitelist es true #14

Closed MiguVT closed 1 week ago

MiguVT commented 2 weeks ago

Como dije, custom_commands_actions no funciona si use_commands_as_whitelist es true, directamente te envia blocked_command_default_actions, tambien intente añadirlo a la whitelist y simplemente se ejecuta como deberia pasar pero no se ejecuta la accion custom, aqui esta mi configuración:

tab:
  default:
    priority: 0
    commands:
      - "/l"
      - "/login"
      - "/register"
      - "/reg"
      - "/prem"
      - "/premium"
      - "/cracked"
blocked_command_default_actions:
  - "message: &cSolo puedes usar comandos de /premium, /login, /register y /lobby"
use_commands_as_whitelist: true
commands:
  - "/premium"
  - "/l"
  - "/login"
  - "/reg"
  - "/register"
  - "/prem"
  - "/cracked"
custom_commands_actions:
  pl:
    commands:
      - "/pl"
      - "/plugins"
      - "/bukkit:pl"
      - "/bukkit:plugins"
    actions:
      - "message: &9Paper Plugins:"
      - "message: &8 - &aWhyYouSeeIt?"
  ver:
    commands:
      - "/ver"
      - "/version"
      - "/bukkit:version"
      - "/bukkit:ver"
      - "/bukkit:about"
      - "/about"
    actions:
      - "message: &fNot allowed command"
Ajneb97 commented 2 weeks ago

Voy a tener que verificar.

MiguVT commented 1 week ago

Alguna novedad?

Ajneb97 commented 1 week ago

Sacare una update ahora

MiguVT commented 1 week ago

Ok, gracias.

MiguVT commented 1 week ago

Lo acabo de probar, todo funciona perfecto, Gracias.