Hello Everyone!
So I create a Skript Teleport plugin which allows me to easily teleport to people and teleport people to me. After I finished making the plugin I realized that the plugin override the vanilla teleport command. So I need help with making a command that allows me to teleport to coordinates. So, it would be much appreciated if someone can help me with this.
Here is what I want:
/tp [x] [y] [z] OR /tp [player] [x] [y] [z] [world]
Here is my code for the /tp command so far:
So I create a Skript Teleport plugin which allows me to easily teleport to people and teleport people to me. After I finished making the plugin I realized that the plugin override the vanilla teleport command. So I need help with making a command that allows me to teleport to coordinates. So, it would be much appreciated if someone can help me with this.
Here is what I want:
/tp [x] [y] [z] OR /tp [player] [x] [y] [z] [world]
Here is my code for the /tp command so far:
code_language.skript:
command /tp [<player>] [<player>]:
trigger:
if argument 1 is set:
if argument 2 is set:
if player has permission "hyper.tp":
teleport arg-1 to arg-2:
message "&c&lHyper&8&lGames &8&l> &r&aTeleported &4%arg 1% &ato &4%arg 2%"
if player doesn't have permission "hyper.tp":
message "&cYou do not have permission to execute this command."
else:
if player has permission "hyper.tp":
teleport player to arg-1
message "&c&lHyper&8&lGames &8&l> &r&aTeleported to &4%arg 1%"
if player doesn't have permission "hyper.tp":
message "&cYou do not have permission to execute this command."
else:
if player has permission "hyper.tp":
message "&c&lHyper&8&lGames &8&l> &r&cUsage: /tp [player] OR /tp [x] [y] [z]"
if player doesn't have permission "hyper.tp":
message "&cYou do not have permission to execute this command."
Last edited: