Made this for yall
Rate it in the comments!
# PLAYER WARPS SKRIPT BY ikeyIX
# FOR IKEY SURVIVAL
#Options
options:
prefix: &8[&3IS&8]
#Main Commands
command /pwarps [<text>] [<text>]:
aliases: /playerwarps, /playerwarp, /pwarp
trigger:
if arg-1 is not set:
send "&3Ikey Survival Playerwarps&f:"
send "&a/playerwarps &7create &6<pwarp name>"
send "&a/playerwarps &7teleport &6<pwarp name>"
send "&a/playerwarps &7list"
if arg-1 is "create":
set {pwarps.loc.%arg-2%} to location of player
add arg-2 to {pwarps.list::*}
set {pwarps.name.%arg-2%} to "True"
set {pwarps.%arg-2%.%player%} to "True"
send "{@prefix} &bSuccesfully created a warp named &b%arg-2%&7." to player
if arg-1 is "teleport":
if arg-2 is set:
teleport player to {pwarps.loc.%arg-2%}
send "{@prefix} &bTeleported to %arg-2%"
if arg-2 is not set:
send "{@prefix} &cEnter a valid Player Warp name to teleport to it!"
if {pwarps.name.%arg-2%} is "False":
send "{@prefix} &cEnter a valid Player Warp name to teleport to it!"
if arg-1 is "list":
send "{@prefix} &bShowing you a list of the warps:" to player
send "&7%{pwarps.list::*}%" to player
if {pwarps.list::*} < 1:
send "{@prefix} &cCurrently there are no warps created." to player
if arg-1 is "remove":
if {pwarps.%arg-2%.%player%} is "True":
remove arg-2 from {pwarps.list::*}
clear {pwarps.loc.%arg-2%}
set {pwarps.name.%arg-2%} to "False"
set {pwarps.%arg-2%.%player%} to "False"
send "{@prefix} &aSuccessfully remove player warp ""%arg-2%""."
if {pwarps.%arg-2%.%player%} is "False":
send "{@prefix} &cYou can not remove a player warp that is not yours!"
#Admin Commands
command /setmeasowner [<text>]:
permission: op
trigger:
set {pwarps.%arg-1%.%player%} to "True"
command /removepwarps:
permission: op
trigger:
clear {pwarps.list::*}
send "&cReset all the player warps from Player Warp List"
#Tab Completes
on tab complete of "/pwarps" and "/playerwarps" and "/pwarp" and "/playerwarp":
set tab completions for position 1 to "create" and "teleport" and "list" and "remove"