Aller au contenu
  • 0

Mon serveur ne détecte pas mes commandes


Question

Posté(e)

Bonjour, je suis actuellement entrain de créer un skript de Modération en 1.8 mais j'ai rencontrer un petit soucis, mes commandes ne sont pas détectées par le serveur, je possède les add-ons: SkQuery, skRayFall, TuSKe, WildSkript, skUtilities.

Voici un petit extrait de mes commandes:

Merci d'avance.

command /{@commande_principale} <text> <player>:
	permission: {@permission_principale}
	permission message: {@message_permission_refuser}
	usage: {@usage}
	trigger:
		if arg-1 is "on":
			if arg-2 is not set:
				set {mod.%sender%} to true
				set player's game mode to creative
				set {inventaire.%sender%} to player's serialized inventory
				wait 3 ticks
				clear player's inventory
				wait 1.5 ticks
				set slot 0 of player's inventory to 1 {@recul_objet1} of knockback 1, unbreaking 100 named "{@recul_nom1}"
				wait 1.5 ticks
				set slot 1 of player's inventory to 1 {@recul_objet2} of knockback 2, unbreaking 100 named "{@recul_nom2}"
				wait 1.5 ticks
				set slot 2 of player's inventory to 1 {@randomtp_objet} named "{@randomtp_nom}"
				wait 1.5 ticks
				set slot 4 of player's inventory to 1 {@invisibilité_objet_on} named "{@invisibilité_objet_on}"
				wait 1.5 ticks
				set slot 6 of player's inventory to 1 {@gelé_objet_on} named "{@gelé_objet_on}"
				wait 1 tick
				send "{@prefix} {@message_on}" to sender
			if arg-1 is "on":
				if arg-2 is set:
					set {mod.%arg-2%} to true
					set {inventaire.%arg-2%} to arg-2's serialized inventory
					wait 3 ticks
					clear arg-2's inventory
					set arg-2's game mode to creative
					wait 3 ticks
					set slot 0 of arg-2's inventory to 1 {@recul_objet1} of knockback 1, unbreaking 100 named "{@recul_nom1}"
					wait 1.5 ticks
					set slot 1 of arg-2's inventory to 1 {@recul_objet2} of knockback 2, unbreaking 100 named "{@recul_nom2}"
					wait 1.5 ticks
					set slot 2 of arg-2's inventory to 1 {@randomtp_objet} named "{@randomtp_nom}"
					wait 1.5 ticks
					set slot 4 of arg-2's inventory to 1 {@invisibilité_objet_on} named "{@invisibilité_objet_on}"
					wait 1.5 ticks
					set slot 6 of arg-2's inventory to 1 {@gelé_objet_on} named "{@gelé_objet_on}"
					wait 1 tick
					send "{@prefix} {@message_on_player}" to arg-2
			if arg-1 is "off":
				if arg-2 is not set:
					set {mod.%sender%} to false
					clear player's inventory
					wait 3 ticks
					set player's game mode to survival
					restore inventory of player from {inventaire.%sender%}
					send "{@prefix} {@message_off}" to sender
			if arg-1 is "off":
				if arg-2 is set:
					set {mod.%arg-2%} to false
					clear arg-2's inventory
					wait 3 ticks
					set arg-2's game mode to survival
					restore inventory of player from {inventaire.%arg-2%}
					send "{@prefix} {@message_off}" to arg-2
			if arg-1 is not set:
				send "{@prefix} {@usage}" to sender
			if arg-1 is not set:
				if arg-2 is set:
					send "{@prefix} {@usage}" to sender

3 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Le 04/03/2019 à 17:28, xDragiie_ a dit :

Bonjour, je suis actuellement entrain de créer un skript de Modération en 1.8 mais j'ai rencontrer un petit soucis, mes commandes ne sont pas détectées par le serveur, je possède les add-ons: SkQuery, skRayFall, TuSKe, WildSkript, skUtilities.

Voici un petit extrait de mes commandes:

Merci d'avance.


command /{@commande_principale} <text> <player>:
	permission: {@permission_principale}
	permission message: {@message_permission_refuser}
	usage: {@usage}
	trigger:
		if arg-1 is "on":
			if arg-2 is not set:
				set {mod.%sender%} to true
				set player's game mode to creative
				set {inventaire.%sender%} to player's serialized inventory
				wait 3 ticks
				clear player's inventory
				wait 1.5 ticks
				set slot 0 of player's inventory to 1 {@recul_objet1} of knockback 1, unbreaking 100 named "{@recul_nom1}"
				wait 1.5 ticks
				set slot 1 of player's inventory to 1 {@recul_objet2} of knockback 2, unbreaking 100 named "{@recul_nom2}"
				wait 1.5 ticks
				set slot 2 of player's inventory to 1 {@randomtp_objet} named "{@randomtp_nom}"
				wait 1.5 ticks
				set slot 4 of player's inventory to 1 {@invisibilité_objet_on} named "{@invisibilité_objet_on}"
				wait 1.5 ticks
				set slot 6 of player's inventory to 1 {@gelé_objet_on} named "{@gelé_objet_on}"
				wait 1 tick
				send "{@prefix} {@message_on}" to sender
			if arg-1 is "on":
				if arg-2 is set:
					set {mod.%arg-2%} to true
					set {inventaire.%arg-2%} to arg-2's serialized inventory
					wait 3 ticks
					clear arg-2's inventory
					set arg-2's game mode to creative
					wait 3 ticks
					set slot 0 of arg-2's inventory to 1 {@recul_objet1} of knockback 1, unbreaking 100 named "{@recul_nom1}"
					wait 1.5 ticks
					set slot 1 of arg-2's inventory to 1 {@recul_objet2} of knockback 2, unbreaking 100 named "{@recul_nom2}"
					wait 1.5 ticks
					set slot 2 of arg-2's inventory to 1 {@randomtp_objet} named "{@randomtp_nom}"
					wait 1.5 ticks
					set slot 4 of arg-2's inventory to 1 {@invisibilité_objet_on} named "{@invisibilité_objet_on}"
					wait 1.5 ticks
					set slot 6 of arg-2's inventory to 1 {@gelé_objet_on} named "{@gelé_objet_on}"
					wait 1 tick
					send "{@prefix} {@message_on_player}" to arg-2
			if arg-1 is "off":
				if arg-2 is not set:
					set {mod.%sender%} to false
					clear player's inventory
					wait 3 ticks
					set player's game mode to survival
					restore inventory of player from {inventaire.%sender%}
					send "{@prefix} {@message_off}" to sender
			if arg-1 is "off":
				if arg-2 is set:
					set {mod.%arg-2%} to false
					clear arg-2's inventory
					wait 3 ticks
					set arg-2's game mode to survival
					restore inventory of player from {inventaire.%arg-2%}
					send "{@prefix} {@message_off}" to arg-2
			if arg-1 is not set:
				send "{@prefix} {@usage}" to sender
			if arg-1 is not set:
				if arg-2 is set:
					send "{@prefix} {@usage}" to sender

Personnellement, cela m'etait déja arriver et j'ai juste changer de version de skript et ça a marcheé

  • 0
Posté(e)

Bonsoir,

Si les commandes ne fonctionnent pas, il y a trois possibilités :

1 - La version de t'es addons ne sont pas à jour / incompatible avec ta version de Skript
2 - Ta version de Skript n'est pas à la bonne version
pour celle de ton serveur.
3 - Tu as fais une assez grosse mise à jour de Skript, sans supprimé le dossier de configuration de "Skript". J'ai déjà rencontré plusieurs fois ce problème, c'est assez dérangeant mais simple à résoudre.

Bonne continuation,
Rémi.

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.