Date: 2019/01/07 19:28:20 UTC-08:00
Type: Denizen Script
# ████████████████████████████████████████████████████
# ██ Handlers
# ██
# ██▓▓▒▒░░
ShopGUI_Handlers:
type: world
debug: true
events:
# ███ [ ] ███
on player logs in:
- if <server.has_file[/data/<player.uuid>.yml]>:
- yaml "load /data/<player.uuid>.yml" id:<player.uuid>
else:
- yaml create id:<player.uuid>
on player quits:
- yaml "savefile:/data/<player.uuid>.yml" id:<player.uuid>
- yaml unload id:<player.uuid>
on shutdown:
- foreach <server.list_online_players>:
- yaml "savefile:/data/<def[value].uuid>.yml" id:<def[value].uuid>.yml
on system time minutely:
- foreach <server.list_online_players>:
- yaml "savefile:/data/<def[value].uuid>.yml" id:<def[value].uuid>.yml
on player breaks grass:
- yaml id:<player.uuid> set blocks.<context.material>:++