Aller au contenu
  • 0

Is not an entity type


Question

Posté(e) (modifié)
command /ss <player>:
    permission: ss.moderation
    trigger:
        wait 2 ticks 
        open chest with 1 rows named "&4/SS (Dedi ferdigames):" to player
        format slot 0 of player with skull of arg 1 named "&b%arg 1%" to be unstealable
        format slot 1 of player with Black Stained Glass Pane named " " to be unstealable 
        format slot 2 of player with Diamond Sword named "&4Gameplay" with lore "&6Listes des sanctions liées au gameplay" to close then run [make player execute command "§ss_gameplay %arg 1%"]
        format slot 3 of player with Black Stained Glass Pane named " " to be unstealable
        format slot 4 of player with Golden Apple named "&4Chat" with lore "&6Liste des sanctions liées au chat" to close then run [make player execute command "§ss_chat"]
        format slot 5 of player with Black Stained Glass Pane named " " to be unstealable
        format slot 6 of player with Black Stained Glass Pane named " " to be unstealable
        format slot 7 of player with Black Stained Glass Pane named " " to be unstealable
        format slot 8 of player with Black Stained Glass Pane named " " to be unstealable
        format slot 9 of player with Black Stained Glass Pane named " " to be unstealable
        
command /ss_gameplay <player>:
     permission ss.moderation
     trigger: 
        wait 2 ticks 
        open chest with 1 rows named "&6Gameplay" to player
        format slot 0 of player with Iron Sword named "X-ray" with lore "&4Bannit le joueur concerné pendant 30 jours pour X-Ray" to close then run [make player execute command "§tempban %arg 1% 30 days Cheat X-Ray"]
        format slot 1 of player with Golden Sword named "Kill Aura" with lore "&4Bannit 60 jours le joueur concerné pendant pour KillAura/ff" to close then run [make player execute command "§tempban %arg 1% 60 days KillAura/ff"]
        format slot 2 of player with Diamond Sword named "Fly/Reach" with lore "&4Bannit le joueur concerné a vie" to close then run [make player execute command "§banip %arg 1% Fly/Reach"]
        format slot 3 of player with Golden Apple named "Cheat" with lore "&4Bannit pour un type de cheat non précisé" to close then run [make player execute command "§tempban %arg 1% 30 days Cheat"]
        
command /ss_chat <player>:
    permission: ss.moderation
    trigger:
        wait 2 ticks 
        open chest with 1 rows named "&6Chat" to player
        format slot 0 of player with Carrot named "&fInsultes légères" with lore "&4Sanctionne les insultes légères (Ton pere le chauve ou Ta mere la branche...)" to close then run [make player execute command "§mute %arg 1% 10 minutes"]
        format slot 1 of player with Apple named "&fInsultes" with lore "&4Sanctionne les insultes type Nique ta mere ou autres" to close then run [make player execute command "§mute %arg 1% 2 hours"]
        format slot 2 of player with Golden Apple named "&fInsultes Staff/menaces de boot/mort/IRL" with lore "&4Sanctionne les Insultes Staff ou les menaces" to close then run [make player execute command "§tempban %arg 1% 1 hour"]

Bonjour, 

Je débute dans le skript et j'ai fait un système de gui de modération pour mon serveur seulment ca ne marche pas et je ne sais pas pourquoi !Si quelqu'un pouvait m'aider ou me conseiller ce serait cool ^^ 

J'ai également mis les erreurs sur ton conseil UpSwenCake.

Merci d'avance de votre aide, cordialement

 

Soku_u

ErreurSKRIPT.PNG

ErreurSKRIPT2.PNG

Modifié par Soku_u
Besoin de plus d'infos

5 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Bonjour,

Je t'invite à mettre ton code dans les balises prévues à cet effet -> Clique sur les crochets opposés et coller ton code.

Je t'invite aussi à renseigner la version de Skript ainsi que les Addons utilisés. En complément, pourrais tu donner un screen de l'erreur ?

Merci.

  • 0
Posté(e) (modifié)

Tu as fait l'erreur la plus répandue dans Skript : tu a utiliser, sur la même ligne un TAB et un ESPACE ! (Skript ne comprend donc pas le "trigger" et tout le code devient faux...)

 

Pour y remédier, tu as juste à presser les touches CTRL + F et aller dans l'onglet "Remplacer". Tu mets dans "Recherche" un "\t" (n'oublie pas de cocher le mode "étendue") et dans "Remplacer par" 4 ESPACES puis tu cliques sur "Remplacer tout".

(Je te conseil, si tu utilise Notepad++, d'aller dans tes paramètres et de cliquer sur l'onglet "Langage" puis de cocher dans la partie "Tabulation" la case "Insérer des espaces")

 

N'oublie pas que cette règle est fondamentale ^^

 

SwenCake. 

Modifié par Invité
  • 0
Posté(e)

Salut ! Je me suis permis de passer ton code entièrement en tuske, pour éviter certains bug, gagner en rapidité et en fonctionnalité et pour que tu sois a jour. Si tu ne l'a pas déjà il te faudra donc tuske https://skripttools.net/?q=tuske

J'ai aussi corrigé des erreurs de français/de typographie qu'il y avait. Voici donc le code :

command /ss <player>:
	permission: ss.moderation
	trigger:
		open virtual chest with 1 row named "&4/SS (Dedi ferdigames):" to player
		format gui slot 0 of player with skull of arg 1 named "&b%arg 1%" to do nothing
		format gui slot 1,3,5,6,7,8,9 of player with Black Stained Glass Pane named " " to do nothing
		format gui slot 2 of player with Diamond Sword named "&4Gameplay" with lore "&6Listes des sanctions liées au gameplay" to run:
			close player's inventory
			wait 2 tick
			open virtual chest with 1 row named "&6Gameplay" to player
			format gui slot 0 of player with Iron Sword named "X-ray" with lore "&4Bannit le joueur concerné pendant 30 jours pour X-Ray" to run:
				close player's inventory
				make player execute command "§tempban %arg 1% 30 days Cheat X-Ray"
			format gui slot 1 of player with Golden Sword named "Kill Aura" with lore "&4Bannit le joueur concerné pendant 60 jours pour KillAura/ff" to run:
				close player's inventory
				make player execute command "§tempban %arg 1% 60 days KillAura/ff"
			format gui slot 2 of player with Diamond Sword named "Fly/Reach" with lore "&4Bannit le joueur concerné à vie" to run:
				close player's inventory
				make player execute command "§banip %arg 1% Fly/Reach"
			format gui slot 3 of player with Golden Apple named "Cheat" with lore "&4Bannit pour un type de cheat non précisé" to run:
				close player's inventory
				make player execute command "§tempban %arg 1% 30 days Cheat"

		format gui slot 4 of player with Golden Apple named "&4Chat" with lore "&6Liste des sanctions liées au chat" to run:
			close player's inventory
			wait 2 tick
			open virtual chest with 1 row named "&6Chat" to player
			format gui slot 0 of player with Carrot named "&fInsultes légères" with lore "&4Sanctionne les insultes légères (Ton père le chauve ou Ta mère la branche...)" to run:
				close player's inventory
				make player execute command "§mute %arg 1% 10 minutes"
			format gui slot 1 of player with Apple named "&fInsultes" with lore "&4Sanctionne les insultes type Nique ta mère ou autres" to run:
				close player's inventory
				make player execute command "§mute %arg 1% 2 hours"
			format gui slot 2 of player with Golden Apple named "&fInsultes Staff/menaces de boot/mort/IRL" with lore "&4Sanctionne les Insultes Staff ou les menaces" to run:
				close player's inventory
				make player execute command "§tempban %arg 1% 1 hour"

je ne l'ai pas tester donc désolé s'il y a des petites erreurs. J'ai du coup aussi laissé tes wait 2 ticks car je ne sais pas si ca fonctionne sans, essaye quand meme de les enlever ce sera toujours ca de gagner. 

Have fun !

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.