AuthMe / AuthMeReloaded

The best authentication plugin for the Bukkit/Spigot API!
https://www.spigotmc.org/resources/authmereloaded.6269/
GNU General Public License v3.0
601 stars 511 forks source link

Commands.yml not working correctly #2487

Closed zhgt closed 2 years ago

zhgt commented 2 years ago

What behaviour is observed?

Hello!

I reported some of this on discord but I prefer to leave it written here. It occurs to me that I cannot use most of the options offered by commands.yml.

Expected behaviour

Simply the functions in commands.yml should work

To Reproduce

Try simple commands like: Joiners: command: say xd executor: CONSOLE

I tried examples of those that appear in the same configuration but I had no success.

I tried to execute a command in "onLogin" and copy the same in another different function and change the title of it. I did not succeed.

Plugin list

Plugins (1): AuthMe

Server Implementation

Standalone server (no proxy)

Database Implementation

SQLite

AuthMe Version

Version: AuthMeReloaded v5.6.0-SNAPSHOT (build: 2513)

Error log (if applicable)

No response

Configuration

https://paste.gg/p/anonymous/8e936ddc561a410bb01ef65bae3333cb

ljacqu commented 2 years ago

Indentation matters. You have something like

  rules:
  command: '…'

But it should be as in the examples:

  rules:
    command: '…'
zhgt commented 2 years ago

Indentation matters. You have something like

  rules:
  command: '…'

But it should be as in the examples:

  rules:
    command: '…'

Follow the same problem. The example I had shown was misspelled but on past occasions I had tested it correctly.

I tried to configure it as you told me but still the same. Sign in with a random name. If what I think is correct, when logging in, it should show me the /register message and the "'msg %p Welcome!" but it doesn't happen.

https://paste.gg/p/anonymous/e928cfc5ad77414ab2c05f5792508809

https://i.ibb.co/GxNHLxc/Sin-t-tulo.png

zhgt commented 2 years ago

Indentation matters. You have something like

  rules:
  command: '…'

But it should be as in the examples:

  rules:
    command: '…'

update! I made this test setup: https://paste.gg/p/anonymous/59121322e81845358ff99ca993ad3395

It gave me this result: https://i.ibb.co/tzLzhYj/dsaasd.png. Efficiently what works and what doesn't.

The problem would be in onUnregister?

ljacqu commented 2 years ago

I'm afraid I don't understand your problem now but the onUnregister commands would run whenever a player does /unregister

zhgt commented 2 years ago

And what function does onSessionLogin fulfill? When I log in it doesn't run.

ljacqu commented 2 years ago

used when someone is logged in with our sessions feature