AuthMe/AuthMeReloaded

View on GitHub
src/test/resources/fr/xephi/authme/settings/commandconfig/commands.incomplete.yml

Summary

Maintainability
Test Coverage
# Sample commands.yml file with wrong and missing sections

onJoin:
    broadcast:
        command: 'broadcast %p has joined'
        executor: CONSOLE
onLogin:
    welcome:
        command: 'msg %p Welcome back, %nick'
        executor: CONSOLE
        delay: 0
    show_motd:
        # command: 'motd' <-- mandatory property, so entry should be ignored
        executor: PLAYER
    display_list:
        command: 'list'
        executor: WRONG_EXECUTOR
        delay: 100
doesNotExist:
    wrongEntry:
        command: 'should be ignored'
        executor: PLAYER
onUnregister:
    farewell:
        command: 'msg %p sad to see you go!'
        executor: CONSOLE