Minecraft not read my code...

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

couger44

Supporter
Feb 19, 2017
713
31
28
Chile
Hi everyone

Well, I was creating a class script, but, as what i wrote not it was reading for minecraft, and send me this message when i execute the command
upload_2017-8-15_15-14-39.png

Code
code_language.skript:
on command "/kit":
    cancel event
    send "&8[&a&lHaxel&3&lClases&8] &7Comando inválido, el uso correcto es /clase"

options:
    respawnkit prefix: &8[&a&lHaxel&3&lClases&8] &7
    respawnkit color prefix: &9&lCLASE &a&lCO&c&lLOR
  
    respawnkit tienda1 prefix: &e&lCLASE &6&lTIENDA1
  
    respawnkit tienda2 prefix: &e&lC&6&lL&e&lA&6&lS&e&lE &6&lT&e&lI&6&lE&e&lN&6&lD&e&lA&6&l2

command /clase [<text>]:
    trigger:
        arg 1 is not set:
            if player does not has permission "haxel.kit.color", "haxel.kit.tienda1", "haxel.kit.tienda2":
                send "{@respawnkit prefix}Clases disponibles: Nuevo"
                stop
            if player has permission "haxel.kit.color":
                send "{@respawnkit prefix}Clases disponibles: Nuevo, Color"
                stop
            if player has permission "haxel.kit.tienda1" and "haxel.kit.color":
                send "{@respawnkit prefix}Clases disponibles: Nuevo, Color, Tienda1"
                stop
            if player has permission "haxel.kit.tienda2", "haxel.kit.tienda1" and "haxel.kit.color":
                send "{@respawnkit prefix}Clases disponibles: Nuevo, Color, Tienda1, Tienda2"
                stop
            if player has permission "haxel.kit.tienda2" and "haxel.kit.color":
                send "{@respawnkit prefix}Clases disponibles: Nuevo, Color, Tienda2"
                stop
        arg 1 is "color":
            if player has permission "haxel.kit.color":
                send "{@respawnkit prefix}Recogiste tu clase correctamente."
                add 1 diamond helmet of protection 1, unbreaking 1 named "{@respawnkit color prefix}" to player
                add 1 iron chestplate of unbreaking 1 named "{@respawnkit color prefix}" to player
                add 1 chain leggings of unbreaking 2, protection 1 named "{@respawnkit color prefix}" to player
                add 1 chain boots of protection 3, unbreaking 3 named "{@respawnkit color prefix}" to player
                add 1 stone sword of sharpness 2, unbreaking 10 named "{@respawnkit color prefix}" to player
                add 6 322:0 of unbreaking 1000 named "{@respawnkit color prefix}" to player
                add 64 320 to player
                wait 40 minutes
            else:
                send "{@respawnkit prefix}No tienes permisos suficientes"
                stop
        arg 1 is "tienda1":
            if player has permission "haxel.kit.tienda1":
                send "{@respawnkit prefix}Recogiste tu clase correctamente."
                add 1 chain helmet of protection 3, unbreaking 1 named "{@respawnkit tienda1 prefix}" to player
                add 1 chain chestplate of protection 2 named "{@respawnkit tienda1 prefix}" to player
                add 1 chain leggings of protection 2, unbreaking 1 named "{@respawnkit tienda1 prefix}" to player
                add 1 gold boots of protection 10, depth strider 3, unbreaking 50 named "{@respawnkit tienda1 prefix}" to player
                add 1 iron axe of fireaspect 1, unbreaking 3 named "{@respawnkit tienda1 prefix}" to player
                add 2 322:0 of unbreaking 1000 named "{@respawnkit tienda1 prefix}" to player
                add 64 320 to player
                wait 10 minutes
            else:
                send "{@respawnkit prefix}No tienes permisos suficientes"
                stop
        arg 1 is "tienda2":
            if player has permission "haxel.kit.tienda2":
                send "{@respawnkit prefix}Recogiste tu clase correctamente."
                add 1 chain helmet of protection 3, unbreaking 1 named "{@respawnkit tienda2 prefix}" to player
                add 1 chain chestplate of protection 2 named "{@respawnkit tienda2 prefix}" to player
                add 1 iron leggings of protection 2, unbreaking 1 named "{@respawnkit tienda2 prefix}" to player
                add 1 gold boots of protection 20, depth strider 5, unbreaking 100 named "{@respawnkit tienda2 prefix}" to player
                add 1 wooden axe of fireaspect 5, sharpness 3, unbreaking 3 named "{@respawnkit tienda2 prefix}" to player
                add 2 322:0 of unbreaking 1000 named "{@respawnkit tienda2 prefix}" to player
                add 64 320 to player
                wait 10 minutes
            else:
                send "{@respawnkit prefix}No tienes permisos suficientes"
                stop
              

on respawn:
    add 1 leather helmet to player
    add 1 leather chestplate to player
    add 1 leather leggings to player
    add 1 chain boots to player
    add 1 stone sword to player
    add 64 320 to player
 
Skript and minecraft version? And console error
On load error, nothing, on console:
Java:
[15:10:48 INFO]: [Skript] Reloading HaRespawnKit.sk... 
[15:10:48 ERROR]: #!#! 
 [15:10:48 ERROR]: #!#! [Skript] Severe Error
: [15:10:48 ERROR]: #!#! Could not load HaRespawnKit.sk
 [15:10:48 ERROR]: #!#! 
 [15:10:48 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
 [15:10:48 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/ 
[15:10:48 ERROR]: #!#! and check whether this error has already been reported.
 [15:10:48 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service), [15:10:48 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
 [15:10:48 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
 [15:10:48 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
 [15:10:48 ERROR]: #!#! 
 [15:10:48 ERROR]: #!#! Stack trace: 
[15:10:48 ERROR]: #!#! ch.njol.skript.lang.SkriptParser$MalformedPatternException: Odd number of '%' [pattern: player% is(n't| not) in (a[n] arena|[a ]game)]
 [15:10:48 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1136)
 [15:10:48 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:219) 
[15:10:48 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:174) 
[15:10:48 ERROR]: #!#!     at ch.njol.skript.lang.Condition.parse(Condition.java:81)
 [15:10:48 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:832) 
[15:10:48 ERROR]: #!#!     at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54) 
[15:10:48 ERROR]: #!#!     at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
 [15:10:48 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:839) 
[15:10:48 ERROR]: #!#!     at ch.njol.skript.command.Commands.loadCommand(Commands.java:465) 
[15:10:48 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:469) 
[15:10:48 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:269) 
[15:10:48 ERROR]: #!#!     at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:185)
 [15:10:48 ERROR]: #!#!     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 
[15:10:48 ERROR]: #!#!     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
 [15:10:48 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
 [15:10:48 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627) 
[15:10:48 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412) 
[15:10:48 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375)
 [15:10:48 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
 [15:10:48 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) 
[15:10:48 ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745) 
[15:10:48 ERROR]: #!#! 
 [15:10:48 ERROR]: #!#! Version Information:
 [15:10:48 ERROR]: #!#!   Skript: 2.2-dev27
 [15:10:48 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT 
[15:10:48 ERROR]: #!#!   Minecraft: 1.8.8 
[15:10:48 ERROR]: #!#!   Java: 1.8.0_112 (Java HotSpot(TM) 64-Bit Server VM 25.112-b15)
 [15:10:48 ERROR]: #!#!   OS: Linux amd64 3.14.32-xxxx-grs-ipv6-64 
[15:10:48 ERROR]: #!#!
 [15:10:48 ERROR]: #!#! Running CraftBukkit: false 
[15:10:48 ERROR]: #!#!
 [15:10:48 ERROR]: #!#! Current node: if player does not has permission "haxel.kit.color", "haxel.kit.tienda1", "haxel.kit.tienda2": (HaRespawnKit.sk, line 16)
 [15:10:48 ERROR]: #!#! Current item: null 
[15:10:48 ERROR]: #!#! [15:10:48 ERROR]: #!#! Thread: Server thread 
[15:10:48 ERROR]: #!#! [15:10:48 ERROR]: #!#! End of Error.
 [15:10:48 ERROR]: #!#!
 [15:10:48 INFO]: [Skript] Successfully reloaded HaRespawnKit.sk.
[doublepost=1502824616,1502824280][/doublepost]PSDT: anyone can send me the link of skript version dev30d please
 
Status
Not open for further replies.