Quand je clique sur un item et que après je fais la commande "/regle" Il y a que moi qui vois en "autorisé" mais les autres personnes le vois toujours en " Non autorisé" Savez vous pourquoi ? Merci bien :)
Voilà le code avec les screen. :)
variables:
{menu.beacon.%player%} = 1
{menu.star.%player%} = 1
{menu.feather.%player%} = 1
{menu.steal.%player%} = 1
command /menu [<text>] [<text>]:
permission: skript.uhc
trigger:
if arg 1 is not set:
open chest with 3 rows named "&9✪ &4&lRégles de l'UHC &9✪" to player
wait 3 tick
if {menu.beacon.%player%} = "1":
format slot 0 of player with diamond ore named "&eMinage: StripMinning" with lore "||&a[Autorisé]" to close then run [make player execute command "/menu beacon 2"]
else:
format slot 0 of player with diamond ore named "&eMinage: StripMinning" with lore "||&c[Non autorisé]" to close then run [make player execute command "/menu beacon 1"]
if {menu.star.%player%} = "1":
format slot 2 of player with lava bucket named "&eiPvP" with lore "||&a[Autorisé]" to close then run [make player execute command "/menu star 2"]
else:
format slot 2 of player with lava bucket named "&eiPvP" with lore "||&c[Non autorisé]" to close then run [make player execute command "/menu star 1"]
if {menu.feather.%player%} = "1":
format slot 4 of player with feather named "&eStalk" with lore "||&a[Autorisé]" to close then run [make player execute command "/menu feather 2"]
else:
format slot 4 of player with feather named "&eStalk" with lore "||&c[Non autorisé]" to close then run [make player execute command "/menu feather 1"]
if {menu.steal.%player%} = "1":
format slot 6 of player with diamond item named "&eSteal" with lore "||&a[Autorisé]" to close then run [make player execute command "/menu steal 2"]
else:
format slot 6 of player with diamond item named "&eSteal" with lore "||&c[Non autorisé]" to close then run [make player execute command "/menu steal 1"]
else:
if arg 2 is set:
set {menu.%arg 1%.%player%} to "%arg 2%"
command /regles:
trigger:
open chest with 3 rows named "&9✪ &4&lRégles de l'UHC &9✪" to player
wait 3 tick
if {menu.beacon.%player%} = "1":
format slot 0 of player with diamond ore named "&eMinage: StripMinning" with lore "||&a[Autorisé]" to be unstealable
else:
format slot 0 of player with diamond ore named "&eMinage: StripMinning" with lore "||&c[Non autorisé]" to be unstealable
if {menu.star.%player%} = "1":
format slot 2 of player with lava bucket named "&eiPvP" with lore "||&a[Autorisé]" to be unstealable
else:
format slot 2 of player with lava bucket named "&eiPvP" with lore "||&c[Non autorisé]" to be unstealable
if {menu.feather.%player%} = "1":
format slot 4 of player with feather named "&eStalk" with lore "||&a[Autorisé]" to be unstealable
else:
format slot 4 of player with feather named "&eStalk" with lore "||&c[Non autorisé]" to be unstealable
if {menu.steal.%player%} = "1":
format slot 6 of player with diamond item named "&eSteal" with lore "||&a[Autorisé]" to be unstealable
else:
format slot 6 of player with diamond item named "&eSteal" with lore "||&c[Non autorisé]" to be unstealable
command /rgs:
permission: skript.uhc
trigger:
give a cyan dye named "&6&lSéléctions des règles pour l'uhc" to player
on rightclick with cyan dye:
execute player command "menu"
Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.
Question
Yakuro_
Bonsoir ! J'ai encore besoin d'aide #RIP x)
Quand je clique sur un item et que après je fais la commande "/regle" Il y a que moi qui vois en "autorisé" mais les autres personnes le vois toujours en " Non autorisé" Savez vous pourquoi ? Merci bien :)
Voilà le code avec les screen. :)
5 réponses à cette question
Messages recommandés