Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /setwarp [<text>]:
- permission: zscmds.setwarp
- permission message: &cYou are not allowed to execute this command!
- trigger:
- if arg 1 is not set:
- send "&cUsage: /setwarp <text>"
- stop
- if arg 1 is set:
- if {warps.%arg%} is not set:
- set {warps.%arg%} to location of player
- add argument to {warps::*}
- send "&7You have set the warp &c%arg% at &c%location of player%"
- stop
- else if {warps.%arg%} is set:
- send "&c&l(!) &7The warp &c%arg% &7already exists!"
- stop
- command /warp [<text>]:
- permission: zscmds.warp
- permission message: &cYou are not allowed to execute this command!
- trigger:
- if arg 1 is not set:
- send "&7Available warps: &c%{warps::*}%"
- stop
- if arg 1 is set:
- if {warps.%arg%} is not set:
- send "&c&l(!) &7That warp doesn't exist!"
- stop
- else:
- set {wait.spawn.teleport.%player%} to true
- send "&7Wait &c3&7 seconds without moving!"
- wait 3 seconds
- if {wait.spawn.teleport.%player%} is true:
- send "&7Teleporting you to &c%arg%&7..."
- teleport player to {warps.%arg%}
- wait 6 ticks
- set {wait.spawn.teleport.%player%} to false
- else:
- send "&c&l(!) &7Teleportation denied because you moved!"
- stop
- command /warps [<text>]:
- permission: zscmds.warp
- permission message: &cYou are not allowed to execute this command!
- trigger:
- send "&7Available warps: &c%{warps::*}%"
- stop
- command /delwarp [<text>]:
- permission: zscmds.delwarp
- permission message: &cYou are not allowed to execute this command!
- trigger:
- if arg 1 is not set:
- send "&cUsage: /delwarp <text>"
- stop
- if arg 1 is set:
- if {warps.%arg%} is set:
- delete {warps.%arg%}
- remove argument from {warps::*}
- send "&7You have deleted the warp '&c%arg%&7'."
- stop
- if {warps.%arg%} is not set:
- send "&c&l(!) &7That warp doesn't exist!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement