Cadeau:
command /menu:
trigger:
open chest with 6 rows named "&b&lMenu Warps" to player
wait 1 tick
set slot 11 of player's current inventory to diamond sword named "&2&lSpawn" with lore "&8Téléporte-toi au spawn du Faction!"
set slot 13 of player's current inventory to 324 named "&5&lHUB" with lore "&8Téléporte-toi au HUB/Lobby! (10 secondes de téléportation)"
set slot 15 of player's current inventory to 324 named "&c&lEvents"
set slot 21 of player's current inventory to 324 named "&c&lBoutique " with lore "Téléporte-toi à la boutique d'item in-game !"
set slot 23 of player's current inventory to 324 named "&d&lMine " with lore "&7Téléporte-toi à la mine automatique!"
set slot 28 of player's current inventory to diamond named "&d&lShop" with lore "&7Espace à louer pendant 2 semaines (7500 € in-game)"
set slot 30 of player's current inventory to diamond named "&1&lVille" with lore "Maisons disponibles/déjà achetées de la ville"
set slot 32 of player's current inventory to book named "&8&lLiens utiles" with lore "&7Liens internet"
set slot 34 of player's current inventory to diamond named "&1&lListe des warps" with lore "&7Liste des warps du serveur"
set slot 40 of player's current inventory to diamond named "&5&lStaff" with lore "&7Liste des warps du serveur"
add 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 17, 18, 19, 20, 22, 24, 25, 26, 27, 29, 31, 33, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 and 53 to {_list::*}
set {_item} to white stained glass pane
while inventory name of player's current inventory is "&b&lMenu Warps":
add 1 to {_start}
set slot {_list::%{_start}%} of player's current inventory to {_item} named " "
if {_start} = size of {_list::*}:
set {_start} to 0
add 1 to {_loop}
if {_loop} = 1:
set {_item} to light green stained glass pane
else if {_loop} = 2:
set {_loop} to 0
set {_item} to white stained glass pane
wait 3 ticks
on inventory click:
if inventory name of player's current inventory is "&b&lMenu Warps":
cancel event
if clicked slot is 11:
close player's inventory
make player execute command "/spawn"
else if clicked slot is 13:
close player's inventory
make player execute command "/hub"
else if clicked slot is 15:
close player's inventory
make player execute command "/event"
else if clicked slot is 21:
close player's inventory
make player execute command "/boutique"
else if clicked slot is 23:
close player's inventory
make player execute command "/mine"
else if clicked slot is 28:
close player's inventory
make player execute command "/shop"
else if clicked slot is 30:
open chest with 6 rows named "&9&lVille" to player
else if clicked slot is 32:
open chest with 3 rows named "&a&lLiens" to player
set slot 10 of player's current inventory to stone named "&aSite" with lore " "
set slot 11 of player's current inventory to stone named "&aForum" with lore " "
set slot 12 of player's current inventory to stone named "&aVotes" with lore " "
set slot 13 of player's current inventory to stone named "&aBoutique" with lore " "
set slot 14 of player's current inventory to stone named "&aPartenaires" with lore " "
set slot 15 of player's current inventory to stone named "&aPartenaires" with lore " "
set slot 16 of player's current inventory to stone named "&4AzeLiK" with lore " "
add 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 19, 20, 21, 22, 23, 24, 25 and 26 to {_list::*}
set {_item} to white stained glass pane
while inventory name of player's current inventory is "&a&lLiens":
add 1 to {_start}
set slot {_list::%{_start}%} of player's current inventory to {_item} named " "
if {_start} = size of {_list::*}:
set {_start} to 0
add 1 to {_loop}
if {_loop} = 1:
set {_item} to light green stained glass pane
else if {_loop} = 2:
set {_loop} to 0
set {_item} to white stained glass pane
wait 3 ticks
else if clicked slot is 34:
make player execute command "/warplist"
else if clicked slot is 40:
make player execute command "/staff"
else if inventory name of player's current inventory is "&a&lLiens":
cancel event
if clicked slot is 10:
close player's inventory
else if clicked slot is 11:
close player's inventory
else if clicked slot is 12:
close player's inventory
else if clicked slot is 13:
close player's inventory
else if clicked slot is 14:
close player's inventory
else if clicked slot is 15:
close player's inventory
else if clicked slot is 16:
close player's inventory
Cordialement,
PheonBest.