#411 Create tests for command migration and manager, minor tweaks
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Sample commands.yml file
|
||||
|
||||
onJoin:
|
||||
broadcast:
|
||||
command: 'broadcast %p has joined'
|
||||
executor: CONSOLE
|
||||
onRegister:
|
||||
announce:
|
||||
command: 'me I just registered'
|
||||
executor: PLAYER
|
||||
notify:
|
||||
command: 'log %p registered'
|
||||
executor: CONSOLE
|
||||
onLogin:
|
||||
welcome:
|
||||
command: 'msg %p Welcome back'
|
||||
executor: CONSOLE
|
||||
show_motd:
|
||||
command: 'motd'
|
||||
executor: PLAYER
|
||||
display_list:
|
||||
command: 'list'
|
||||
executor: PLAYER
|
||||
@@ -0,0 +1,20 @@
|
||||
# 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'
|
||||
executor: CONSOLE
|
||||
show_motd:
|
||||
# command: 'motd' <-- mandatory property, so entry should be ignored
|
||||
executor: PLAYER
|
||||
display_list:
|
||||
command: 'list'
|
||||
executor: WRONG_EXECUTOR
|
||||
doesNotExist:
|
||||
wrongEntry:
|
||||
command: 'should be ignored'
|
||||
executor: PLAYER
|
||||
Reference in New Issue
Block a user