Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Bungeecord: False
- Jeu_Name: File d'attente
- MsgJoin: &9[&fFile d'attente&9] &aVous avez rejoint la partie !
- MsgJoinOther: &9[&fFile d'attente&9] &7%player% a rejoint la partie ! &5(%size of {FilePlayer::*}% / 20)
- NbrStart: 1
- NbrMax: 20
- Debut30: &9[&fFile d'attente&9] &6Début dans 30 secondes !
- Debut15: &9[&fFile d'attente&9] &6Début dans 15 secondes !
- Debut10: &9[&fFile d'attente&9] &6Début dans 10 secondes !
- Debut5: &9[&fFile d'attente&9] &6Début dans 5 secondes !
- Debut4: &9[&fFile d'attente&9] &6Début dans 4 secondes !
- Debut3: &9[&fFile d'attente&9] &6Début dans 3 secondes !
- Debut2: &9[&fFile d'attente&9] &6Début dans 2 secondes !
- Debut1: &9[&fFile d'attente&9] &6Début dans 1 seconde !
- Annulé: &9[&fFile d'attente&9} &cCompte à rebours annulé : Pas assez de personnes &8(%size of {FilePlayer::*}% / 20) !
- World: world
- MortAttacker: &9[&fFile d'attente&9] &c%victim% &6est mort de la main de &a%attacker%
- MortOther: &9[&fFile d'attente&9] &c%victim% &6est mort !
- MortJoueur: &9[&fFile d'attente&9] &cVous êtes mort !
- MsgQuit: &9[&fFile d'attente&9] &7Vous avez &cquitté &7la partie !
- MsgQuitOther: &9[&fFile d'attente&9] &7%player% à &cquitté &7la partie ! &5(%size of {FilePlayer::*}% / 20)
- EnCours: &9[&fFile d'attente&9] &7La partie est en cours !
- Win: &9[&fFile d'attente&9] &5%loop-value% a gagné !
- Full: &9[&fFile d'attente&9] &cLe partie est complete !
- on join:
- set {_bungee} to "{@Bungeecord}"
- {_bungee} is "true"
- make player execute command "/§gamejoin"
- #959
- command /menu:
- trigger:
- set {_bungee} to "{@Bungeecord}"
- {_bungee} isn't "true"
- player's world is "{@World}"
- open chest with 1 rows named "&6Menu" to player
- wait 1 tick
- format slot 4 of player with a diamond named "&aRejoindre la file d'attente" to close then run [make player execute command "/§gamejoin"]
- on right click with a bed:
- player is holding a bed named "&cRetour au hub"
- player's world is "{@World}"
- make player execute command "/§gamequit"
- on quit:
- make player execute command "/§gamequit"
- on death:
- victim's world is "%{@World}%"
- send "{@MortJoueur}" to victim
- set death message to ""
- loop {FilePlayer::*}:
- loop-value is a player
- if attacker is a player:
- send "{@MortAttacker}" to loop-value
- remove victim from {FilePlayer::*}
- make victim execute command "/§gamequitmort"
- damage was caused by lava, fire, fall or burning:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@MortOther}" to loop-value
- command /setpos [<text>]:
- permission: op
- permission message: &cTu n'as pas la permission
- trigger:
- if arg 1 is not set:
- send "&cUsage: /setpos [File/Start]"
- stop
- if arg 1 is not "File" or "Start":
- send "&cUsage: /setpos [File/Start]"
- stop
- if arg 1 is "File":
- set {File} to player's location
- send "&aPosition de téléportation défini (File)"
- stop
- if arg 1 is "Start":
- set {Start} to player's location
- send "&aPosition de téléportation défini (Start)"
- command /§gamejoin:
- trigger:
- if {InGame} is not set:
- if {InFile.%player%} is not set:
- if size of {FilePlayer::*} > {@NbrMax}:
- send "{@Full}"
- stop
- else:
- player's world is "%{@World}%"
- set {LastPos.%player%} to player's location
- set {InFile.%player%} to true
- add player to {FilePlayer::*}
- teleport player to {File}
- set slot 8 of player to a bed named "&cRetour au hub"
- wait 1 tick
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@MsgJoinOther}" to loop-value
- send "{@MsgJoin}" to player
- make player execute command "/§consolestart"
- else:
- send "&cTu es dans la file"
- stop
- else:
- send "{@EnCours}" to player
- command /§gamequit:
- trigger:
- if {InGame} is not set:
- if {InWait} is set:
- if size of {FilePlayer::*} = 2:
- if {InFile.%player%} is true:
- clear {InWait}
- clear {InFile.%player%}
- remove player from {FilePlayer::*}
- teleport player to {LastPos.%player%}
- clear sender's inventory
- loop {FilePlayer::*}:
- send "{@MsgQuitOther}" to loop-value
- send "{@MsgQuit}" to sender
- else:
- if {InFile.%player%} is true:
- clear {InWait}
- clear {InFile.%player%}
- remove player from {FilePlayer::*}
- teleport player to {LastPos.%player%}
- clear sender's inventory
- loop {FilePlayer::*}:
- send "{@MsgQuitOther}" to loop-value
- send "{@MsgQuit}" to sender
- else if {InFile.%player%} is not set:
- send "&cTu n'es pas dans la file"
- else:
- if {InFile.%player%} is true:
- remove player from {FilePlayer::*}
- clear {InFile.%player%}
- teleport player to {LastPos.%player%}
- clear sender's inventory
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@MsgQuitOther}" to loop-value
- send "{@MsgQuit}" to sender
- if size of {FilePlayer::*} = 1:
- loop {FilePlayer::*}:
- loop-value is a player
- broadcast "{@Win}"
- heal loop-value
- clear {InFile.%loop-value%}
- teleport loop-value to {LastPos.%loop-value%}
- clear {FilePlayer::*}
- clear {InGame}
- else if {InFile.%player%} is not set:
- send "&cTu n'es pas dans la file"
- command /§gamequitmort:
- trigger:
- if {InFile.%player%} is true:
- remove player from {FilePlayer::*}
- clear {InFile.%player%}
- teleport player to {LastPos.%player%}
- clear sender's inventory
- if size of {FilePlayer::*} = 1:
- loop {FilePlayer::*}:
- loop-value is a player
- broadcast "{@Win}"
- heal loop-value
- teleport loop-value to {LastPos.%loop-value%}
- clear {InFile.%loop-value%}
- clear {FilePlayer::*}
- clear {InGame}
- clear {InWait}
- command /leave:
- trigger:
- make player execute command "/§gamequit"
- on script load:
- clear {InWait}
- command /§consolestart:
- trigger:
- {InWait} is not set
- if {InGame} is true:
- send "&4ERREUR" to console
- stop
- else:
- if size of {FilePlayer::*} > {@NbrStart}:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Debut30}" to loop-value
- play "CLICK" to loop-value at volume 0.2
- set {InWait} to true
- wait 15 seconds
- {InWait} is true
- if size of {FilePlayer::*} > {@NbrStart}:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Debut15}" to loop-value
- play "CLICK" to loop-value at volume 0.2
- wait 5 seconds
- if size of {FilePlayer::*} > {@NbrStart}:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Debut10}" to loop-value
- play "CLICK" to loop-value at volume 0.2
- wait 5 seconds
- if size of {FilePlayer::*} > {@NbrStart}:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Debut5}" to loop-value
- play "CLICK" to loop-value at volume 0.2
- wait 1 seconds
- if size of {FilePlayer::*} > {@NbrStart}:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Debut4}" to loop-value
- play "CLICK" to loop-value at volume 0.2
- wait 1 seconds
- if size of {FilePlayer::*} > {@NbrStart}:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Debut3}" to loop-value
- play "CLICK" to loop-value at volume 0.2
- wait 1 seconds
- if size of {FilePlayer::*} > {@NbrStart}:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Debut2}" to loop-value
- play "CLICK" to loop-value at volume 0.2
- wait 1 seconds
- if size of {FilePlayer::*} > {@NbrStart}:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Debut1}" to loop-value
- play "CLICK" to loop-value at volume 0.2
- wait 1 seconds
- loop {FilePlayer::*}:
- clear {InWait}
- loop-value is a player
- teleport loop-value to {Start}
- set {InGame} to true
- clear loop-value's inventory
- send "&aGl" to loop-value
- else:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Annulé}" to loop-value
- clear {InWait}
- stop
- else:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Annulé}" to loop-value
- clear {InWait}
- stop
- else:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Annulé}" to loop-value
- clear {InWait}
- stop
- else:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Annulé}" to loop-value
- clear {InWait}
- stop
- else:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Annulé}" to loop-value
- clear {InWait}
- stop
- else:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Annulé}" to loop-value
- clear {InWait}
- stop
- else:
- loop {FilePlayer::*}:
- loop-value is a player
- send "{@Annulé}" to loop-value
- clear {InWait}
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement