Aller au contenu

Question

Posté(e)

Version de Minecraft : 1.8.8
Version de Skript : 2.X.X

Description du script :

Bonjour, j'essaye depuis quelques temps de faire un /warp avec skript, mais vu que je suis avec essentials comme système de warp, je suis obligé de mettre un s (/warps) sinon cela n'ouvre pas le menuGUI des warps, pareil pour le /kit (=/kits), du coup, j'aimerais savoir comment faire pour pouvoir fait /kit, /warp et pas /warps, /kits (me faut-t-il des addons ?)

Merci a vous pour votre aide 😛

10 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Salut, si tu veux que tes commandes Skript soient plus importantes que les autres plugins, tu peux modifier ça dans la configuration de Skript. Bonne soirée 😉

  • 0
Posté(e)
il y a une heure, Romitou a dit :

Salut, si tu veux que tes commandes Skript soient plus importantes que les autres plugins, tu peux modifier ça dans la configuration de Skript. Bonne soirée 😉

Haha merci :p, mais je n'ai pas trouvé (a vrai dire, j'ai pas une vue top-top) j'ai chercher un peu dans la config et tout, j'ai pas trouvé comment les mettre en plus importante, j'ai même rechercher sur internet, mais rien ne satisfait ma commande :c

  • 0
Posté(e) (modifié)

Cherche ceci dans ta configuration :
Je te conseille de le mettre sur "high", si c'est déjà le cas, met le sur "highest"

plugin priority: high
# Allowed values: lowest, low, normal, high, highest
# Change this if you encounter problems with other plugins, e.g.:
# - cancelled events: The event is cancelled by another plugin, but Skript handles the event nonetheless => increase priority
#                    (e.g. WorldGuard cancels events if a player doesn't have permission for the given region,
#                     and you made some 'place' triggers which should not bypass WorldGuard's protection)
# - effects '(un)cancel event': Another plugin should/should not process the event, but does/does not => decrease priority
# - effect 'drop': Another plugin doesn't process added drops => decrease priority
# - effects 'remove ... from drops'/'clear drops': Drops added by other plugins are not removed => increase priority
#                                                  Skript removes drops it shouldn't => decrease priority or specify which item types to remove

 

Modifié par Lou'
  • 0
Posté(e)
Il y a 12 heures, Lou' a dit :

Cherche ceci dans ta configuration :
Je te conseille de le mettre sur "high", si c'est déjà le cas, met le sur "highest"


plugin priority: high
# Allowed values: lowest, low, normal, high, highest
# Change this if you encounter problems with other plugins, e.g.:
# - cancelled events: The event is cancelled by another plugin, but Skript handles the event nonetheless => increase priority
#                    (e.g. WorldGuard cancels events if a player doesn't have permission for the given region,
#                     and you made some 'place' triggers which should not bypass WorldGuard's protection)
# - effects '(un)cancel event': Another plugin should/should not process the event, but does/does not => decrease priority
# - effect 'drop': Another plugin doesn't process added drops => decrease priority
# - effects 'remove ... from drops'/'clear drops': Drops added by other plugins are not removed => increase priority
#                                                  Skript removes drops it shouldn't => decrease priority or specify which item types to remove

 

Merci 😛

 

 

Il y a aussi un problème, dans le menu, quand je clique pour recevoir un kit par exemple, ca me dit "correct usage: /kit" :c

 

  • 0
Posté(e) (modifié)

Bonjour,

2 choses:

1- Normalement si tu creer une commande qui existe déjà en provenant d'un plugin, sa doit marché

2- pour le  "correct usage : /kit" c'est que tu t'es trompé dans la commande

perso moi les menus s'ouvre oublie pas de mettre des "wait a tick"

Exemple:

command /warp:
	trigger:
		wait a tick
		open virtual chest with 5 rows named "&6&lWARPS" to player
		wait a tick
		format gui slot 22 of player with Diamond named "&b&lWARPS" to run:
			stop

Ceci est un exemple donc le prends pas pour ton code (sauf si tu en as besoin) c'est un menu TUSKE.

Modifié par zarco70
  • J'aime 1
  • 0
Posté(e)
il y a 11 minutes, zarco70 a dit :

Bonjour,

2 choses:

1- Normalement si tu creer une commande qui existe déjà en provenant d'un plugin, sa doit marché

2- pour le  "correct usage : /kit" c'est que tu t'es trompé dans la commande

perso moi les menus s'ouvre oublie pas de mettre des "wait a tick"

Exempl:


command /warp:
	trigger:
		wait a tick
		open virtual chest with 5 rows named "&6&lWARPS" to player
		wait a tick
		format gui slot 22 of player with Diamond named "&b&lWARPS" to run:
			stop

Ceci est un exemple donc le prends pas pour ton code (sauf si tu en as besoin) c'est un menu TUSKE.

Moi aussi les menu s'ouvre, mais, quand je clique sur le truc pour me tp au warp ou prendre le kit, ca me mets le message "correct usage: /kit ou /warp"

voila la code de mon /kit et mon /warp
 

#---------------------------------------------------------
#                                                        -
#                       Le /warps                        - 
#                                                        -
#                                                        -
#---------------------------------------------------------

command /warp:
    trigger:  
        open chest with 6 rows named "&6&lZeranium &e» &c&oWarp" to player
        wait 2 tick

        format slot 0 of player with nether star named " " to be unstealable
        format slot 1 of player with black glass named " " to be unstealable
        format slot 2 of player with black glass named " " to be unstealable
        format slot 3 of player with black glass named " " to be unstealable
        format slot 4 of player with black glass named " " to be unstealable
        format slot 5 of player with black glass named " " to be unstealable
        format slot 6 of player with black glass named " " to be unstealable
        format slot 7 of player with black glass named " " to be unstealable
        format slot 8 of player with nether star named " " to be unstealable
        format slot 9 of player with black glass named " " to be unstealable
        format slot 10 of player with yellow glass named " " to be unstealable
        format slot 11 of player with yellow glass named " " to be unstealable
        format slot 12 of player with yellow glass named " " to be unstealable
        format slot 13 of player with yellow glass named " " to be unstealable
        format slot 14 of player with yellow glass named " " to be unstealable
        format slot 15 of player with yellow glass named " " to be unstealable
        format slot 16 of player with yellow glass named " " to be unstealable
        format slot 17 of player with black glass named " " to be unstealable
        format slot 18 of player with black glass named " " to be unstealable
        format slot 19 of player with yellow glass named " " to be unstealable
        format slot 20 of player with enchanted book named "&f» &6&lEnchantement" with lore "&7➤ &eTéléporte-toi au &b&lTables d'Enchant||  &equi sont à disposition sur ce serveur||  &eafin de &b&lt'enchanter &e!||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp enchant"]
        format slot 21 of player with chest named "&f» &6&lCaisse" with lore "&7➤ &eTéléporte-toi au &b&lBoîtes||  &equi sont à ouvrables grâce||  &eau &b&lClés||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp boc"]
        format slot 23 of player with gold ingot named "&f» &6&lBanque" with lore "&7➤ &eTéléporte-toi a la &b&lBanque||  &equi te permettra de gagner de||  &el'&b&largent &een étant &b&lAFK &e!||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp banque"]
        format slot 24 of player with diamond pickaxe named "&f» &6&lMinage" with lore "&7➤ &eTéléporte-toi au &b&lmonde Minage||  &eafin de récolter des &b&lminerais||  &epour te faire su &b&lStuff||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp minage"]
        format slot 25 of player with yellow glass named " " to be unstealable
        format slot 26 of player with black glass named " " to be unstealable
        format slot 27 of player with black glass named " " to be unstealable
        format slot 28 of player with yellow glass named " " to be unstealable
        format slot 29 of player with emerald named "&f» &6&lAvenue Marchande" with lore "&7➤ &eTéléporte-toi a la &b&lzone Marchande||  &eoù tu y retrouvera tout les||  &b&lShop &edisponible &e!||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp marchand"]
        format slot 34 of player with yellow glass named " " to be unstealable
        format slot 35 of player with black glass named " " to be unstealable
        format slot 36 of player with black glass named " " to be unstealable
        format slot 37 of player with yellow glass named " " to be unstealable
        format slot 38 of player with yellow glass named " " to be unstealable
        format slot 39 of player with yellow glass named " " to be unstealable
        format slot 40 of player with yellow glass named " " to be unstealable
        format slot 41 of player with yellow glass named " " to be unstealable
        format slot 42 of player with yellow glass named " " to be unstealable
        format slot 43 of player with yellow glass named " " to be unstealable
        format slot 44 of player with black glass named " " to be unstealable
        format slot 45 of player with nether star named " " to be unstealable
        format slot 46 of player with black glass named " " to be unstealable
        format slot 47 of player with black glass named " " to be unstealable
        format slot 48 of player with black glass named " " to be unstealable
        format slot 49 of player with arrow named "&c&lRetour en jeu" to close
        format slot 50 of player with black glass named " " to be unstealable
        format slot 51 of player with black glass named " " to be unstealable
        format slot 52 of player with black glass named " " to be unstealable
        format slot 53 of player with nether star named " " to be unstealable

et voici mon /kit

 

#---------------------------------------------------------
#                                                        -
#                       Le /kit                          - 
#                                                        -
#                                                        -
#---------------------------------------------------------

command /kit:
    trigger:
        open chest with 6 rows named "&6&lZeranium &e» &c&oVos Kits" to player
        wait 2 tick

        format slot 0 of player with nether star named " " to be unstealable
        format slot 1 of player with yellow glass named " " to be unstealable
        format slot 2 of player with light green glass named "&aEmplacement Dévérouiller" to be unstealable
        format slot 3 of player with red glass named "&cEmplacement Bloquer" with lore "&e Montez en grades pour y avoir||&e accès !" to be unstealable
        format slot 4 of player with red glass named "&cEmplacement Bloquer" with lore "&e Montez en grades pour y avoir||&e accès !" to be unstealable
        format slot 5 of player with red glass named "&cEmplacement Bloquer" with lore "&e Montez en grades pour y avoir||&e accès !" to be unstealable
        format slot 6 of player with red glass named "&cEmplacement Bloquer" with lore "&e Montez en grades pour y avoir||&e accès !" to be unstealable
        format slot 7 of player with yellow glass named " " to be unstealable
        format slot 8 of player with nether star named " " to be unstealable
        format slot 9 of player with black glass named " " to be unstealable
        format slot 10 of player with yellow glass named " " to be unstealable
        format slot 11 of player with wooden sword named "&f» &8&lKit Mousaillon &f«" with lore "&7&m----------------------------||&7Ce kit contient&8:||&8- &7Full fer P1||&8- &7Une épée en fer T2||&8- &7Des outils en fer E2||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit mousaillon"]
        format slot 12 of player with stone sword named "&f» &3&lKit Pirate &f«" with lore "&7&m----------------------------||&bCe kit contient&9:||&9- &bFull Diamant P1||&9- &bUne épée en Diamant T2||&9- &bDes outils en Diamant E2||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit pirate"]
        format slot 13 of player with iron sword named "&f» &2&lKit Capitaine &f«" with lore "&7&m----------------------------||&aCe kit contient&2:||&2- &aFull Diamant P2||&2- &aUne épée en Diamant T3||&2- &aDes outils en Diamant E3||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit capitaine"]
        format slot 14 of player with golden sword named "&f» &6&lKit Corsair &f«" with lore "&7&m----------------------------||&eCe kit contient&6:||&6- &eFull Diamant P3 U1||&6- &eUne épée en Diamant T4 U1 F1||&6- &eDes outils en Diamant E4 U1||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit corsair"]
        format slot 15 of player with diamond sword named "&f» &5&lKit Phantom &f«" with lore "&7&m----------------------------||&dCe kit contient&5:||&5- &dFull Diamant P4 U2||&5- &dUne épée en Diamant T5 U2 F2||&5- &dDes outils en Diamant E5 U2||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit phantom"]
        format slot 16 of player with yellow glass named " " to be unstealable
        format slot 17 of player with black glass named " " to be unstealable
        format slot 18 of player with black glass named " " to be unstealable
        format slot 19 of player with yellow glass named " " to be unstealable
        format slot 20 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis le||&6 /Farm2Win &eou sur notre &6site &e!" to be unstealable
        format slot 21 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis le||&6 /Farm2Win &eou sur notre &6site &e!" to be unstealable
        format slot 22 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis le||&6 /Farm2Win &eou sur notre &6site &e!" to be unstealable
        format slot 23 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis le||&6 /Farm2Win &eou sur notre &6site &e!" to be unstealable
        format slot 24 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis|| &enotre &6site &e!" to be unstealable
        format slot 25 of player with yellow glass named " " to be unstealable
        format slot 26 of player with black glass named " " to be unstealable
        format slot 27 of player with black glass named " " to be unstealable
        format slot 28 of player with yellow glass named " " to be unstealable
        format slot 29 of player with grass named "&f» &2&lKit constructions &f«" with lore "&7&m----------------------------|| &3Un kit avec une assez grande|| &3variétée de blocs de décorations et autres.||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit contruction"]
        format slot 30 of player with enchantment table named "&f» &d&lKit Enchantement &f«" with lore "&7&m----------------------------|| &3Un kit contenant tout le|| &3nécéssaire pour réussir vos enchantements.||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit enchantement"]
        format slot 31 of player with ender pearl named "&f» &3&lKit Explorateur &f«" with lore "&7&m----------------------------|| &3Un kit avec tout les objets nécéssaire|| &3afin de partir a la recherche de pillage.||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit exploration"]
        format slot 32 of player with cauldron item named "&f» &6&lKit Alchimie &f«" with lore "&7&m----------------------------|| &3Un kit avec tout les ingrédients requis|| &3afin de préparer une grande variété de potions.||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit alchimie"]
        format slot 33 of player with diamond helmet named "&f» &5&lKit Abysse &f«" with lore "&7&m----------------------------|| &3Un kit trouvé par un groupe de pirates|| &3Il contient une armure précieuse...||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit abysse"]
        format slot 34 of player with yellow glass named " " to be unstealable
        format slot 35 of player with black glass named " " to be unstealable
        format slot 36 of player with black glass named " " to be unstealable
        format slot 37 of player with yellow glass named " " to be unstealable
        format slot 38 of player with yellow glass named " " to be unstealable
        format slot 39 of player with yellow glass named " " to be unstealable
        format slot 40 of player with yellow glass named " " to be unstealable
        format slot 41 of player with yellow glass named " " to be unstealable
        format slot 42 of player with yellow glass named " " to be unstealable
        format slot 43 of player with yellow glass named " " to be unstealable
        format slot 44 of player with black glass named " " to be unstealable
        format slot 45 of player with nether star named " " to be unstealable
        format slot 46 of player with black glass named " " to be unstealable
        format slot 47 of player with black glass named " " to be unstealable
        format slot 48 of player with black glass named " " to be unstealable
        format slot 49 of player with arrow named "&c&lRetour en jeu" to close
        format slot 50 of player with black glass named " " to be unstealable
        format slot 51 of player with black glass named " " to be unstealable
        format slot 52 of player with black glass named " " to be unstealable
        format slot 53 of player with nether star named " " to be unstealable

 

  • 0
Posté(e) (modifié)

c'est normal tu as créé une commande de warp mais tu le tu n'as pas mis d'argument donc la commande est pas bonne si tu créer une commande de warp, alors  le warp d'essential ne marchera plus (SKRIPT est  prioritaire sur les plugins)

par contre si tu utilises les warps d'essentials mais que tu veux que le menu s'affiche lorsque le joueur fait la commande tu as juste à faire

on first join:
	set {inventory.%player%} to false

on command:
	if executor is a player:
		if command is "warp" or "warps":
			if {inventory.%player%} is false:
				cancel event
				set {inventory.%player%} to true
				open chest with 6 rows named "&6&lZeranium &e» &c&oVos Kits" to player
				wait a tick
				format slot 0 of player with nether star named " " to be unstealable
				format slot 1 of player with black glass named " " to be unstealable
				format slot 2 of player with black glass named " " to be unstealable
				format slot 3 of player with black glass named " " to be unstealable
				format slot 4 of player with black glass named " " to be unstealable
				format slot 5 of player with black glass named " " to be unstealable
				format slot 6 of player with black glass named " " to be unstealable
				format slot 7 of player with black glass named " " to be unstealable
				format slot 8 of player with nether star named " " to be unstealable
				format slot 9 of player with black glass named " " to be unstealable
				format slot 10 of player with yellow glass named " " to be unstealable
				format slot 11 of player with yellow glass named " " to be unstealable
				format slot 12 of player with yellow glass named " " to be unstealable
				format slot 13 of player with yellow glass named " " to be unstealable
				format slot 14 of player with yellow glass named " " to be unstealable
				format slot 15 of player with yellow glass named " " to be unstealable
				format slot 16 of player with yellow glass named " " to be unstealable
				format slot 17 of player with black glass named " " to be unstealable
				format slot 18 of player with black glass named " " to be unstealable
				format slot 19 of player with yellow glass named " " to be unstealable
				format slot 20 of player with enchanted book named "&f» &6&lEnchantement" with lore "&7➤ &eTéléporte-toi au &b&lTables d'Enchant||  &equi sont à disposition sur ce serveur||  &eafin de &b&lt'enchanter &e!||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp enchant"]
				format slot 21 of player with chest named "&f» &6&lCaisse" with lore "&7➤ &eTéléporte-toi au &b&lBoîtes||  &equi sont à ouvrables grâce||  &eau &b&lClés||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp boc"]
				format slot 23 of player with gold ingot named "&f» &6&lBanque" with lore "&7➤ &eTéléporte-toi a la &b&lBanque||  &equi te permettra de gagner de||  &el'&b&largent &een étant &b&lAFK &e!||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp banque"]
				format slot 24 of player with diamond pickaxe named "&f» &6&lMinage" with lore "&7➤ &eTéléporte-toi au &b&lmonde Minage||  &eafin de récolter des &b&lminerais||  &epour te faire su &b&lStuff||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp minage"]
				format slot 25 of player with yellow glass named " " to be unstealable
				format slot 26 of player with black glass named " " to be unstealable
				format slot 27 of player with black glass named " " to be unstealable
				format slot 28 of player with yellow glass named " " to be unstealable
				format slot 29 of player with emerald named "&f» &6&lAvenue Marchande" with lore "&7➤ &eTéléporte-toi a la &b&lzone Marchande||  &eoù tu y retrouvera tout les||  &b&lShop &edisponible &e!||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp marchand"]
				format slot 34 of player with yellow glass named " " to be unstealable
				format slot 35 of player with black glass named " " to be unstealable
				format slot 36 of player with black glass named " " to be unstealable
				format slot 37 of player with yellow glass named " " to be unstealable
				format slot 38 of player with yellow glass named " " to be unstealable
				format slot 39 of player with yellow glass named " " to be unstealable
				format slot 40 of player with yellow glass named " " to be unstealable
				format slot 41 of player with yellow glass named " " to be unstealable
				format slot 42 of player with yellow glass named " " to be unstealable
				format slot 43 of player with yellow glass named " " to be unstealable
				format slot 44 of player with black glass named " " to be unstealable
				format slot 45 of player with nether star named " " to be unstealable
				format slot 46 of player with black glass named " " to be unstealable
				format slot 47 of player with black glass named " " to be unstealable
				format slot 48 of player with black glass named " " to be unstealable
				format slot 49 of player with arrow named "&c&lRetour en jeu" to close
				format slot 50 of player with black glass named " " to be unstealable
				format slot 51 of player with black glass named " " to be unstealable
				format slot 52 of player with black glass named " " to be unstealable
				format slot 53 of player with nether star named " " to be unstealable

on inventory close:
	set {inventory.%player%} to false

J'ai fais en sorte que quand le joueur fait un /warp, sa annule la commande et sa affiche le menu pour pas avoir l'erreur d'essentials. Une fois le menu ouvert sa te met la variable du joueur sur true pour que la commande ne soit plus annuler comme sa les joueurs peuvent  se tp que à partir du menu

Voila pour les kits

on command:
	if executor is a player:
		if command is "kit" or "kits":
			if {inventory.%player%} is false:
				cancel event
				set {inventory.%player%} to true
				open chest with 6 rows named "&6&lZeranium &e» &c&oVos Kits" to player
				wait a tick
				format slot 0 of player with nether star named " " to be unstealable
				format slot 1 of player with yellow glass named " " to be unstealable
				format slot 2 of player with light green glass named "&aEmplacement Dévérouiller" to be unstealable
				format slot 3 of player with red glass named "&cEmplacement Bloquer" with lore "&e Montez en grades pour y avoir||&e accès !" to be unstealable
				format slot 4 of player with red glass named "&cEmplacement Bloquer" with lore "&e Montez en grades pour y avoir||&e accès !" to be unstealable
				format slot 5 of player with red glass named "&cEmplacement Bloquer" with lore "&e Montez en grades pour y avoir||&e accès !" to be unstealable
				format slot 6 of player with red glass named "&cEmplacement Bloquer" with lore "&e Montez en grades pour y avoir||&e accès !" to be unstealable
				format slot 7 of player with yellow glass named " " to be unstealable
				format slot 8 of player with nether star named " " to be unstealable
				format slot 9 of player with black glass named " " to be unstealable
				format slot 10 of player with yellow glass named " " to be unstealable
				format slot 11 of player with wooden sword named "&f» &8&lKit Mousaillon &f«" with lore "&7&m----------------------------||&7Ce kit contient&8:||&8- &7Full fer P1||&8- &7Une épée en fer T2||&8- &7Des outils en fer E2||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit mousaillon"]
				format slot 12 of player with stone sword named "&f» &3&lKit Pirate &f«" with lore "&7&m----------------------------||&bCe kit contient&9:||&9- &bFull Diamant P1||&9- &bUne épée en Diamant T2||&9- &bDes outils en Diamant E2||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit pirate"]
				format slot 13 of player with iron sword named "&f» &2&lKit Capitaine &f«" with lore "&7&m----------------------------||&aCe kit contient&2:||&2- &aFull Diamant P2||&2- &aUne épée en Diamant T3||&2- &aDes outils en Diamant E3||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit capitaine"]
				format slot 14 of player with golden sword named "&f» &6&lKit Corsair &f«" with lore "&7&m----------------------------||&eCe kit contient&6:||&6- &eFull Diamant P3 U1||&6- &eUne épée en Diamant T4 U1 F1||&6- &eDes outils en Diamant E4 U1||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit corsair"]
				format slot 15 of player with diamond sword named "&f» &5&lKit Phantom &f«" with lore "&7&m----------------------------||&dCe kit contient&5:||&5- &dFull Diamant P4 U2||&5- &dUne épée en Diamant T5 U2 F2||&5- &dDes outils en Diamant E5 U2||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit phantom"]
				format slot 16 of player with yellow glass named " " to be unstealable
				format slot 17 of player with black glass named " " to be unstealable
				format slot 18 of player with black glass named " " to be unstealable
				format slot 19 of player with yellow glass named " " to be unstealable
				format slot 20 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis le||&6 /Farm2Win &eou sur notre &6site &e!" to be unstealable
				format slot 21 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis le||&6 /Farm2Win &eou sur notre &6site &e!" to be unstealable
				format slot 22 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis le||&6 /Farm2Win &eou sur notre &6site &e!" to be unstealable
				format slot 23 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis le||&6 /Farm2Win &eou sur notre &6site &e!" to be unstealable
				format slot 24 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis|| &enotre &6site &e!" to be unstealable
				format slot 25 of player with yellow glass named " " to be unstealable
				format slot 26 of player with black glass named " " to be unstealable
				format slot 27 of player with black glass named " " to be unstealable
				format slot 28 of player with yellow glass named " " to be unstealable
				format slot 29 of player with grass named "&f» &2&lKit constructions &f«" with lore "&7&m----------------------------|| &3Un kit avec une assez grande|| &3variétée de blocs de décorations et autres.||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit contruction"]
				format slot 30 of player with enchantment table named "&f» &d&lKit Enchantement &f«" with lore "&7&m----------------------------|| &3Un kit contenant tout le|| &3nécéssaire pour réussir vos enchantements.||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit enchantement"]
				format slot 31 of player with ender pearl named "&f» &3&lKit Explorateur &f«" with lore "&7&m----------------------------|| &3Un kit avec tout les objets nécéssaire|| &3afin de partir a la recherche de pillage.||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit exploration"]
				format slot 32 of player with cauldron item named "&f» &6&lKit Alchimie &f«" with lore "&7&m----------------------------|| &3Un kit avec tout les ingrédients requis|| &3afin de préparer une grande variété de potions.||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit alchimie"]
				format slot 33 of player with diamond helmet named "&f» &5&lKit Abysse &f«" with lore "&7&m----------------------------|| &3Un kit trouvé par un groupe de pirates|| &3Il contient une armure précieuse...||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit abysse"]
				format slot 34 of player with yellow glass named " " to be unstealable
				format slot 35 of player with black glass named " " to be unstealable
				format slot 36 of player with black glass named " " to be unstealable
				format slot 37 of player with yellow glass named " " to be unstealable
				format slot 38 of player with yellow glass named " " to be unstealable
				format slot 39 of player with yellow glass named " " to be unstealable
				format slot 40 of player with yellow glass named " " to be unstealable
				format slot 41 of player with yellow glass named " " to be unstealable
				format slot 42 of player with yellow glass named " " to be unstealable
				format slot 43 of player with yellow glass named " " to be unstealable
				format slot 44 of player with black glass named " " to be unstealable
				format slot 45 of player with nether star named " " to be unstealable
				format slot 46 of player with black glass named " " to be unstealable
				format slot 47 of player with black glass named " " to be unstealable
				format slot 48 of player with black glass named " " to be unstealable
				format slot 49 of player with arrow named "&c&lRetour en jeu" to close
				format slot 50 of player with black glass named " " to be unstealable
				format slot 51 of player with black glass named " " to be unstealable
				format slot 52 of player with black glass named " " to be unstealable
				format slot 53 of player with nether star named " " to be unstealable

Maintenant tes warps tu les creers appartir d'essentials et tu fais en sorte que les joueurs execute la commande /warp ou /kit quand ils clique sur un item dans ton menu

Modifié par zarco70
  • 0
Posté(e)
il y a 28 minutes, zarco70 a dit :

c'est normal tu as créé une commande de warp mais tu le tu n'as pas mis d'argument donc la commande est pas bonne si tu créer une commande de warp, alors  le warp d'essential ne marchera plus (SKRIPT est  prioritaire sur les plugins)

par contre si tu utilises les warps d'essentials mais que tu veux que le menu s'affiche lorsque le joueur fait la commande tu as juste à faire


on first join:
	set {inventory.%player%} to false

on command:
	if executor is a player:
		if command is "warp" or "warps":
			if {inventory.%player%} is false:
				cancel event
				set {inventory.%player%} to true
				open chest with 6 rows named "&6&lZeranium &e» &c&oVos Kits" to player
				wait a tick
				format slot 0 of player with nether star named " " to be unstealable
				format slot 1 of player with black glass named " " to be unstealable
				format slot 2 of player with black glass named " " to be unstealable
				format slot 3 of player with black glass named " " to be unstealable
				format slot 4 of player with black glass named " " to be unstealable
				format slot 5 of player with black glass named " " to be unstealable
				format slot 6 of player with black glass named " " to be unstealable
				format slot 7 of player with black glass named " " to be unstealable
				format slot 8 of player with nether star named " " to be unstealable
				format slot 9 of player with black glass named " " to be unstealable
				format slot 10 of player with yellow glass named " " to be unstealable
				format slot 11 of player with yellow glass named " " to be unstealable
				format slot 12 of player with yellow glass named " " to be unstealable
				format slot 13 of player with yellow glass named " " to be unstealable
				format slot 14 of player with yellow glass named " " to be unstealable
				format slot 15 of player with yellow glass named " " to be unstealable
				format slot 16 of player with yellow glass named " " to be unstealable
				format slot 17 of player with black glass named " " to be unstealable
				format slot 18 of player with black glass named " " to be unstealable
				format slot 19 of player with yellow glass named " " to be unstealable
				format slot 20 of player with enchanted book named "&f» &6&lEnchantement" with lore "&7➤ &eTéléporte-toi au &b&lTables d'Enchant||  &equi sont à disposition sur ce serveur||  &eafin de &b&lt'enchanter &e!||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp enchant"]
				format slot 21 of player with chest named "&f» &6&lCaisse" with lore "&7➤ &eTéléporte-toi au &b&lBoîtes||  &equi sont à ouvrables grâce||  &eau &b&lClés||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp boc"]
				format slot 23 of player with gold ingot named "&f» &6&lBanque" with lore "&7➤ &eTéléporte-toi a la &b&lBanque||  &equi te permettra de gagner de||  &el'&b&largent &een étant &b&lAFK &e!||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp banque"]
				format slot 24 of player with diamond pickaxe named "&f» &6&lMinage" with lore "&7➤ &eTéléporte-toi au &b&lmonde Minage||  &eafin de récolter des &b&lminerais||  &epour te faire su &b&lStuff||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp minage"]
				format slot 25 of player with yellow glass named " " to be unstealable
				format slot 26 of player with black glass named " " to be unstealable
				format slot 27 of player with black glass named " " to be unstealable
				format slot 28 of player with yellow glass named " " to be unstealable
				format slot 29 of player with emerald named "&f» &6&lAvenue Marchande" with lore "&7➤ &eTéléporte-toi a la &b&lzone Marchande||  &eoù tu y retrouvera tout les||  &b&lShop &edisponible &e!||&6||&4&l∎ &c&oClique ici pour y accéder" to run [make player execute command "/warp marchand"]
				format slot 34 of player with yellow glass named " " to be unstealable
				format slot 35 of player with black glass named " " to be unstealable
				format slot 36 of player with black glass named " " to be unstealable
				format slot 37 of player with yellow glass named " " to be unstealable
				format slot 38 of player with yellow glass named " " to be unstealable
				format slot 39 of player with yellow glass named " " to be unstealable
				format slot 40 of player with yellow glass named " " to be unstealable
				format slot 41 of player with yellow glass named " " to be unstealable
				format slot 42 of player with yellow glass named " " to be unstealable
				format slot 43 of player with yellow glass named " " to be unstealable
				format slot 44 of player with black glass named " " to be unstealable
				format slot 45 of player with nether star named " " to be unstealable
				format slot 46 of player with black glass named " " to be unstealable
				format slot 47 of player with black glass named " " to be unstealable
				format slot 48 of player with black glass named " " to be unstealable
				format slot 49 of player with arrow named "&c&lRetour en jeu" to close
				format slot 50 of player with black glass named " " to be unstealable
				format slot 51 of player with black glass named " " to be unstealable
				format slot 52 of player with black glass named " " to be unstealable
				format slot 53 of player with nether star named " " to be unstealable

on inventory close:
	set {inventory.%player%} to false

J'ai fais en sorte que quand le joueur fait un /warp, sa annule la commande et sa affiche le menu pour pas avoir l'erreur d'essentials. Une fois le menu ouvert sa te met la variable du joueur sur true pour que la commande ne soit plus annuler comme sa les joueurs peuvent  se tp que à partir du menu

Voila pour les kits


on command:
	if executor is a player:
		if command is "kit" or "kits":
			if {inventory.%player%} is false:
				cancel event
				set {inventory.%player%} to true
				open chest with 6 rows named "&6&lZeranium &e» &c&oVos Kits" to player
				wait a tick
				format slot 0 of player with nether star named " " to be unstealable
				format slot 1 of player with yellow glass named " " to be unstealable
				format slot 2 of player with light green glass named "&aEmplacement Dévérouiller" to be unstealable
				format slot 3 of player with red glass named "&cEmplacement Bloquer" with lore "&e Montez en grades pour y avoir||&e accès !" to be unstealable
				format slot 4 of player with red glass named "&cEmplacement Bloquer" with lore "&e Montez en grades pour y avoir||&e accès !" to be unstealable
				format slot 5 of player with red glass named "&cEmplacement Bloquer" with lore "&e Montez en grades pour y avoir||&e accès !" to be unstealable
				format slot 6 of player with red glass named "&cEmplacement Bloquer" with lore "&e Montez en grades pour y avoir||&e accès !" to be unstealable
				format slot 7 of player with yellow glass named " " to be unstealable
				format slot 8 of player with nether star named " " to be unstealable
				format slot 9 of player with black glass named " " to be unstealable
				format slot 10 of player with yellow glass named " " to be unstealable
				format slot 11 of player with wooden sword named "&f» &8&lKit Mousaillon &f«" with lore "&7&m----------------------------||&7Ce kit contient&8:||&8- &7Full fer P1||&8- &7Une épée en fer T2||&8- &7Des outils en fer E2||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit mousaillon"]
				format slot 12 of player with stone sword named "&f» &3&lKit Pirate &f«" with lore "&7&m----------------------------||&bCe kit contient&9:||&9- &bFull Diamant P1||&9- &bUne épée en Diamant T2||&9- &bDes outils en Diamant E2||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit pirate"]
				format slot 13 of player with iron sword named "&f» &2&lKit Capitaine &f«" with lore "&7&m----------------------------||&aCe kit contient&2:||&2- &aFull Diamant P2||&2- &aUne épée en Diamant T3||&2- &aDes outils en Diamant E3||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit capitaine"]
				format slot 14 of player with golden sword named "&f» &6&lKit Corsair &f«" with lore "&7&m----------------------------||&eCe kit contient&6:||&6- &eFull Diamant P3 U1||&6- &eUne épée en Diamant T4 U1 F1||&6- &eDes outils en Diamant E4 U1||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit corsair"]
				format slot 15 of player with diamond sword named "&f» &5&lKit Phantom &f«" with lore "&7&m----------------------------||&dCe kit contient&5:||&5- &dFull Diamant P4 U2||&5- &dUne épée en Diamant T5 U2 F2||&5- &dDes outils en Diamant E5 U2||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit phantom"]
				format slot 16 of player with yellow glass named " " to be unstealable
				format slot 17 of player with black glass named " " to be unstealable
				format slot 18 of player with black glass named " " to be unstealable
				format slot 19 of player with yellow glass named " " to be unstealable
				format slot 20 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis le||&6 /Farm2Win &eou sur notre &6site &e!" to be unstealable
				format slot 21 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis le||&6 /Farm2Win &eou sur notre &6site &e!" to be unstealable
				format slot 22 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis le||&6 /Farm2Win &eou sur notre &6site &e!" to be unstealable
				format slot 23 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis le||&6 /Farm2Win &eou sur notre &6site &e!" to be unstealable
				format slot 24 of player with red glass named "&cEmplacement Bloqué" with lore "&e Achetez ce kit depuis|| &enotre &6site &e!" to be unstealable
				format slot 25 of player with yellow glass named " " to be unstealable
				format slot 26 of player with black glass named " " to be unstealable
				format slot 27 of player with black glass named " " to be unstealable
				format slot 28 of player with yellow glass named " " to be unstealable
				format slot 29 of player with grass named "&f» &2&lKit constructions &f«" with lore "&7&m----------------------------|| &3Un kit avec une assez grande|| &3variétée de blocs de décorations et autres.||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit contruction"]
				format slot 30 of player with enchantment table named "&f» &d&lKit Enchantement &f«" with lore "&7&m----------------------------|| &3Un kit contenant tout le|| &3nécéssaire pour réussir vos enchantements.||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit enchantement"]
				format slot 31 of player with ender pearl named "&f» &3&lKit Explorateur &f«" with lore "&7&m----------------------------|| &3Un kit avec tout les objets nécéssaire|| &3afin de partir a la recherche de pillage.||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit exploration"]
				format slot 32 of player with cauldron item named "&f» &6&lKit Alchimie &f«" with lore "&7&m----------------------------|| &3Un kit avec tout les ingrédients requis|| &3afin de préparer une grande variété de potions.||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit alchimie"]
				format slot 33 of player with diamond helmet named "&f» &5&lKit Abysse &f«" with lore "&7&m----------------------------|| &3Un kit trouvé par un groupe de pirates|| &3Il contient une armure précieuse...||&7&m----------------------------||&4&l∎ &c&oClique ici pour l'utiliser" to run [make player execute command "/kit abysse"]
				format slot 34 of player with yellow glass named " " to be unstealable
				format slot 35 of player with black glass named " " to be unstealable
				format slot 36 of player with black glass named " " to be unstealable
				format slot 37 of player with yellow glass named " " to be unstealable
				format slot 38 of player with yellow glass named " " to be unstealable
				format slot 39 of player with yellow glass named " " to be unstealable
				format slot 40 of player with yellow glass named " " to be unstealable
				format slot 41 of player with yellow glass named " " to be unstealable
				format slot 42 of player with yellow glass named " " to be unstealable
				format slot 43 of player with yellow glass named " " to be unstealable
				format slot 44 of player with black glass named " " to be unstealable
				format slot 45 of player with nether star named " " to be unstealable
				format slot 46 of player with black glass named " " to be unstealable
				format slot 47 of player with black glass named " " to be unstealable
				format slot 48 of player with black glass named " " to be unstealable
				format slot 49 of player with arrow named "&c&lRetour en jeu" to close
				format slot 50 of player with black glass named " " to be unstealable
				format slot 51 of player with black glass named " " to be unstealable
				format slot 52 of player with black glass named " " to be unstealable
				format slot 53 of player with nether star named " " to be unstealable

Maintenant tes warps tu les creers appartir d'essentials et tu fais en sorte que les joueurs execute la commande /warp ou /kit quand ils clique sur un item dans ton menu

Hey, merci, mais quand je fait les commande, cela ne m'affiche pas le menuGUI...

 

  • 0
Posté(e) (modifié)

c'est normal il faut que tu mette cette variable sur false

{inventory.%player%}

je te fais la commande

command /reset:
	trigger:
		set {inventory.%player%} to false

tkt dans le code plus haut j'ai mis un "on First join" qui permettra de mettre par défaut la variable des joueurs sur false quand ils rejoindront pour la première fois le serveur

Modifié par zarco70
Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • Créer...

Information importante

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.