Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Warp Skript by jaOjaa | v.0.3
- options:
- Q: &7[&aCustom&eWarp&7]
- PR: warp.oja
- command /warp [<text="help">]:
- usage: /warp [text]
- trigger:
- arg 1 is "list":
- message "&b====={@Q}&b====="
- loop {allwarps::*}:
- send "&8&l►► &a%loop-value%"
- stop
- arg 1 is set:
- if {warp.%arg 1%} is set:
- loop {allwarps::*}:
- loop-value is equal to arg 1:
- teleport player to {warp.%arg 1%}
- send "{@Q} &7Teleporting to &b%arg 1%&7!"
- stop
- else:
- execute player command "/warp list"
- stop
- command /setwarp [<text>]:
- permission: {@PR}
- trigger:
- if arg 1 is set:
- if player has permission "{@PR}":
- set {warp.%arg 1%} to location of the player
- add arg 1 to {allwarps::*}
- send "{@Q} &7Warp&b %arg 1% &7has been created"
- stop
- else:
- send "{@Q} &cYou do not have access to this command"
- stop
- command /delwarp [<text>]:
- usage: /delwarp [warp]
- trigger:
- if arg 1 is set:
- if player has permission "{@PR}":
- remove arg 1 from {allwarps::*}
- clear {warp.%arg 1%}
- send "{@Q} &7Warp&b %arg 1% &7has been deleted"
- stop
- else:
- send "{@Q} &cYou do not have access to this command"
- stop
- command /reloadwarp:
- permission: {@PR}
- permission message: {@Q} &cYou do not have access to this command
- trigger:
- make player execute command "/skript reload Warp Skript"
- message "{@Q} &6This skript has been reloaded !"
- stop
Advertisement
Add Comment
Please, Sign In to add comment