Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /sethome [<text>]:
- trigger:
- if player has permission "home.1":
- if player has permission "home.5":
- if player has permission "home.infini":
- if arg 1 is not set:
- remove "home" from {home.%player%::*}
- add "home" to {home.%player%::*}
- set {home.%player%.home} to player's location
- send "&6[Home] &aNouveau home défini en %player's location% &9(home)"
- if arg 1 is set:
- remove "%arg 1%" from {home.%player%::*}
- add "%arg 1%" to {home.%player%::*}
- set {home.%player%.%arg 1%} to player's location
- send "&6[Home] &aNouveau home défini en %player's location% &9(%arg 1%)"
- stop
- else:
- if arg 1 is not set:
- if size of {home.%player%::*} > 4:
- if {home.%player%.home} is set:
- remove "home" from {home.%player%::*}
- add "home" to {home.%player%::*}
- set {home.%player%.home} to player's location
- send "&6[Home] &aNouveau home défini en %player's location% &9(home)"
- stop
- send "&6[Home] &cVous avez trop de homes !"
- if arg 1 is set:
- if size of {home.%player%::*} > 4:
- if {home.%player%.%arg 1%} is set:
- remove "%arg 1%" from {home.%player%::*}
- add "%arg 1%" to {home.%player%::*}
- set {home.%player%.%arg 1%} to player's location
- send "&6[Home] &aNouveau home défini en %player's location% &9(%arg 1%)"
- stop
- send "&6[Home] &cVous avez trop de homes !"
- stop
- else:
- if arg 1 is not set:
- if size of {home.%player%::*} > 0:
- if {home.%player%.home} is set:
- remove "home" from {home.%player%::*}
- add "home" to {home.%player%::*}
- set {home.%player%.home} to player's location
- send "&6[Home] &aNouveau home défini en %player's location% &9(home)"
- stop
- send "&6[Home] &cVous avez trop de homes !"
- if arg 1 is set:
- if size of {home.%player%::*} > 0:
- if {home.%player%.%arg 1%} is set:
- remove "%arg 1%" from {home.%player%::*}
- add "%arg 1%" to {home.%player%::*}
- set {home.%player%.%arg 1%} to player's location
- send "&6[Home] &aNouveau home défini en %player's location% &9(%arg 1%)"
- stop
- send "&6[Home] &cVous avez trop de homes !"
- stop
- else:
- send "&c[Home] Vous n'avez pas la permission !"
- command /delhome [<text>]:
- trigger:
- if arg 1 is not set:
- send "&6[Home] &cIl faut préciser le home à delete"
- stop
- if {home.%player%.%arg 1%} is set:
- remove arg 1 from {home.%player%::*}
- clear {home.%player%.%arg 1%}
- send "&6[Home] &aHome %arg 1% bien supprimé !"
- stop
- else:
- send "&6[Home] &cCe home n'existe pas"
- make player execute command "/homelist"
- command /home [<text>]:
- trigger:
- {tp.%player%} is not set
- if arg 1 is not set:
- if {home.%player%.home} is set:
- send "&6[Home] &aTéléportation au home &9home &adans 3 secondes ! &cNe bougez pas !"
- set {tp.%player%} to true
- wait 3 seconds
- {tp.%player%} is true
- teleport player to {home.%player%.home}
- send "&6[Home] &aTéléportation réussie !"
- clear {tp.%player%}
- else:
- make player execute command "/homelist"
- if arg 1 is set:
- if {home.%player%.%arg 1%} is set:
- send "&6[Home] &aTéléportation au home &9%arg 1% &adans 3 secondes ! &cNe bougez pas !"
- set {tp.%player%} to true
- wait 3 seconds
- {tp.%player%} is true
- teleport player to {home.%player%.%arg 1%}
- send "&6[Home] &aTéléportation réussie !"
- clear {tp.%player%}
- else:
- make player execute command "/homelist"
- command /homelist:
- trigger:
- if {home.%player%::*} is not set:
- send "&6[Home] &cVous n'avez pas de home :("
- stop
- send "&6[Home] &aListe de home(s): %{home.%player%::*}%"
- on quit:
- clear {tp.%player%}
- on any move:
- if {tp.%player%} is set:
- clear {tp.%player%}
- send "&6[Home] &cVous avez bougé !"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement