Aller au contenu
  • 0

Erreur d'execution d'un .sh avec skutilities


Question

Posté(e)

Version de Minecraft : 1.9.4
Version de Skript : 2.4.1

Addons utilisés: SkRayFall, sKLib, TuSKe, sKUtilities, SkStuff, skript-yaml, SkQuery, Skellett, skript-db

Description du script :

Hello ^^
Je travaille sur un skript permettant de générer des executables .sh et de les lancer, pour pouvoir executer des commandes linux sur mon vps.

Voici le code

command exec <text>:
	permission: Super.rare.permission
	trigger:
		delete file "temp.sh"
		create file "temp.sh"
		write "%arg-1%" at line 1 to file "temp.sh"
		run script at "temp.sh"
		delete file "temp.sh"

Tout s'execute parfaitement bien jusqu'à la ligne de code :

run file at "../sh/sh%arg 1%.sh"

J'obtiens une internal error.
En regardant dans la console, voilà ce que j'ai pu trouver

[07:11:52 ERROR]: #!#!
[07:11:52 ERROR]: #!#! [Skript] Severe Error:
[07:11:52 ERROR]: #!#!
[07:11:52 ERROR]: #!#! Something went horribly wrong with Skript.
[07:11:52 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[07:11:52 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[07:11:52 ERROR]: #!#! Here is full list of them:
[07:11:52 ERROR]: #!#! skRayFall (https://sk.rayfall.net/) skLib (https://github.com/WheezyGold7931/skLib/) TuSKe (github.com/Tuke-Nuke/TuSKe) skUtilities (https://tim740.github.io/) SkStuff skript-yaml SkQuery Skellett (https://forums.skunity.com/resources/skellett-the-addon-with-a-beast-name.24/) skript-db
[07:11:52 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[07:11:52 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[07:11:52 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[07:11:52 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[07:11:52 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[07:11:52 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[07:11:52 ERROR]: #!#!
[07:11:52 ERROR]: #!#! Stack trace:
[07:11:52 ERROR]: #!#! java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
[07:11:52 ERROR]: #!#!     at java.awt.Desktop.getDesktop(Desktop.java:142)
[07:11:52 ERROR]: #!#!     at uk.tim740.skUtilities.files.EffRunApp.execute(EffRunApp.java:26)
[07:11:52 ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
[07:11:52 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[07:11:52 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[07:11:52 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[07:11:52 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:292)
[07:11:52 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:251)
[07:11:52 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:195)
[07:11:52 ERROR]: #!#!     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[07:11:52 ERROR]: #!#!     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
[07:11:52 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_9_R2.CraftServer.dispatchCommand(CraftServer.java:645)
[07:11:52 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_9_R2.CraftServer.dispatchServerCommand(CraftServer.java:631)
[07:11:52 ERROR]: #!#!     at net.minecraft.server.v1_9_R2.DedicatedServer.aL(DedicatedServer.java:437)
[07:11:52 ERROR]: #!#!     at net.minecraft.server.v1_9_R2.DedicatedServer.D(DedicatedServer.java:400)
[07:11:52 ERROR]: #!#!     at net.minecraft.server.v1_9_R2.MinecraftServer.C(MinecraftServer.java:665)
[07:11:52 ERROR]: #!#!     at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:564)
[07:11:52 ERROR]: #!#!     at java.lang.Thread.run(Thread.java:748)
[07:11:52 ERROR]: #!#!
[07:11:52 ERROR]: #!#! Version Information:
[07:11:52 ERROR]: #!#!   Skript: 2.4.1 (latest)
[07:11:52 ERROR]: #!#!     Flavor: skriptlang-github
[07:11:52 ERROR]: #!#!     Date: 2019-12-22
[07:11:52 ERROR]: #!#!   Bukkit: 1.9.4-R0.1-SNAPSHOT
[07:11:52 ERROR]: #!#!   Minecraft: 1.9.4
[07:11:52 ERROR]: #!#!   Java: 1.8.0_242 (OpenJDK 64-Bit Server VM 25.242-b08)
[07:11:52 ERROR]: #!#!   OS: Linux amd64 4.19.0-8-amd64
[07:11:52 ERROR]: #!#!
[07:11:52 ERROR]: #!#! Server platform: Spigot
[07:11:52 ERROR]: #!#!
[07:11:52 ERROR]: #!#! Current node: null
[07:11:52 ERROR]: #!#! Current item: uk.tim740.skUtilities.files.EffRunApp
[07:11:52 ERROR]: #!#! Current trigger: command /exec (simple event) (sh.sk, line -1)
[07:11:52 ERROR]: #!#!
[07:11:52 ERROR]: #!#! Thread: Server thread
[07:11:52 ERROR]: #!#!
[07:11:52 ERROR]: #!#! Language: english
[07:11:52 ERROR]: #!#! Link parse mode: DISABLED
[07:11:52 ERROR]: #!#!
[07:11:52 ERROR]: #!#! End of Error.
[07:11:52 ERROR]: #!#!
[07:11:52 INFO]: An internal error occurred while attempting to perform this command.

J'ai tenté de me renseigner à propos du protocol "X11", mais je n'ai pas vraiment compris ce que c'était...

Et donc je suis totalement bloqué dans l'avancement de mon code...

Quelqu'un aurait une solution pour remédier à ce problème d’exécution ?

Merci beaucoup !

6 réponses à cette question

Messages recommandés

  • 0
Posté(e)

SkUtilities est assez vieux, et n'a pas été mis à jour depuis longtemps. Essaye avec l'addon Skent (disponible sur Skunity)

  • 0
Posté(e)
il y a 17 minutes, Olyno a dit :

SkUtilities est assez vieux, et n'a pas été mis à jour depuis longtemps. Essaye avec l'addon Skent (disponible sur Skunity)

Skent permet d'exécuter des scripts sh?

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

Skent permet d'exécuter des scripts sh?

On dirait :

(execute|run) %path%

command execute:
	trigger:
		execute file "plugins/myAwesomeBat.bat"
		broadcast "File executed! I'm now a hacker!"

Normalement c'est censé fonctionner avec tout type de fichier ^^

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

On dirait :


(execute|run) %path%

command execute:
	trigger:
		execute file "plugins/myAwesomeBat.bat"
		broadcast "File executed! I'm now a hacker!"

Normalement c'est censé fonctionner avec tout type de fichier ^^

Intéressant ! Merci 😉 

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.