Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Skript by: Oxylas aliases SaladeNuggets
- command /tournoi <text>
- trigger:
- if arg 1 is "start":
- if player has permission "t.mj.use":
- send json of "&7Le tournoi commence dans 30 secondes" to all players
- send json of "" then "&6Rejoindre" run "/tournoi join" then "&7|" then "&6Quitter" run "/tournoi quit" then "&7|" then "&6Regles" run "/tournoi regle" to all players
- wait 15 seconds
- send json of "&7Le tournoi commence dans 15 secondes" to all players
- send json of "" then "&6Rejoindre" run "/tournoi join" then "&7|" then "&6Quitter" run "/tournoi quit" then "&7|" then "&6Regles" run "/tournoi regle" to all players
- wait 5 seconds
- send json of "&7Le tournoi commence dans 10 secondes" to all players
- send json of "" then "&6Rejoindre" run "/tournoi join" then "&7|" then "&6Quitter" run "/tournoi quit" then "&7|" then "&6Regles" run "/tournoi regle" to all players
- wait 5 seconds
- send json of "&7Le tournoi commence dans 5 secondes" to all players
- send json of "" then "&6Rejoindre" run "/tournoi join" then "&7|" then "&6Quitter" run "/tournoi quit" then "&7|" then "&6Regles" run "/tournoi regle" to all players
- wait 5 seconds
- loop {tournoi.joueur::*}:
- teleport loop-value to {tournoi.loc}
- send "&7Teleportation au Tournoi" to loop-value
- if arg 1 is "join":
- add player to {tournoi.joueur::*}
- set {tournoi.on.%player%} to true
- send "&7Tu as rejoint le tournoi"
- if arg 1 is "quit":
- remove player to {tournoi.joueur::*}
- set {tournoi.on.%player%} to false
- send "&7Tu as quitter le tournoi"
- if arg 1 is "set":
- if player has permission "t.mj.use":
- set {tournoi.loc} to location of player
- send "&7Tu as mis en place le tournoi"
- if arg 1 is "regle":
- message "&c----&7[&2Règle Tournoi&7]&c----"
- message "&6Team &7= &cBan 10 minutes"
- message "&6Cheat &7= &cBan a vie"
- message "&6Camp &7= &cKick"
- message "&c--------------"
- if arg 1 is "help" or "info" or "?":
- message "&c----&7[&2Help Tournoi&7]&c----"
- message "&7- &6/tournoi start &7(Démarre un tournoi) &c&lOP COMMAND"
- message "&7- &6/tournoi set &7(Met en place le tournoi) &c&lOP COMMAND"
- message "&7- &6/tournoi stop &7(Stop un tournoi) &c&lOP COMMAND"
- message "&7- &6/tournoi sdeath &7(Met en place le point de mort) &c&lOP COMMAND"
- message "&7- &6/tournoi join &7(Permet de rejoindre un tournoi)"
- message "&7- &6/tournoi quit &7(Permet de quitter un tournoi)"
- message "&7- &6/tournoi regle &7(Permet de savoir les règles des tournoi)"
- message "&c----------------"
- if arg 1 is "sdeath":
- if player has permission "t.mj.use":
- set {tournoi.deathplace} to location of player
- send "&7Tu as mis en place le point de mort du tournoi"
- On death:
- if {tournoi.on.%player%} is true:
- set {tournoi.on.%player%} to false
- remove player to {tournoi.joueur::*}
- teleport player to {tournoi.deathplace}
- On quit:
- set {tournoi.on.%player%} to false
- remove player to {tournoi.joueur::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement