ljacqu f1c1848985 #1046 Add onFirstLogin to commands.yml
- Allow to configure commands run on player's first login (login of player with a previously null lastlogin date)
2017-11-28 21:41:30 +01:00

37 lines
820 B
YAML

# Sample commands.yml file
onJoin:
broadcast:
command: 'broadcast %nick has joined'
executor: CONSOLE
onRegister:
announce:
command: 'me I just registered'
executor: PLAYER
notify:
command: 'log %p (%ip, %country) registered'
executor: CONSOLE
onLogin:
welcome:
command: 'msg %p Welcome back'
executor: CONSOLE
show_motd:
command: 'motd'
executor: PLAYER
display_list:
command: 'list'
executor: PLAYER
onSessionLogin:
welcome:
command: 'msg %p Session login!'
executor: CONSOLE
onFirstLogin:
give_money:
command: 'pay %p 30'
executor: CONSOLE
onUnregister: {}
onLogout:
announce:
command: 'broadcast %p (%ip) logged out'
executor: CONSOLE