# Two ways:
# A: The cheaty way
myscript:
type: world
events:
on suicide command:
- narrate "<yellow>Say goodnight, <player.name>!!!"
- hurt <player> 500
- determine fulfilled
# B: The newer cleaner proper way
suicide_command:
type: command
name: suicide
+ permission: denizen.killself
description: ... / usage / etc info that you didn't include
script:
- - if !<player.has_permission[denizen.killself]> {
- - narrate "YOu no can has dis command"
- - queue clear
- }
- narrate "<yellow>Say goodnight, <player.name>!!!"
- hurt <player> 500