#!=========================================================================================== #! | Config Générale. | #!=========================================================================================== options: # Générale : Logo : &8[&7RosenNetwork : &3Practice&8] # "Logo" du Skript (Avant les messages.) Commande_Inconnue : &cCommande Inconnue ! # Message à afficher lorsque la commande est fausse. Noperm : &cTu n'as pas accés à la commande ! # Message à afficher si le joueur n'a pas la permission. # Spawn / SpawnMatch: Spawn_Placed : &aLe spawn a été placé ! Spawn_NoPlaced : &cLe spawn n'est pas placé ! Spawn_Placed_D : &aLe spawn %arg 3% pour ""%arg 2%"" a été placé ! # File d'attentes : File_Enter_Nodebuff : &aTu attends un joueur dans la file &b""Unranked : Nodebuff"" &a ! File_Quited : &cTu a quitté la file ! Match_Find_Unranked : &aMatch trouvé ! # Permissions : Perm_Setspawn : rn.setspawn Perm_SetD : rn.setd #!========================================================================================== #! | Partie Code : NE PAS TOUCHER | #!========================================================================================== command /setspawn: trigger: if player have permission "{@Perm_Setspawn}": set {spawn.generale} to location of player send "{@Spawn_Placed}" to player else: send "{@Noperm}" to player stop command /spawn: trigger: if {spawn.generale} is set: clear player's inventory teleport player to {spawn.generale} heal player set player's food level to 10 wait 0.5 tick give an wooden sword named "&bUnranked" to slot 0 of player's inventory give an diamond sword named "&3Ranked" to slot 1 of player's inventory give an compass named "&r&7Spectateur" to slot 4 of player's inventory give an red wool named "&cTeam" to slot 5 of player's inventory give an clock named "&6Paramètres" to slot 7 of player's inventory give an name tag named "&7Modifer les kits" to slot 8 of player's inventory else: send "{@Spawn_NoPlaced}" to player stop command /setd [] [] []: trigger: if arg 1 isn't set: send "{@Commande_Inconnue}" to player stop else: if arg 2 isn't set: send "{@Commande_Inconnue}" to player stop else: if arg 3 isn't set: send "{@Commande_Inconnue}" to player stop else: if player have permission "{@Perm_SetD}": if arg 1 is "unr": if arg-2 is "nodebuff": set {spawn.%arg 1%.%arg 2%.%arg 3%} to location of player send "{@Spawn_Placed_D}" to player if arg-2 is "sdebuff": set {spawn.%arg 1%.%arg 2%.%arg 3%} to location of player send "{@Spawn_Placed_D}" to player else: send "{@Noperm}" to player stop command /1v1unr []: trigger: if arg 1 is not set: send "{@Commande_Inconnue}" to player stop else if {wait.unr::%arg 1%::*} does not contain player: add player to {wait.unr::%arg 1%::*} clear player's inventory give a wooden door named "&cQuitter le file" to slot 1 of player's inventory send "{@File_Enter_Nodebuff}" to player while size of {wait.unr::%arg 1%::*} = 1: wait 1 tick while size of {wait.unr::%arg 1%::*} >= 2: if size of {match.unr::%arg 1%::*} = 0: add player to {match.unr::%arg 1%::*} add the first element of {wait.unr::%arg 1%::*} to {match.unr::%arg 1%::*} remove the first element of {wait.unr::%arg 1%::*} from {wait.unr::%arg 1%::*} loop all players in {match.unr::%arg 1%::*}: send "{@Match_Find_Unranked}" to loop-player teleport the first element of {match.unr::%arg 1%::*} to {spawn.unr.%arg 1%.1} teleport the last element of {match.unr::%arg 1%::*} to {spawn.unr.%arg 1%.2} remove player from {wait.unr::%arg 1%::*} command /lol []: trigger: send "%size of {wait.unr::%arg 1%::*}%" command /scoregen: trigger: wipe player's sidebar set name of sidebar of player to "&l&7RosenNetwork" set score "lol" in sidebar of player to 6 set score "&6Match &bUnranked &6gagné" in sidebar of player to 5 set score "&7%{win.unr.%uuid of player%}%" in sidebar of player to 4 set score "lol" in sidebar of player to 3 set score "&6Match &bUnranked &6perdu" in sidebar of player to 2 set score "&7%{lose.unr.%uuid of player%}%" in sidebar of player to 1 set score "lol" in sidebar of player to 0 #!========================================================================================== #! | Partie Fonction : NE PAS TOUCHER | #!========================================================================================== on right click holding a wooden sword: if name of tool of player contains "&bUnranked": open chest with 1 rows named "&bUnranked" to player wait 2 tick format slot 0 of player with splash potion of healing named "&l&aNoDebuff" to close then run [make player execute command "/1v1unr nodebuff"] format slot 1 of player with poison potion named "&l&aSpecialDebuff" to close then run [make player execute command "/1v1unr sdebuff"] on right click holding a wooden door: if name of tool of player contains "&cQuitter le file": remove player from {wait.unr::*} send "{@File_Quited}" make player execute command "/spawn" on join: wait 20 tick if {win.unr.%uuid of player%} is not set: set {win.unr.%uuid of player%} to 0 if {lose.unr.%uuid of player%} isn't set: set {lose.unr.%uuid of player%} to 0 make player execute command "/spawn" make player execute command "/scoregen" on death of player: if damage cause isn't attack: heal victim else: if victim is in {match.unr::*}: if attacker is in {match.unr::*}: heal victim set gamemode of victim to spectator set gamemode of attacker to spectator send victim title "&cTu a perdu !" with subtitle "&7vs %attacker%" for 5 seconds play raw sound "game.player.hurt.fall.big" at victim with pitch 1 volume 30 send attacker title "&cTu a gagné !" with subtitle "&7vs %victim%" for 5 seconds play raw sound "fireworks.twinkle_far" at attacker with pitch 1 volume 30 remove victim from {match.unr::*} remove attacker from {match.unr::*} wait 10 seconds make victim execute command "/spawn" make attacker execute command "/spawn" if {lose.unr.%uuid of victim%} <= 0: remove 1 from {lose.unr.%uuid of victim%} add 1 to {win.unr.%uuid of attacker%} on damage of player: if damage cause isn't attack: heal victim