Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /warp <string> [<string>] [<string>]:
- description: Create, delete, change and use warps!
- usage: &cJung &8» &7/warp help
- trigger:
- if arg-1 is "help":
- send "&8» &7Warp Help &8«"
- send " "
- send "&7List all warps &8» &c/warps"
- send "&7Create a warp &8» &c/warp create <name>"
- send "&7Delete a warp &8» &c/warp delete <name>"
- send "&7Rename a warp &8» &c/warp rename <name> <newname>"
- send "&7Change a warp &8» &c/warp set <name>"
- send "&7Teleport to a warp &8» &c/warp <name>"
- send " "
- send "&8» &7Warp Help &8«"
- else if arg-1 is "create":
- if arg-2 is set:
- if arg-3 is not set:
- if {warp::%arg-2%} is not set:
- if player has permission "skript.warp.create":
- set {warp::%arg-2%} to player's location
- add arg-2 to {warps::*}
- send "&cJung &8» &7Created the warp &c%arg-2% &7at your location!"
- else:
- send "&cJung &8» &7You do not have the permission &cskript.warp.create&7!"
- else:
- send "&cJung &8» &7That warp already exists!"
- else:
- send "&cJung &8» &7/warp help"
- else:
- send "&cJung &8» &7/warp help"
- else if arg-1 is "delete":
- if arg-2 is set:
- if arg-3 is not set:
- if {warp::%arg-2%} is set:
- if player has permission "skript.warn.delete":
- delete {warp::%arg-2%}
- remove arg-2 from {warps::*}
- send "&cJung &8» &7Delete the warp &c%arg-2%&7!"
- else:
- send "&cJung &8» &7You do not have the permission &cskript.warp.delete&7!"
- else:
- send "&cJung &8» &7That warp does not exist!"
- else:
- send "&cJung &8» &7/warp help"
- else:
- send "&cJung &8» &7/warp help"
- else if arg-1 is "rename":
- if arg-2 is set:
- if arg-3 is set:
- if {warp::%arg-2%} is set:
- if player has permission "skript.warp.rename":
- set {warp::%arg-3%} to {warp::%arg-2%}
- delete {warp::%arg-2%}
- remove arg-2 from {warps::*}
- add arg-3 to {warps::*}
- else:
- send "&cJung &8» &7You do not have the permission &cskript.warp.rename&7!"
- send "&cJung &8» &7Renamed the warp &c%arg-2% &7to &c%arg-3%&7!"
- else:
- send "&cJung &8» &7That warp does not exist!"
- else:
- send "&cJung &8» &7/warp help"
- else:
- send "&cJung &8» &7/warp help"
- else if arg-1 is "set":
- if arg-2 is set:
- if arg-3 is not set:
- if {warp::%arg-2%} is set:
- if player has permission "skript.warp.set":
- set {warp::%arg-2%} to player's location
- send "&cJung &8» &7Set the warp &c%arg-2% &7to your location!"
- else:
- send "&cJung &8» &7You do not have the permission &cskript.warp.set&7!"
- else:
- send "&cJung &8» &7That warp does not exist!"
- else:
- send "&cJung &8» &7/warp help"
- else:
- send "&cJung &8» &7/warp help"
- else if arg-1 is not set:
- send "&cJung &8» &7/warp help"
- else:
- player command "/warp warp %arg-1%"
- command /warps:
- description: List all warps!
- usage: &cJung &8» &7/warps
- trigger:
- send "&cJung &8» &7All warps: &c%{warps::*}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement