Date: 2016/05/24 16:30:29 UTC-07:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
going_to_spawn:
type: command
debug: false
name: Spawn
usage: /spawn
description: Sends you to the worlds Spawn Point
# permission: yeticraft.cmd.spawn
script:
- if <context.server> {
- narrate "<&c>WHOA<&co> <&e>You must be a player in-game to run this command"
- queue clear
}
- if <player.has_flag[spawn_cooldown]> {
- narrate "<&c>There is a five second cool-down for this command"
- queue clear
}
# - if <player.has_permission[yeticraft.cmd.spawn].not> {
# - narrate "<&c>You do not have permission to teleport to this worlds Spawn Point"
# - queue clear
# }
- define world <player.world.name>
- if <server.has_flag[<def[world]>_spawnpoint].not> {
- if <server.has_flag[Survival]> {
- if <def[world]> == Miscere_resource {
- if <player.has_flag[Cruthadaire].not> {
- narrate "<&d>Teleporting you to Spawn in <&e>5 <&d>seconds"
- wait 1s
- narrate "<&d>Teleporting you to Spawn in <&e>4 <&d>seconds"
- wait 1s
- narrate "<&d>Teleporting you to Spawn in <&e>3 <&d>seconds"
- wait 1s
- narrate "<&d>Teleporting you to Spawn in <&e>2 <&d>seconds"
- wait 1s
- narrate "<&d>Teleporting you to Spawn in <&e>1 <&d>second"
- wait 1s
}
- teleport <player> <server.flag[Miscere_spawnpoint]>
- queue clear
}
}
- narrate "<&6>Spawn Point for %world% has not been set"
- queue clear
}
- if <player.has_flag[Cruthadaire].not> {
# Make you wait
- narrate "<&d>Teleporting you to Spawn in <&e>5 <&d>seconds"
- wait 1s
- narrate "<&d>Teleporting you to Spawn in <&e>4 <&d>seconds"
- wait 1s
- narrate "<&d>Teleporting you to Spawn in <&e>3 <&d>seconds"
- wait 1s
- narrate "<&d>Teleporting you to Spawn in <&e>2 <&d>seconds"
- wait 1s
- narrate "<&d>Teleporting you to Spawn in <&e>1 <&d>second"
- wait 1s
}
- if <server.has_flag[Survival]> {
- teleport <player> <server.flag[Miscere_spawnpoint]>
- queue clear
}
- teleport <player> <server.flag[<def[world]>_spawnpoint]>
- if <player.has_flag[Cruthadaire].not> {
- flag player spawn_cooldown d:5s
}