Version: 1.8.8 spigot
Addon: Umbaska, skquery, skrayfall, skstuff, skaction, randomsk, piratesk, skutilitise
Code:
function stuff(p: player, t: text):
if {_t} is "combo":
equip {_p} with diamond helmet of protection 4, unbreaking 5
equip {_p} with diamond chestplate of protection 4, unbreaking 5
equip {_p} with diamond leggings of protection 4, unbreaking 5
equip {_p} with diamond boots of protection 4, unbreaking 5
set slot 0 of {_p} to diamond sword of sharpness 4
set slot 8 of {_p} to 64 golden apple:1
set slot 1 of {_p} to 373:8259
set slot 2 of {_p} to 373:8258
command /setlocation [<text>]:
trigger:
if arg 1 is not set:
send "&c/setlocation [<Nom>]"
else:
set {%arg-1%} to location of player
send "&aSet de la location %arg-1%"
command /practice [<player>]:
trigger:
if arg 1 is not set:
if "%{sumo::*}%" contains "%player%":
remove player from {sumo::*}
if "%{combo::*}%" contains "%player%":
remove player from {combo::*}
clear player's inventory
set slot 0 of player to iron sword named "&fUnranked &bMatch"
set slot 1 of player to diamond sword named "&6Ranked &bMatch"
set slot 4 of player to book named "&6EditKit"
set slot 8 of player to bed named "&cLobby"
teleport player to {spawn}
else:
if player is op:
if "%{sumo::*}%" contains "%arg-1%":
remove arg 1 from {sumo::*}
if "%{combo::*}%" contains "%arg-1%":
remove arg 1 from {combo::*}
clear arg 1's inventory
set slot 0 of arg 1 to iron sword named "&fUnranked &bMatch"
set slot 1 of arg 1 to diamond sword named "&6Ranked &bMatch"
set slot 4 of arg 1 to book named "&6EditKit"
set slot 8 of arg 1 to bed named "&cLobby"
teleport arg 1 to {spawn}
else:
make player execute command "/practice"
on right click with iron sword:
if name of tool of player is "&fUnranked &bMatch":
open chest with 1 row named "&6Unranked &bMatch" to player
wait 1 tick
format slot 0 of player with 269 named "&6Sumo" to close then run [make player execute command "/queuejoin sumo"]
format slot 1 of player with 349:3 named "&6Combo" to close then run [make player execute command "/queuejoin combo"]
command /queuejoin <text>:
trigger:
if arg 1 is "sumo":
add player to {sumo::*}
send "&6Tu rejoint la fille d'attente &fSumo &6!"
wait 1 tick
if size of {sumo::*} is 2:
set {1} to a random player of {sumo::*}
remove {1} from {sumo::*}
wait 1 tick
set {2} to a random player of {sumo::*}
remove {2} from {sumo::*}
clear {1}'s inventory
clear {2}'s inventory
teleport {1} to {sumo.1}
teleport {2} to {sumo.2}
add {1} to {insumo::*}
add {2} to {insumo::*}
set {adv.%{1}%} to "%{2}%"
set {adv.%{2}%} to "%{1}%"
else:
clear player's inventory
set slot 8 of player to nether star named "&cQuitter la queue"
if arg 1 is "combo":
add player to {combo::*}
send "&6Tu rejoint la fille d'attente Combo !"
wait 1 tick
if size of {combo::*} is 2:
set {1} to a random player of {combo::*}
remove {1} from {combo::*}
wait 3 tick
set {2} to a random player of {combo::*}
remove {2} from {combo::*}
clear {1}'s inventory
clear {2}'s inventory
teleport {1} to {practicemap1.1}
teleport {2} to {practicemap1.2}
add {1} to {incombo::*}
add {2} to {incombo::*}
set {adv.%{1}%} to "%{2}%"
set {adv.%{2}%} to "%{1}%"
stuff({1}, "combo")
stuff({2}, "combo")
else:
clear player's inventory
set slot 8 of player to nether star named "&cQuitter la queue"
on right click with nether star:
if name of tool of player is "&cQuitter la queue":
send "&cTu quitte la queue !"
make player execute command "/practice"
on walk on wool:15:
if "%{insumo::*}%" contains "%player%":
send "&6Le joueur &a%{adv.%player%}% &6a gagné !"
send "&6Le joueur &a%{adv.%player%}% &6a gagné !" to {adv.%player%}
make player execute command "/practice"
make console execute command "/practice %{adv.%player%}%"
wait 3 tick
remove {adv.%player%} from {insumo::*}
remove player from {insumo::*}
Probléme:
Se code:
make console execute command "/practice %{adv.%player%}%"
ne marche pas.