Date: 2020/05/06 14:38:28 UTC-07:00
Type: Denizen Script
Warp Command:
type: command
name: warp
description: Allows staff members to warp to preset warp locations and to set warps.
usage: /warp
aliases:
- warps
permission:
permission message: <&e>Type /help for a list of commands.
script:
# This will be the list of warps.
- if <context.args> == 0:
- narrate "The list"
- choose <context.args.get[1]>:
- case create:
- if <context.args.size||0> !>= 3:
- narrate "Nope"
- stop
- define warp <context.args.get[2]>
- define location <player.location.round>
- if <yaml[warps].has_changes>:
- ~yaml load:../../../../SaveData/World/Lobby/warps.yml id:warps
- if <yaml[warps].contains[<player.world.name>.<[warp]>]>
- narrate "Warp already exists"
- stop
- yaml id:warps set <player.world.name>.<[warp]>:<[location]>
- ~yaml savefile:../../../../SaveData/World/Lobby/warps.yml id:warps