Date: 2024/12/29 11:49:50 UTC-08:00
Type: Denizen Script
#========================
##### Debugger
#========================
MyJailSystem:
type: command
name: jail
description: A simple jail system.
usage: /jail help|info|flag1
tab completions:
1: help|info|flag1
permission: space.jailscript
script:
- choose <context.args.get[1].if_null[null]>:
- case help:
- if <context.args.size> = 1:
- narrate "<gray>Jail System"
- narrate "<gray>/jail help - useful commands."
- narrate "<gray>/jail info {player} - relevant info about a specific player."
- else:
- if <context.args.size> > 1:
- narrate "<gray>Too many arguments provided!"
- case info:
- if <context.args.size> = 1:
- narrate "<gray>Please specify a player."
- else:
- if <context.args.size> = 2:
- inventory open d:playerdata
- narrate "<gray><context.args.get[2]>"
- narrate "<<context.args.get[2]>.flag_expiration[flag123].from_now.formatted>"
- else:
- if <context.args.size> > 2:
- narrate "<gray>Too many arguments provided!"
- case flag1:
- flag <context.args.get[2]> flag123 expire:1m