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

Minecraft not read my code...

Discussion in 'Skript' started by couger44, Aug 15, 2017.

Tags:
Thread Status:
Not open for further replies.
  1. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    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 (Skript):
    1.  
    2. on command "/kit":
    3.     cancel event
    4.     send "&8[&a&lHaxel&3&lClases&8] &7Comando inválido, el uso correcto es /clase"
    5.  
    6. options:
    7.     respawnkit prefix: &8[&a&lHaxel&3&lClases&8] &7
    8.     respawnkit color prefix: &9&lCLASE &a&lCO&c&lLOR
    9.  
    10.     respawnkit tienda1 prefix: &e&lCLASE &6&lTIENDA1
    11.  
    12.     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
    13.  
    14. command /clase [<text>]:
    15.     trigger:
    16.         arg 1 is not set:
    17.             if player does not has permission "haxel.kit.color", "haxel.kit.tienda1", "haxel.kit.tienda2":
    18.                 send "{@respawnkit prefix}Clases disponibles: Nuevo"
    19.                 stop
    20.             if player has permission "haxel.kit.color":
    21.                 send "{@respawnkit prefix}Clases disponibles: Nuevo, Color"
    22.                 stop
    23.             if player has permission "haxel.kit.tienda1" and "haxel.kit.color":
    24.                 send "{@respawnkit prefix}Clases disponibles: Nuevo, Color, Tienda1"
    25.                 stop
    26.             if player has permission "haxel.kit.tienda2", "haxel.kit.tienda1" and "haxel.kit.color":
    27.                 send "{@respawnkit prefix}Clases disponibles: Nuevo, Color, Tienda1, Tienda2"
    28.                 stop
    29.             if player has permission "haxel.kit.tienda2" and "haxel.kit.color":
    30.                 send "{@respawnkit prefix}Clases disponibles: Nuevo, Color, Tienda2"
    31.                 stop
    32.         arg 1 is "color":
    33.             if player has permission "haxel.kit.color":
    34.                 send "{@respawnkit prefix}Recogiste tu clase correctamente."
    35.                 add 1 diamond helmet of protection 1, unbreaking 1 named "{@respawnkit color prefix}" to player
    36.                 add 1 iron chestplate of unbreaking 1 named "{@respawnkit color prefix}" to player
    37.                 add 1 chain leggings of unbreaking 2, protection 1 named "{@respawnkit color prefix}" to player
    38.                 add 1 chain boots of protection 3, unbreaking 3 named "{@respawnkit color prefix}" to player
    39.                 add 1 stone sword of sharpness 2, unbreaking 10 named "{@respawnkit color prefix}" to player
    40.                 add 6 322:0 of unbreaking 1000 named "{@respawnkit color prefix}" to player
    41.                 add 64 320 to player
    42.                 wait 40 minutes
    43.             else:
    44.                 send "{@respawnkit prefix}No tienes permisos suficientes"
    45.                 stop
    46.         arg 1 is "tienda1":
    47.             if player has permission "haxel.kit.tienda1":
    48.                 send "{@respawnkit prefix}Recogiste tu clase correctamente."
    49.                 add 1 chain helmet of protection 3, unbreaking 1 named "{@respawnkit tienda1 prefix}" to player
    50.                 add 1 chain chestplate of protection 2 named "{@respawnkit tienda1 prefix}" to player
    51.                 add 1 chain leggings of protection 2, unbreaking 1 named "{@respawnkit tienda1 prefix}" to player
    52.                 add 1 gold boots of protection 10, depth strider 3, unbreaking 50 named "{@respawnkit tienda1 prefix}" to player
    53.                 add 1 iron axe of fireaspect 1, unbreaking 3 named "{@respawnkit tienda1 prefix}" to player
    54.                 add 2 322:0 of unbreaking 1000 named "{@respawnkit tienda1 prefix}" to player
    55.                 add 64 320 to player
    56.                 wait 10 minutes
    57.             else:
    58.                 send "{@respawnkit prefix}No tienes permisos suficientes"
    59.                 stop
    60.         arg 1 is "tienda2":
    61.             if player has permission "haxel.kit.tienda2":
    62.                 send "{@respawnkit prefix}Recogiste tu clase correctamente."
    63.                 add 1 chain helmet of protection 3, unbreaking 1 named "{@respawnkit tienda2 prefix}" to player
    64.                 add 1 chain chestplate of protection 2 named "{@respawnkit tienda2 prefix}" to player
    65.                 add 1 iron leggings of protection 2, unbreaking 1 named "{@respawnkit tienda2 prefix}" to player
    66.                 add 1 gold boots of protection 20, depth strider 5, unbreaking 100 named "{@respawnkit tienda2 prefix}" to player
    67.                 add 1 wooden axe of fireaspect 5, sharpness 3, unbreaking 3 named "{@respawnkit tienda2 prefix}" to player
    68.                 add 2 322:0 of unbreaking 1000 named "{@respawnkit tienda2 prefix}" to player
    69.                 add 64 320 to player
    70.                 wait 10 minutes
    71.             else:
    72.                 send "{@respawnkit prefix}No tienes permisos suficientes"
    73.                 stop
    74.              
    75.  
    76. on respawn:
    77.     add 1 leather helmet to player
    78.     add 1 leather chestplate to player
    79.     add 1 leather leggings to player
    80.     add 1 chain boots to player
    81.     add 1 stone sword to player
    82.     add 64 320 to player
    83.  
    84.  
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Code (Skript):
    1. command /kit:
    2.     send "&8[&a&lHaxel&3&lClases&8] &7Comando inválido, el uso correcto es /clase"
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    That has nothing to do with it
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Skript and minecraft version? And console error
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    are there any errors when you reload it?
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    I thought you said the /kit didn't work. Make your question more clear.
     
  7. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    On load error, nothing, on console:
    Code (Java):
    1.  
    2. [15:10:48 INFO]: [Skript] Reloading HaRespawnKit.sk...
    3. [15:10:48 ERROR]: #!#!
    4.  [15:10:48 ERROR]: #!#! [Skript] Severe Error
    5. : [15:10:48 ERROR]: #!#! Could not load HaRespawnKit.sk
    6.  [15:10:48 ERROR]: #!#!
    7.  [15:10:48 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
    8. [15:10:48 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
    9. [15:10:48 ERROR]: #!#! and check whether this error has already been reported.
    10.  [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.
    11.  [15:10:48 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
    12.  [15:10:48 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
    13.  [15:10:48 ERROR]: #!#!
    14.  [15:10:48 ERROR]: #!#! Stack trace:
    15. [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)]
    16. [15:10:48 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1136)
    17. [15:10:48 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:219)
    18. [15:10:48 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:174)
    19. [15:10:48 ERROR]: #!#!     at ch.njol.skript.lang.Condition.parse(Condition.java:81)
    20. [15:10:48 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:832)
    21. [15:10:48 ERROR]: #!#!     at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
    22. [15:10:48 ERROR]: #!#!     at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
    23. [15:10:48 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:839)
    24. [15:10:48 ERROR]: #!#!     at ch.njol.skript.command.Commands.loadCommand(Commands.java:465)
    25. [15:10:48 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:469)
    26. [15:10:48 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:269)
    27. [15:10:48 ERROR]: #!#!     at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:185)
    28. [15:10:48 ERROR]: #!#!     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    29. [15:10:48 ERROR]: #!#!     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
    30. [15:10:48 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
    31. [15:10:48 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627)
    32. [15:10:48 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412)
    33. [15:10:48 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375)
    34. [15:10:48 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
    35. [15:10:48 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
    36. [15:10:48 ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
    37. [15:10:48 ERROR]: #!#!
    38. [15:10:48 ERROR]: #!#! Version Information:
    39. [15:10:48 ERROR]: #!#!   Skript: 2.2-dev27
    40. [15:10:48 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
    41. [15:10:48 ERROR]: #!#!   Minecraft: 1.8.8
    42. [15:10:48 ERROR]: #!#!   Java: 1.8.0_112 (Java HotSpot(TM) 64-Bit Server VM 25.112-b15)
    43. [15:10:48 ERROR]: #!#!   OS: Linux amd64 3.14.32-xxxx-grs-ipv6-64
    44. [15:10:48 ERROR]: #!#!
    45. [15:10:48 ERROR]: #!#! Running CraftBukkit: false
    46. [15:10:48 ERROR]: #!#!
    47. [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)
    48. [15:10:48 ERROR]: #!#! Current item: null
    49. [15:10:48 ERROR]: #!#! [15:10:48 ERROR]: #!#! Thread: Server thread
    50. [15:10:48 ERROR]: #!#! [15:10:48 ERROR]: #!#! End of Error.
    51. [15:10:48 ERROR]: #!#!
    52. [15:10:48 INFO]: [Skript] Successfully reloaded HaRespawnKit.sk.
    53.  
    --- Double Post Merged, Aug 15, 2017, Original Post Date: Aug 15, 2017 ---
    PSDT: anyone can send me the link of skript version dev30d please
     
  8. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
  9. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    You're using CraftBukkit, use Spigot.
     
  10. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    upload_2017-8-15_16-57-1.png
     
  11. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Then I'm assuming 1.8.8 is the issue. It doesn't really work well with Bensku's Sk.
     
    • Agree Agree x 1
  12. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    ...
    so, what version would I use?
     
    #12 ShaneBee, Aug 15, 2017
    Last edited by a moderator: Aug 15, 2017
  13. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Your using dev27 which is very unstable.
    Go use dev25 and it should be fixed.
    Also, anything over dev25 is 1.9+ :emoji_face_palm:
     
    #13 ShaneBee, Aug 15, 2017
    Last edited by a moderator: Aug 15, 2017
  14. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Oh, so, i would use skript-dev27?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...