Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /kit [<text>]:
- executable by: player
- trigger:
- {inspawn.%player%} exist
- if arg-1 is "edit":
- if player is op:
- restore inventory of player from {kit3.inv}
- equip player with 1 of {kit3.helmet}
- equip player with 1 of {kit3.chestplate}
- equip player with 1 of {kit3.leggings}
- equip player with 1 of {kit3.boots}
- else if {grade.%player's uuid%} is "&7Joueur":
- restore inventory of player from {kit1.inv}
- equip player with 1 of {kit1.helmet}
- equip player with 1 of {kit1.chestplate}
- equip player with 1 of {kit1.leggings}
- equip player with 1 of {kit1.boots}
- else if {grade.%player's uuid%} is "&eVIP" or "&bVIP+" or "&aSilent":
- restore inventory of player from {kit2.inv}
- equip player with 1 of {kit2.helmet}
- equip player with 1 of {kit2.chestplate}
- equip player with 1 of {kit2.leggings}
- equip player with 1 of {kit2.boots}
- else if {grade.%player's uuid%} is "&6Youtubeur" or "&6Youtubeuse" or "&cModérateur" or "&cModératrice" or "&cSuperModo":
- restore inventory of player from {kit3.inv}
- equip player with 1 of {kit3.helmet}
- equip player with 1 of {kit3.chestplate}
- equip player with 1 of {kit3.leggings}
- set {editing::%player's UUID%} to true
- else if arg-1 is "accept":
- if {editing::%player's UUID%} exist:
- clear {editing::%player's UUID%}
- set {kitedit::%player's UUID%::inv} to player's serialized inventory
- set {kitedit::%player's UUID%::casque} to player's helmet
- set {kitedit::%player's UUID%::plastron} to player's chestplate
- set {kitedit::%player's UUID%::jambieres} to player's leggings
- set {kitedit::%player's UUID%::bottes} to player's boots
- else:
- send "&cErreur: Utilise `/kit edit` pour modifier ton Kit." to sender
- on right click with iron axe:
- if name of tool of player is "&6Rejoindre":
- clear {inspawn.%player%}
- set {inarena.%player%} to true
- clear player's inventory
- set {_random} to random element of {positions::*}
- teleport player to {_random}
- send "{@arenajoiningmessage}"
- if {kitedit::%player's UUID%::inv} exist:
- restore inventory of player from {kitedit::%player's UUID%::inv}
- equip player with 1 of {kitedit::%player's UUID%::casque}
- equip player with 1 of {kitedit::%player's UUID%::plastron}
- equip player with 1 of {kitedit::%player's UUID%::jambieres}
- equip player with 1 of {kitedit::%player's UUID%::bottes}
- else if player is op:
- restore inventory of player from {kit3.inv}
- equip player with 1 of {kit3.helmet}
- equip player with 1 of {kit3.chestplate}
- equip player with 1 of {kit3.leggings}
- equip player with 1 of {kit3.boots}
- else if {grade.%player's uuid%} is "&7Joueur":
- restore inventory of player from {kit1.inv}
- equip player with 1 of {kit1.helmet}
- equip player with 1 of {kit1.chestplate}
- equip player with 1 of {kit1.leggings}
- equip player with 1 of {kit1.boots}
- else if {grade.%player's uuid%} is "&eVIP" or "&bVIP+" or "&aSilent":
- restore inventory of player from {kit2.inv}
- equip player with 1 of {kit2.helmet}
- equip player with 1 of {kit2.chestplate}
- equip player with 1 of {kit2.leggings}
- equip player with 1 of {kit2.boots}
- else if {grade.%player's uuid%} is "&6Youtubeur" or "&6Youtubeuse" or "&cModérateur" or "&cModératrice" or "&cSuperModo":
- restore inventory of player from {kit3.inv}
- equip player with 1 of {kit3.helmet}
- equip player with 1 of {kit3.chestplate}
- equip player with 1 of {kit3.leggings}
- set {editing::%player's UUID%} to true
Advertisement
Add Comment
Please, Sign In to add comment