Version de Minecraft : 1.12.2 Version de Skript : 2.3.6
Addons utilisés: skript-yaml, SkQuery-4.1.1
Type du skript : Skript de loop-player
Description du script :
Bonjour, je cherche à faire un script qui va loop to les joueurs pour checker leur permissions et excécuter des commandes en fonction de leurs permission, mais lorsque la commande s'excécute, tout les joueurs ne sont pas loop, c'est assez random, un coup 2 joueurs sont loop, puis 0, puis 1 etc...
Voici mon script :
command /mineopenfree:
trigger:
loop all players:
if loop-player has permission "mine.delai.1":
if loop-player has permission "mine.niveau.5":
send "" to loop-player
send " &7&m&l-<--&e&m&l---&7&m&l---[&3&lOUVERTURE MINE&7&m&l]---&e&m&l---&7&m&l-->-" to loop-player
send " &f&m&l--------------------" to loop-player
send "&6 La mine est ouverte pour toi :" to loop-player
send " &6&l➤ &bPendant 4 Heures &f➜ &8[&f&l/mine&8]" to loop-player
send " &6&l➤ &bTu as la mine niveau &f➜ &8[&f&l5&8]" to loop-player
send " &f&m&l--------------------" to loop-player
send "" to loop-player
make console execute command "lp user %loop-player% permission settemp mine.free true 4h"
make console execute command "vc attemp yop5 %loop-player%"
make console execute command "vc attemp yop5 %loop-player%"
make console execute command "vc attemp yop4 %loop-player%"
make console execute command "vc attemp yop4 %loop-player%"
make console execute command "vc attemp yop3 %loop-player%"
make console execute command "vc attemp yop3 %loop-player%"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
stop
if loop-player has permission "mine.niveau.4":
send "" to loop-player
send " &7&m&l-<--&e&m&l---&7&m&l---[&3&lOUVERTURE MINE&7&m&l]---&e&m&l---&7&m&l-->-" to loop-player
send " &f&m&l--------------------" to loop-player
send "&6 La mine est ouverte pour toi :" to loop-player
send " &6&l➤ &bPendant 4 Heures &f➜ &8[&f&l/mine&8]" to loop-player
send " &6&l➤ &bTu as la mine niveau &f➜ &8[&f&l4&8]" to loop-player
send " &f&m&l--------------------" to loop-player
send "" to loop-player
make console execute command "lp user %loop-player% permission settemp mine.free true 4h"
make console execute command "vc attemp yop4 %loop-player%"
make console execute command "vc attemp yop4 %loop-player%"
make console execute command "vc attemp yop3 %loop-player%"
make console execute command "vc attemp yop3 %loop-player%"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
stop
if loop-player has permission "mine.niveau.3":
send " &7&m&l-<--&e&m&l---&7&m&l---[&3&lOUVERTURE MINE&7&m&l]---&e&m&l---&7&m&l-->-" to loop-player
send " &f&m&l--------------------" to loop-player
send "&6 La mine est ouverte pour toi :" to loop-player
send " &6&l➤ &bPendant 4 Heures &f➜ &8[&f&l/mine&8]" to loop-player
send " &6&l➤ &bTu as la mine niveau &f➜ &8[&f&l3&8]" to loop-player
send " &f&m&l--------------------" to loop-player
send "" to loop-player
make console execute command "lp user %loop-player% permission settemp mine.free true 4h"
make console execute command "vc attemp yop3 %loop-player%"
make console execute command "vc attemp yop3 %loop-player%"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
stop
if loop-player has permission "mine.niveau.2":
send " &7&m&l-<--&e&m&l---&7&m&l---[&3&lOUVERTURE MINE&7&m&l]---&e&m&l---&7&m&l-->-" to loop-player
send " &f&m&l--------------------" to loop-player
send "&6 La mine est ouverte pour toi :" to loop-player
send " &6&l➤ &bPendant 4 Heures &f➜ &8[&f&l/mine&8]" to loop-player
send " &6&l➤ &bTu as la mine niveau &f➜ &8[&f&l2&8]" to loop-player
send " &f&m&l--------------------" to loop-player
send "" to loop-player
make console execute command "lp user %loop-player% permission settemp mine.free true 4h"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
stop
else:
send " &7&m&l-<--&e&m&l---&7&m&l---[&3&lOUVERTURE MINE&7&m&l]---&e&m&l---&7&m&l-->-" to loop-player
send " &f&m&l--------------------" to loop-player
send "&6 La mine est ouverte pour toi :" to loop-player
send " &6&l➤ &bPendant 4 Heures &f➜ &8[&f&l/mine&8]" to loop-player
send " &6&l➤ &bTu as la mine niveau &f➜ &8[&f&l1&8]" to loop-player
send " &f&m&l--------------------" to loop-player
send "" to loop-player
make console execute command "lp user %loop-player% permission settemp mine.free true 4h"
make console execute command "vc attemp yop1 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
make console execute command "broadcast %loop-player%"
stop
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
WarnDangerous
Version de Minecraft : 1.12.2
Version de Skript : 2.3.6
Addons utilisés: skript-yaml, SkQuery-4.1.1
Type du skript : Skript de loop-player
Description du script :
Bonjour, je cherche à faire un script qui va loop to les joueurs pour checker leur permissions et excécuter des commandes en fonction de leurs permission, mais lorsque la commande s'excécute, tout les joueurs ne sont pas loop, c'est assez random, un coup 2 joueurs sont loop, puis 0, puis 1 etc...
Voici mon script :
command /mineopenfree:
trigger:
loop all players:
if loop-player has permission "mine.delai.1":
if loop-player has permission "mine.niveau.5":
send "" to loop-player
send " &7&m&l-<--&e&m&l---&7&m&l---[&3&lOUVERTURE MINE&7&m&l]---&e&m&l---&7&m&l-->-" to loop-player
send " &f&m&l--------------------" to loop-player
send "&6 La mine est ouverte pour toi :" to loop-player
send " &6&l➤ &bPendant 4 Heures &f➜ &8[&f&l/mine&8]" to loop-player
send " &6&l➤ &bTu as la mine niveau &f➜ &8[&f&l5&8]" to loop-player
send " &f&m&l--------------------" to loop-player
send "" to loop-player
make console execute command "lp user %loop-player% permission settemp mine.free true 4h"
make console execute command "vc attemp yop5 %loop-player%"
make console execute command "vc attemp yop5 %loop-player%"
make console execute command "vc attemp yop4 %loop-player%"
make console execute command "vc attemp yop4 %loop-player%"
make console execute command "vc attemp yop3 %loop-player%"
make console execute command "vc attemp yop3 %loop-player%"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
stop
if loop-player has permission "mine.niveau.4":
send "" to loop-player
send " &7&m&l-<--&e&m&l---&7&m&l---[&3&lOUVERTURE MINE&7&m&l]---&e&m&l---&7&m&l-->-" to loop-player
send " &f&m&l--------------------" to loop-player
send "&6 La mine est ouverte pour toi :" to loop-player
send " &6&l➤ &bPendant 4 Heures &f➜ &8[&f&l/mine&8]" to loop-player
send " &6&l➤ &bTu as la mine niveau &f➜ &8[&f&l4&8]" to loop-player
send " &f&m&l--------------------" to loop-player
send "" to loop-player
make console execute command "lp user %loop-player% permission settemp mine.free true 4h"
make console execute command "vc attemp yop4 %loop-player%"
make console execute command "vc attemp yop4 %loop-player%"
make console execute command "vc attemp yop3 %loop-player%"
make console execute command "vc attemp yop3 %loop-player%"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
stop
if loop-player has permission "mine.niveau.3":
send " &7&m&l-<--&e&m&l---&7&m&l---[&3&lOUVERTURE MINE&7&m&l]---&e&m&l---&7&m&l-->-" to loop-player
send " &f&m&l--------------------" to loop-player
send "&6 La mine est ouverte pour toi :" to loop-player
send " &6&l➤ &bPendant 4 Heures &f➜ &8[&f&l/mine&8]" to loop-player
send " &6&l➤ &bTu as la mine niveau &f➜ &8[&f&l3&8]" to loop-player
send " &f&m&l--------------------" to loop-player
send "" to loop-player
make console execute command "lp user %loop-player% permission settemp mine.free true 4h"
make console execute command "vc attemp yop3 %loop-player%"
make console execute command "vc attemp yop3 %loop-player%"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
stop
if loop-player has permission "mine.niveau.2":
send " &7&m&l-<--&e&m&l---&7&m&l---[&3&lOUVERTURE MINE&7&m&l]---&e&m&l---&7&m&l-->-" to loop-player
send " &f&m&l--------------------" to loop-player
send "&6 La mine est ouverte pour toi :" to loop-player
send " &6&l➤ &bPendant 4 Heures &f➜ &8[&f&l/mine&8]" to loop-player
send " &6&l➤ &bTu as la mine niveau &f➜ &8[&f&l2&8]" to loop-player
send " &f&m&l--------------------" to loop-player
send "" to loop-player
make console execute command "lp user %loop-player% permission settemp mine.free true 4h"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop2 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
stop
else:
send " &7&m&l-<--&e&m&l---&7&m&l---[&3&lOUVERTURE MINE&7&m&l]---&e&m&l---&7&m&l-->-" to loop-player
send " &f&m&l--------------------" to loop-player
send "&6 La mine est ouverte pour toi :" to loop-player
send " &6&l➤ &bPendant 4 Heures &f➜ &8[&f&l/mine&8]" to loop-player
send " &6&l➤ &bTu as la mine niveau &f➜ &8[&f&l1&8]" to loop-player
send " &f&m&l--------------------" to loop-player
send "" to loop-player
make console execute command "lp user %loop-player% permission settemp mine.free true 4h"
make console execute command "vc attemp yop1 %loop-player%"
make console execute command "vc attemp yop1 %loop-player%"
make console execute command "broadcast %loop-player%"
stop
5 réponses à cette question
Messages recommandés