Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Alors tout d'abord je me présente, je suis un codeur qui avait envie de vous donner un skript très utile! :)
- #Cela va vous permettre de sauvegarder des destinations et vous téléporter dedans avec simplicité!
- #Très facile à modifier selon son besoin.
- #Utilisation:
- #/gt set [name]
- #/gt remove [destination]
- #/gt to [destination] [player]
- #/gt list
- command /gt [<text>] [<text>] [<player>]:
- trigger:
- if arg 1 is not set:
- message "&cPlease enter a value!"
- else:
- if arg 1 is "list":
- message "&c- set"
- message "&c- remove"
- message "&c- to"
- message "&c- list"
- stop trigger
- if arg 1 is "set":
- if arg 2 is set:
- set {gt.set.%arg 2%} to player's location
- message "&aYou have succesfuly set your location to &7%arg 2%&a!"
- stop trigger
- else:
- if arg 1 is "to":
- if {gt.set.%arg 2%} is set:
- clear player's inventory
- teleport player to {gt.set.%arg 2%}
- message "&aYou have succesfuly been teleported to &7%arg 2%&a!"
- stop trigger
- else:
- message "&cThis destination doesn't exist!"
- stop trigger
- else:
- if arg 1 is "remove":
- if arg 2 is set:
- if {gt.set.%arg 2%} is set:
- delete {gt.set.%arg 2%}
- message "&cYou have succesfuly deleted the destination &7%arg 2%&c!"
- stop trigger
- else:
- message "&cYou can't remove this destination because it doesn't exist!"
- stop trigger
- else:
- message "&cPlease enter a destination to remove!"
- stop trigger
- else:
- message "&cThis value doesn't exist!"
- stop trigger
Advertisement
Add Comment
Please, Sign In to add comment