Paste #72796: randomwarps

Date: 2020/07/22 17:36:03 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


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]>]>