Je suis en train de faire un skript pour le Lobby de mon serveur mais je fais fasse à un problème qui me dérange énormément ... les lores de mon skript ne veulent pas fonctionner, quand je reload le skript j'ai pleins d'erreur à cause des lores mais je refuse de les enlevés et je ne sais pas comment réglé ce bug.
Merci de votre aide !
Dépendances et versions »
Skquery :2.2-Dev25
SkRayFall :1.4
Skript :3.21.4
WildSkript :1.8
Skellett :1.9.6b
Umbaska : 1.3
Serveur :1.8
Code »
# ============================= ## ---- Functions ----## ============================= #
function menu(p: player):
format slot 0 of {_p} with blue glass named " " to be unstealable
format slot 1 of {_p} with blue glass named " " to be unstealable
format slot 2 of {_p} with light blue glass named " " to be unstealable
format slot 3 of {_p} with light blue glass named " " to be unstealable
format slot 4 of {_p} with light blue glass named " " to be unstealable
format slot 5 of {_p} with light blue glass named " " to be unstealable
format slot 6 of {_p} with light blue glass named " " to be unstealable
format slot 7 of {_p} with blue glass named " " to be unstealable
format slot 8 of {_p} with blue glass named " " to be unstealable
format slot 9 of {_p} with blue glass named " " to be unstealable
format slot 10 of {_p} with light blue glass named " " to be unstealable
format slot 11 of {_p} with light blue glass named " " to be unstealable
format slot 15 of {_p} with light blue glass named " " to be unstealable
format slot 16 of {_p} with light blue glass named " " to be unstealable
format slot 17 of {_p} with blue glass named " " to be unstealable
format slot 19 of {_p} with light blue glass named " " to be unstealable
format slot 25 of {_p} with light blue glass named " " to be unstealable
format slot 34 of {_p} with light blue glass named " " to be unstealable
format slot 28 of {_p} with light blue glass named " " to be unstealable
format slot 36 of {_p} with blue glass named " " to be unstealable
format slot 37 of {_p} with light blue glass named " " to be unstealable
format slot 38 of {_p} with light blue glass named " " to be unstealable
format slot 42 of {_p} with light blue glass named " " to be unstealable
format slot 43 of {_p} with light blue glass named " " to be unstealable
format slot 44 of {_p} with blue glass named " " to be unstealable
format slot 45 of {_p} with blue glass named " " to be unstealable
format slot 46 of {_p} with blue glass named " " to be unstealable
format slot 47 of {_p} with light blue glass named " " to be unstealable
format slot 48 of {_p} with light blue glass named " " to be unstealable
format slot 49 of {_p} with light blue glass named " " to be unstealable
format slot 50 of {_p} with light blue glass named " " to be unstealable
format slot 51 of {_p} with light blue glass named " " to be unstealable
format slot 52 of {_p} with blue glass named " " to be unstealable
format slot 53 of {_p} with blue glass named " " to be unstealable
# ============================= ## ---- Options ----## ============================= #
options:
prefix:&5&lEctazia &8&l»
world:Lobby
permission: ectazia.admin
# -------------------------- #
top:&5&lEctazia%nl%&7Seul le fun règne sur ce serveur
bottom:&bIl y a &c%amount of all players in world ""Lobby""%&bconnecté sur la serveur actuellement
# ============================= ## ---- Commandes ----## ============================= #
command /setlobby:
trigger:if player has permission "{@permission}":set{ectazia.lobby} to location of player
send "{@prefix} &fLe lobby à été placé à votre position !" to player
stop
else:
send "{@prefix} &cVous n'avez pas la permission d'utiliser ceci !" to player
stop
command /lobby:
aliases:/hub
trigger:
teleport player to {ectazia.lobby}
send "{@prefix} &fVous avez été téléporté au lobby !" to player
stop
# ---------------------------------------------------------------------------------------------------- #
command /§menu:
trigger:
wait 3 ticks
open chest with 6 rows named "&5&lEctazia" to player
wait 3 ticks
menu(player)
format slot 40 of player with gold ingot named "&8► &6Boutique &8◄" to run [make player execute command "/§shop"]
command /§shop [<text>][<text>]:
trigger:if arg 1 is not set:if arg 2 is not set:
wait 3 ticks
open chest with 6 rows named "&6&lBoutique" to player
wait 3 ticks
menu(player)
format slot 18 of player with paper named "&cRetour" to run [make player execute command "/§menu"]
format slot 20 of player with iron ingot named "&8► &1Mini-VIP &8◄" with lore "||&7Le grade le moins cher du serveur !||||&8» &fPseudo en &1Bleu foncé||&8» &fBooster de &6Coins &e+25%||&8» &b1 &abooster &fau choix offert||&8» &fJusqu'à 15 amis||&8» &fPriorité dans la file d'attente||&8» &fCosmétiques exclusifs||||&7Ce grade est conçus pour ceux ne voulant pas payer mais qui veullent être avantagé !||||&7Prix &8» &b28 900 &6Coins" to run [make player execute command "/§shop mini-vip confirm"]
format slot 21 of player with gold ingot of protection 1 named "&8► &eVIP &8◄" with lore "||&7Le grade le moins cher de tout les meilleurs !||||&8» &fPseudo en &eJaune||&8» &fBooster de &6Coins &e+75%||&8» &b1 &abooster &fau choix offert||&8» &fJusqu'à 20 amis||&8» &fPriorité dans la file d'attente||&8» &fCosmétiques exclusifs||&8» &fAccès prioritaire aux nouveaux jeux||||&7Conçus pour ceux qui veulent beaucoup d'avantages sans trop payer !||||&7Prix &8» &b1200 &5MegaCoins" to run [make player execute command "/§shop vip confirm"]
format slot 22 of player with diamond named "&8► &bVIP+ &8◄" with lore "||&7Un grade avantageux mais très cher !||||&8» &fPseudo en &bBleu clair||&8» &fBooster de &6Coins &e+100%||&8» &b1 &abooster &fau choix offert||&8» &fJusqu'à 25 amis||&8» &fPriorité dans la file d'attente||&8» &fCosmétiques exclusifs||&8» &fAccès prioritaire aux nouveaux jeux||||&7Conçus pour ceux n'ayant pas peur de mettre la main au protefeuille !||||&7Prix &8» &b2500 &5MegaCoins" to run [make player execute command "/§shop vip+ confirm"]
format slot 23 of player with emerald of protection 1 named "&8► &aHéros &8◄" with lore "||&7Très cher mais remplis d'avantages !||||&8» &fPseudo en &aVert clair||&8» &fBooster de &6Coins &e+125%||&8» &b2 &fboosters &fau choix offert||&8» &fJusqu'à 50 amis||&8» &fPriorité dans la file d'attente||&8» &fCosmétiques exclusifs||&8» &fAccès prioritaire aux nouveaux jeux||&8» &fAccès à la commande /staff||||&7Conçus pour ceux qui veulent beaucoup d'avantages sans avoir peur de payer cher !||||&7Prix &8» &b8400 &5MegaCoins" to run [make player execute command "/§shop heros confirm"]
format slot 24 of player with block of emerald named "&8► &4Légende &8◄" with lore "||&7Très cher mais remplis d'avantages !||||&8» &fPseudo en &4Rouge foncé||&8» &fBooster de &6Coins &e+200%||&8» &b2 &aboosters &fau choix offert||&8» &fJusqu'à 75 amis||&8» &fPriorité dans la file d'attente||&8» &fCosmétiques exclusifs||&8» &fAccès prioritaire aux nouveaux jeux||&8» &fAccès à la commande /staff||||&7Conçus pour les joueurs très exigéant !||||&7Prix &8» &b16 789 &5MegaCoins" to run [make player execute command "/§shop legende confirm"]
format slot 31 of player with enchanting table named "&8► &5Personnalisé &8◄" with lore "||&7Un grade sur-mesure répondant aux éxigences des joueurs les plus actifs !||||&8» &fPseudo dans la couleur de votre choix||&8» &fBooster de &6Coins &e+350%||&8» &b3 &aboosters &fau choix offert et &b1 &cMegaBooster &fau choix||&8» &fJusqu'à 100 amis||&8» &fPriorité dans la file d'attente||&8» &fCosmétiques exclusifs||&8» &fAccès prioritaire aux nouveaux jeux||&8» &fAccès à la commande /staff||&8» &fAccès au /nick||&7Conçus pour les joueurs qui veulent un grade sur-mesure !||||&7Prix &8» &b89 000 &5MegaCoins" to run [make player execute command "/§shop personnalise confirm"]if arg 1 is set:if arg 2 is set:if arg 1 is "mini-vip":if arg 2 is "confirm":
wait 3 ticks
open chest with 6 rows named "&6&lConfirmation" to player
wait 3 ticks
menu(player)
format slot 13 of player with iron ingot named "&8► &1Mini-VIP &8◄" with lore "||&7Le grade le moins cher du serveur !||||&8» &fPseudo en &1Bleu foncé||&8» &fBooster de &6Coins &e+25%||&8» &b1 &abooster &fau choix offert||&8» &fJusqu'à 15 amis||&8» &fPriorité dans la file d'attente||&8» &fCosmétiques exclusifs||||&7Ce grade est conçus pour ceux ne voulant pas payer mais qui veullent être avantagé !||||&7Prix &8» &b28 900 &6Coins &7ou &b700 &5MegaCoins" to be unstealable
format slot 21 of player with 35:5 named "&aConfirmer" to close then [make player execute command "/§checkpay mini-vip"]
format slot 23 of player with 35:14 named "&cAnnuler" to crun [make player execute command "/§shop"]
stop
if arg 1 is "vip":if arg 2 is "confirm":
wait 3 ticks
open chest with 6 rows named "&6&lConfirmation" to player
wait 3 ticks
menu(player)
format slot 13 of player with iron ingot named "&8► &eVIP &8◄" with lore "||&7Le grade le moins cher de tout les meilleurs !||||&8» &fPseudo en &eJaune||&8» &fBooster de &6Coins &e+75%||&8» &b1 &abooster &fau choix offert||&8» &fJusqu'à 20 amis||&8» &fPriorité dans la file d'attente||&8» &fCosmétiques exclusifs||&8» &fAccès prioritaire aux nouveaux jeux||||&7Conçus pour ceux qui veulent beaucoup d'avantages sans trop payer !||||&7Prix &8» &b1200 &5MegaCoins" to be unstealable
format slot 21 of player with 35:5 named "&aConfirmer" to close then [make player execute command "/§checkpay vip"]
format slot 23 of player with 35:14 named "&cAnnuler" to crun [make player execute command "/§shop"]
stop
if arg 1 is "vip+":if arg 2 is "confirm":
wait 3 ticks
open chest with 6 rows named "&6&lConfirmation" to player
wait 3 ticks
menu(player)
format slot 13 of player with iron ingot named "&8► &bVIP+ &8◄" with lore "||&7Un grade avantageux mais très cher !||||&8» &fPseudo en &bBleu clair||&8» &fBooster de &6Coins &e+100%||&8» &b1 &abooster &fau choix offert||&8» &fJusqu'à 25 amis||&8» &fPriorité dans la file d'attente||&8» &fCosmétiques exclusifs||&8» &fAccès prioritaire aux nouveaux jeux||||&7Conçus pour ceux n'ayant pas peur de mettre la main au protefeuille !||||&7Prix &8» &b2500 &5MegaCoins" to be unstealable
format slot 21 of player with 35:5 named "&aConfirmer" to close then [make player execute command "/§checkpay vip+"]
format slot 23 of player with 35:14 named "&cAnnuler" to crun [make player execute command "/§shop"]
stop
if arg 1 is "heros":if arg 2 is "confirm":
wait 3 ticks
open chest with 6 rows named "&6&lConfirmation" to player
wait 3 ticks
menu(player)
format slot 13 of player with iron ingot named "&8► &aHéros &8◄" with lore "||&7Très cher mais remplis d'avantages !||||&8» &fPseudo en &aVert clair||&8» &fBooster de &6Coins &e+125%||&8» &b2 &fboosters &fau choix offert||&8» &fJusqu'à 50 amis||&8» &fPriorité dans la file d'attente||&8» &fCosmétiques exclusifs||&8» &fAccès prioritaire aux nouveaux jeux||&8» &fAccès à la commande /staff||||&7Conçus pour ceux qui veulent beaucoup d'avantages sans avoir peur de payer cher !||||&7Prix &8» &b8400 &5MegaCoins" to be unstealable
format slot 21 of player with 35:5 named "&aConfirmer" to close then [make player execute command "/§checkpay heros"]
format slot 23 of player with 35:14 named "&cAnnuler" to crun [make player execute command "/§shop"]
stop
if arg 1 is "legende":if arg 2 is "confirm":
wait 3 ticks
open chest with 6 rows named "&6&lConfirmation" to player
wait 3 ticks
menu(player)
format slot 13 of player with iron ingot named "&8► &4Légende &8◄" with lore "||&7Très cher mais remplis d'avantages !||||&8» &fPseudo en &4Rouge foncé||&8» &fBooster de &6Coins &e+200%||&8» &b2 &aboosters &fau choix offert||&8» &fJusqu'à 75 amis||&8» &fPriorité dans la file d'attente||&8» &fCosmétiques exclusifs||&8» &fAccès prioritaire aux nouveaux jeux||&8» &fAccès à la commande /staff||||&7Conçus pour les joueurs très exigéant !||||&7Prix &8» &b16 789 &5MegaCoins" to be unstealable
format slot 21 of player with 35:5 named "&aConfirmer" to close then [make player execute command "/§checkpay legende"]
format slot 23 of player with 35:14 named "&cAnnuler" to crun [make player execute command "/§shop"]
stop
if arg 1 is "personnalise":if arg 2 is "confirm":
wait 3 ticks
open chest with 6 rows named "&6&lConfirmation" to player
wait 3 ticks
menu(player)
format slot 13 of player with iron ingot named "&8► &5Personnalisé &8◄" with lore "||&7Un grade sur-mesure répondant aux éxigences des joueurs les plus actifs !||||&8» &fPseudo dans la couleur de votre choix||&8» &fBooster de &6Coins &e+350%||&8» &b3 &aboosters &fau choix offert et &b1 &cMegaBooster &fau choix||&8» &fJusqu'à 100 amis||&8» &fPriorité dans la file d'attente||&8» &fCosmétiques exclusifs||&8» &fAccès prioritaire aux nouveaux jeux||&8» &fAccès à la commande /staff||&8» &fAccès au /nick||&7Conçus pour les joueurs qui veulent un grade sur-mesure !||||&7Prix &8» &b89 000 &5MegaCoins" to be unstealable
format slot 21 of player with 35:5 named "&aConfirmer" to close then [make player execute command "/§checkpay personnalise"]
format slot 23 of player with 35:14 named "&cAnnuler" to crun [make player execute command "/§shop"]
stop
# ---------------------------------------------------------------------------------------------------- #
command /§tablist refresh:
executable by: console
trigger:
loop all players:set tab header to {@top} and footer to {@bottom}for loop-player
# ============================= ## ---- Evnéements ----## ============================= #
on join:
make console execute command "/§tablist refresh"
wait 3 ticks
broadcast "&8[&a+&8] {grade.%player's uuid%} &f%player%" in world "{@world}"
wait 3 ticks
clear player's inventory
set player's gamemode to adventure
teleport player to {ectazia.lobby}
wait 3 ticks
set slot 4 of player to nether star named "&5Ectazia"
stop
on quit:
make console execute command "/§tablist refresh"
wait 3 ticks
broadcast "&8[&c-&8] {grade.%player's uuid%} &f%player%" in world "{@world}"
wait 3 ticks
clear player's inventory
set player's gamemode to adventure
teleport player to {ectazia.lobby}
stop
on right click with nether star:if player is in world "{@world}":if name of tool of player is "&5Ectazia":
make player execute command "/§menu"
on break:if player is in world "{@world}":
cancel event
on place:if player is in world "{@world}":
cancel event
on explode:
cancel event
on inventory click:if player is in world "{@world}":
cancel event
on hunger meter change:if player is in world "{@world}":
cancel event
on damage:if victim is in world "{@world}":
cancel event
on weather change:
cancel event
on drop:if player is in world "{@world}":
cancel event
on pickup:if player is in world "{@world}":
cancel event
Je refuse toute critique sur ma façon d'arranger mon code, ma façon de coder ou le nom de mon serveur !
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
Shykuzo
Bonjour !
Je suis en train de faire un skript pour le Lobby de mon serveur mais je fais fasse à un problème qui me dérange énormément ... les lores de mon skript ne veulent pas fonctionner, quand je reload le skript j'ai pleins d'erreur à cause des lores mais je refuse de les enlevés et je ne sais pas comment réglé ce bug.
Merci de votre aide !
Dépendances et versions »
Skquery : 2.2-Dev25
SkRayFall : 1.4
Skript : 3.21.4
WildSkript : 1.8
Skellett : 1.9.6b
Umbaska : 1.3
Serveur : 1.8
Code »
Je refuse toute critique sur ma façon d'arranger mon code, ma façon de coder ou le nom de mon serveur !
24 réponses à cette question
Messages recommandés