1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Draw image on map

Discussion in 'Skript' started by MasterHunter2003, Jul 6, 2017.

Thread Status:
Not open for further replies.
  1. MasterHunter2003

    Joined:
    Jan 28, 2017
    Messages:
    23
    Likes Received:
    1
    Skript Version: 2.2
    Skript Author:Njol
    Minecraft Version:1.8,1.9 etc (viaversion)

    ---
    Full Code:


    Code (Skript):
    1.  
    2. command /draw:
    3.     trigger:
    4.         df "plugins/Maps/%player%.png"
    5.         set {link} to "Drawlink (not gonna tell ya)"
    6.         download file from "%{link}%" to file "plugins/Maps/%player%.png"
    7.         set player's tool to map:0
    8.         manage map 0
    9.         erase map 0
    10.         override map 0
    11.         draw image image stored as "%player%" on map 0
    12.         send "Drew it!"
    13.  
    Errors on Reload:

    Code (Skript):
    1. None
    Console Errors: (if applicable)

    Code (Skript):
    1.  
    2. [17:04:30 WARN]: javax.imageio.IIOException: Can't read input file!
    3. [17:04:30 WARN]:        at javax.imageio.ImageIO.read(Unknown Source)
    4. [17:04:30 WARN]:        at com.w00tmast3r.skquery.elements.expressions.ExprImageLocal.get(ExprImageLocal.java:27)
    5. [17:04:30 WARN]:        at com.w00tmast3r.skquery.elements.expressions.ExprImageLocal.get(ExprImageLocal.java:17)
    6. [17:04:30 WARN]:        at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:103)
    7. [17:04:30 WARN]:        at ch.njol.skript.lang.util.SimpleExpression.getSingle(SimpleExpression.java:61)
    8. [17:04:30 WARN]:        at com.w00tmast3r.skquery.elements.effects.EffDrawImage.execute(EffDrawImage.java:36)
    9. [17:04:30 WARN]:        at ch.njol.skript.lang.Effect.run(Effect.java:54)
    10. [17:04:30 WARN]:        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)
    11. [17:04:30 WARN]:        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)
    12. [17:04:30 WARN]:        at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
    13. [17:04:30 WARN]:        at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)
    14. [17:04:30 WARN]:        at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)
    15. [17:04:30 WARN]:        at ch.njol.skript.command.Commands.handleCommand(Commands.java:263)
    16. [17:04:30 WARN]:        at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:158)
    17. [17:04:30 WARN]:        at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
    18. [17:04:30 WARN]:        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    19. [17:04:30 WARN]:        at java.lang.reflect.Method.invoke(Unknown Source)
    20. [17:04:30 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
    21. [17:04:30 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    22. [17:04:30 WARN]:        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
    23. [17:04:30 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
    24. [17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154)
    25. [17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
    26. [17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
    27. [17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
    28. [17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
    29. [17:04:30 WARN]:        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    30. [17:04:30 WARN]:        at java.util.concurrent.FutureTask.run(Unknown Source)
    31. [17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
    32. [17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
    33. [17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
    34. [17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
    35. [17:04:30 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
    36. [17:04:30 WARN]:        at java.lang.Thread.run(Unknown Source)
    37.  
    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.
    --- Double Post Merged, Jul 16, 2017, Original Post Date: Jul 6, 2017 ---
    Anyone?
     
Thread Status:
Not open for further replies.
Loading...