AuthMe Reloaded

AuthMe Reloaded

3M Downloads

Commands.yml not working correctly

zhgt opened this issue · 6 comments

commented

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

commented

Indentation matters. You have something like

  rules:
  command: '…'

But it should be as in the examples:

  rules:
    command: '…'
commented

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

commented

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?

commented

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

commented

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

commented

used when someone is logged in with our sessions feature