Date: 2020/07/22 17:36:03 UTC-07:00
Type: Denizen Script
WarpListCommand:
type: command
name: warplist
description: Display randomized list of notable warps in chat. Click on warp tps them to plot.
usage: /warplist
permission message: "Sorry, you are not allowed to use this command."
script:
- foreach <essentials.list_warps.random[3]> as:warps:
- clickable WarpListTask def:<[warps]>|<player> save:warplist
- narrate "Warp <blue><element[<[warps]>].on_click[<entry[warplist].command>]><reset>!" targets:<player>
WarpListTask:
type: task
script:
- teleport <[2]> <essentials.warp[<[1]>]>