Aller au contenu
  • 0

Severe error - Skript de restart


Question

Posté(e)

Hey ^^

 

J'ai besoin de votre aide pour un soucis que je rencontre avec mon skript :(

J'utilise avec le plugin Pitchout plusieurs skripts dont celui-ci, à la fin de la partie le plugin lance la commande /restartA et qui lance mon skript, lui-même à pour rôle de faire un décompte et d'envoyer les joueurs sur le serveur lobby avant le restart... mais voilà cela ne marche pas très bien!

 

Mon skript

command /restartA:
description: restart
permission: restart.lobby
permission message: Cette commande est interdite ou non disponible.
executable by: console and players
trigger:
	loop all players:
		wait 1 second
		send player title "&7Redémarrage dans &e5" with subtitle "" for 1 seconds
		execute console command "/playsound note.snare @a %x-coordinate of player's location% %y-coordinate of player's location% %z-coordinate of player's location% 1 1 1"
		wait 1 second
		send player title "&7Redémarrage dans &e4" with subtitle "" for 1 seconds
		execute console command "/playsound note.snare @a %x-coordinate of player's location% %y-coordinate of player's location% %z-coordinate of player's location% 1 1 1"
		wait 1 second
		send player title "&7Redémarrage dans &e3" with subtitle "" for 1 seconds
		execute console command "/playsound note.snare @a %x-coordinate of player's location% %y-coordinate of player's location% %z-coordinate of player's location% 1 1 1"
		wait 1 second
		send player title "&7Redémarrage dans &e2" with subtitle "" for 1 seconds
		execute console command "/playsound note.snare @a %x-coordinate of player's location% %y-coordinate of player's location% %z-coordinate of player's location% 1 1 1"
		wait 1 second
		send player title "&7Redémarrage dans &e1" with subtitle "" for 1 seconds
		execute console command "/playsound note.snare @a %x-coordinate of player's location% %y-coordinate of player's location% %z-coordinate of player's location% 1 1 1"
		wait 1 second
		bungeecord connect player to "MG-Fallenspawn"
		wait 3 seconds
		console command "restart"

 

L'erreur dans les logs

[11:31:44] [server thread/ERROR]: #!#! [skript] Severe Error:
[11:31:44] [server thread/ERROR]: #!#! 
[11:31:44] [server thread/ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[11:31:44] [server thread/ERROR]: #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/
[11:31:44] [server thread/ERROR]: #!#! and check whether this error has already been reported.
[11:31:44] [server thread/ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,
[11:31:44] [server thread/ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[11:31:44] [server thread/ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[11:31:44] [server thread/ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[11:31:44] [server thread/ERROR]: #!#! 
[11:31:44] [server thread/ERROR]: #!#! Stack trace:
[11:31:44] [server thread/ERROR]: #!#! java.lang.NullPointerException
[11:31:44] [server thread/ERROR]: #!#!     at net.rayfall.eyesniper2.skRayFall.V1_8_4.EffTitleV1_8_4.execute(EffTitleV1_8_4.java:53)
[11:31:44] [server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:50)
[11:31:44] [server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)
[11:31:44] [server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)
[11:31:44] [server thread/ERROR]: #!#!     at ch.njol.skript.effects.Delay$1.run(Delay.java:85)
[11:31:44] [server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
[11:31:44] [server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)
[11:31:44] [server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723)
[11:31:44] [server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[11:31:44] [server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[11:31:44] [server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[11:31:44] [server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
[11:31:44] [server thread/ERROR]: #!#! 
[11:31:44] [server thread/ERROR]: #!#! Version Information:
[11:31:44] [server thread/ERROR]: #!#!   Skript: 2.1.2
[11:31:44] [server thread/ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[11:31:44] [server thread/ERROR]: #!#!   Minecraft: 1.8.8
[11:31:44] [server thread/ERROR]: #!#!   Java: 1.8.0_66
[11:31:44] [server thread/ERROR]: #!#! 
[11:31:44] [server thread/ERROR]: #!#! Running CraftBukkit: false
[11:31:44] [server thread/ERROR]: #!#! 
[11:31:44] [server thread/ERROR]: #!#! Current node: null
[11:31:44] [server thread/ERROR]: #!#! Current item: null
[11:31:44] [server thread/ERROR]: #!#! 
[11:31:44] [server thread/ERROR]: #!#! Thread: Server thread
[11:31:44] [server thread/ERROR]: #!#! 
[11:31:44] [server thread/ERROR]: #!#! End of Error.
[11:31:44] [server thread/ERROR]: #!#! 

 

J'ai pas trouvé de solution, donc j'espère que vous avez une pour moi ^^

J'utilise

- Skript.jar

- skRayFall_v1.7.4.jar

- SkQuery.jar

- SkExtras.jar

 

Voilà, merci d'avance :p

10 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Déjà il te faut WildSkript pour connecter avec BungeeCord ! :D

Après recontacte nous si cela ne fonctionne pas ! :D

 

Oui j'ai oublié de le citer mais j'ai déjà wildskript, en faite j'ai oublié de préciser mais le skript marche dans un certain sens...

Si j'exécute manuellement la commande /restartA, cela marche impeccablement! Cette erreur survient si je demande au plugin Pitchout d'exécuter la commande, qui est donc une commande console, et à ce moment là j'obtiens cette erreur! La commande ne marche pas non plus si je fais la commande manuellement dans la console...

  • 0
Posté(e)

Haha :')

Tu as fait une erreur assez simple, tu as utilisé "player" dans la loop plutôt que "loop-player", donc déjà cela envoie le title au joueur qui a réalisé la commande, en gros tu dois remplacé tous les "player" par "loop-player" après le "loop all players:"

  • 0
Posté(e)

Le problème est à moitié résolu, seulement un joueur est bien redirigé vers le lobby et à les messages, enfin le loop prend qu'un joueur quoi ><

Voici ce que donne mon skript:

 


command /restartA:
executable by: console
trigger:
	loop all players:
		wait 1 second
		send loop-player title "&7Redémarrage dans &e5" with subtitle "" for 1 seconds
		execute console command "/playsound note.snare @a %x-coordinate of loop-player's location% %y-coordinate of loop-player's location% %z-coordinate of loop-player's location% 1 1 1"
		wait 1 second
		send loop-player title "&7Redémarrage dans &e4" with subtitle "" for 1 seconds
		execute console command "/playsound note.snare @a %x-coordinate of loop-player's location% %y-coordinate of loop-player's location% %z-coordinate of loop-player's location% 1 1 1"
		wait 1 second
		send loop-player title "&7Redémarrage dans &e3" with subtitle "" for 1 seconds
		execute console command "/playsound note.snare @a %x-coordinate of loop-player's location% %y-coordinate of loop-player's location% %z-coordinate of loop-player's location% 1 1 1"
		wait 1 second
		send loop-player title "&7Redémarrage dans &e2" with subtitle "" for 1 seconds
		execute console command "/playsound note.snare @a %x-coordinate of loop-player's location% %y-coordinate of loop-player's location% %z-coordinate of loop-player's location% 1 1 1"
		wait 1 second
		send loop-player title "&7Redémarrage dans &e1" with subtitle "" for 1 seconds
		execute console command "/playsound note.snare @a %x-coordinate of loop-player's location% %y-coordinate of loop-player's location% %z-coordinate of loop-player's location% 1 1 1"
		wait 1 second
		bungeecord connect loop-player to "MG-Fallenspawn"
		wait 3 seconds
		console command "restart"

  • 0
Posté(e)

Je suis le seul à recevoir les effets, et je viens de voir aussi que je suis le seul op... mais pourquoi?

Il faut des permissions par rapport à ce qu'il y a de mon skript? On est d'accord que non?

  • 0
Posté(e)

Premièrement, le loop player va looper un premier joueur, executer tout le code et ensuite looper le deuxième joueur, sauf que le code fini par /restart donc seul le premier joueur est tp et le deuxième n'a pas le temps vu que le serveur redémarre

  • 0
Posté(e)
Premièrement, le loop player va looper un premier joueur, executer tout le code et ensuite looper le deuxième joueur, sauf que le code fini par /restart donc seul le premier joueur est tp et le deuxième n'a pas le temps vu que le serveur redémarre

 

Merci pour ta réponse Masterfelix, en effet le loop n'a pas le temps de se répéter ><

×
×
  • 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.