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!

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

Error Skript "$"

Discussion in 'Java' started by Spartan9802, Jul 17, 2017.

Tags:
  1. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    Good evening,
    I post here because I found a mistake on skript, I would like other people to test with their versions I use Skgnt 2.2-dev25 of Bensku.
    I also speak very bad English: /

    My error code:

    Code (Skript):
    1. command /test:
    2.     trigger:
    3.         set {_text} to "My Test $"
    4.         set {_format} to "{_REPLACE}"
    5.         replace all "{_REPLACE}" with {_text} in {_format}
     
    #1 Spartan9802, Jul 17, 2017
    Last edited: Jul 18, 2017
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Yeah, i get an error.
    Code (Skript):
    1. [17:27:34 INFO]: sky_high [b5555987-25cd-4ddb-9a9d-218aa1141551]: /test
    2. [17:27:34 INFO]: Format: {_RAPLACE}
    3. [17:27:34 INFO]: text: My Test \\$
    4. [17:27:34 ERROR]: #!#!
    5. [17:27:34 ERROR]: #!#! [Skript] Severe Error:
    6. [17:27:34 ERROR]: #!#!
    7. [17:27:34 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
    8. [17:27:34 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
    9. [17:27:34 ERROR]: #!#! and check whether this error has already been reported.
    10. [17:27:34 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
    11. [17:27:34 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
    12. [17:27:34 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
    13. [17:27:34 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
    14. [17:27:34 ERROR]: #!#!
    15. [17:27:34 ERROR]: #!#! Stack trace:
    16. [17:27:34 ERROR]: #!#! java.lang.IllegalArgumentException: Illegal group reference: group index is missing
    17. [17:27:34 ERROR]: #!#!     at java.util.regex.Matcher.appendReplacement(Matcher.java:819)
    18. [17:27:34 ERROR]: #!#!     at java.util.regex.Matcher.replaceAll(Matcher.java:955)
    19. [17:27:34 ERROR]: #!#!     at java.lang.String.replaceAll(String.java:2223)
    20. [17:27:34 ERROR]: #!#!     at ch.njol.util.StringUtils.replace(StringUtils.java:406)
    21. [17:27:34 ERROR]: #!#!     at ch.njol.skript.effects.EffReplace.execute(EffReplace.java:99)
    22. [17:27:34 ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:54)
    23. [17:27:34 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65)
    24. [17:27:34 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93)
    25. [17:27:34 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
    26. [17:27:34 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)
    27. [17:27:34 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)
    28. [17:27:34 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:270)
    29. [17:27:34 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:165)
    30. [17:27:34 ERROR]: #!#!     at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
    31. [17:27:34 ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    32. [17:27:34 ERROR]: #!#!     at java.lang.reflect.Method.invoke(Method.java:498)
    33. [17:27:34 ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:300)
    34. [17:27:34 ERROR]: #!#!     at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
    35. [17:27:34 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    36. [17:27:34 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501)
    37. [17:27:34 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486)
    38. [17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1181)
    39. [17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1001)
    40. [17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
    41. [17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
    42. [17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
    43. [17:27:34 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    44. [17:27:34 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    45. [17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
    46. [17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:774)
    47. [17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378)
    48. [17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713)
    49. [17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616)
    50. [17:27:34 ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
    51. [17:27:34 ERROR]: #!#!
    52. [17:27:34 ERROR]: #!#! Version Information:
    53. [17:27:34 ERROR]: #!#!   Skript: 2.2-dev25
    54. [17:27:34 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
    55. [17:27:34 ERROR]: #!#!   Minecraft: 1.8.8
    56. [17:27:34 ERROR]: #!#!   Java: 1.8.0_111 (Java HotSpot(TM) 64-Bit Server VM 25.111-b14)
    57. [17:27:34 ERROR]: #!#!   OS: Windows 10 amd64 10.0
    58. [17:27:34 ERROR]: #!#!
    59. [17:27:34 ERROR]: #!#! Running CraftBukkit: false
    60. [17:27:34 ERROR]: #!#!
    61. [17:27:34 ERROR]: #!#! Current node: null
    62. [17:27:34 ERROR]: #!#! Current item: replace "{_RAPLACE}" in {_format}(as java.lang.String) with {_text}(as java.lang.String)
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    It should work if you put a backslash (\) before the dollar sign ($).
     
    • Informative Informative x 1

Share This Page

Loading...