• Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Jan 28, 2017
23
1
0
53
Skript Version: 2.2
Skript Author:Njol
Minecraft Version:1.8,1.9 etc (viaversion)

---
Full Code:


code_language.skript:
command /draw:
    trigger:
        df "plugins/Maps/%player%.png"
        set {link} to "Drawlink (not gonna tell ya)"
        download file from "%{link}%" to file "plugins/Maps/%player%.png"
        set player's tool to map:0
        manage map 0
        erase map 0
        override map 0
        draw image image stored as "%player%" on map 0
        send "Drew it!"

Errors on Reload:

code_language.skript:
None

Console Errors: (if applicable)

code_language.skript:
[17:04:30 WARN]: javax.imageio.IIOException: Can't read input file!
[17:04:30 WARN]:        at javax.imageio.ImageIO.read(Unknown Source)
[17:04:30 WARN]:        at com.w00tmast3r.skquery.elements.expressions.ExprImageLocal.get(ExprImageLocal.java:27)
[17:04:30 WARN]:        at com.w00tmast3r.skquery.elements.expressions.ExprImageLocal.get(ExprImageLocal.java:17)
[17:04:30 WARN]:        at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:103)
[17:04:30 WARN]:        at ch.njol.skript.lang.util.SimpleExpression.getSingle(SimpleExpression.java:61)
[17:04:30 WARN]:        at com.w00tmast3r.skquery.elements.effects.EffDrawImage.execute(EffDrawImage.java:36)
[17:04:30 WARN]:        at ch.njol.skript.lang.Effect.run(Effect.java:54)
[17:04:30 WARN]:        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)
[17:04:30 WARN]:        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)
[17:04:30 WARN]:        at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[17:04:30 WARN]:        at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)
[17:04:30 WARN]:        at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)
[17:04:30 WARN]:        at ch.njol.skript.command.Commands.handleCommand(Commands.java:263)
[17:04:30 WARN]:        at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:158)
[17:04:30 WARN]:        at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
[17:04:30 WARN]:        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[17:04:30 WARN]:        at java.lang.reflect.Method.invoke(Unknown Source)
[17:04:30 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[17:04:30 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[17:04:30 WARN]:        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[17:04:30 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154)
[17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[17:04:30 WARN]:        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[17:04:30 WARN]:        at java.util.concurrent.FutureTask.run(Unknown Source)
[17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[17:04:30 WARN]:        at java.lang.Thread.run(Unknown Source)

Other Useful Info:

Addons using (including versions):
SkQuery 4.0 & 3.22.1, Skript 2.2, WildSkript 1.9,1.10&1.11, skUtilities v0.9.0

Troubleshooting:
I've tried alot varying from placing the image in the folder itself to looking if there was something else I could try.

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it?I've tried using a standard preset image but it still wouldn't work. I did get it to work at some point but that was a few days ago and I don't remember the code of then and even that wasn't working as I want it to work.
[doublepost=1500226602,1499353750][/doublepost]Anyone?
 
Status
Not open for further replies.