Error Skript "$"

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

Spartan9802

Member
Jan 26, 2017
158
8
18
26
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_language.skript:
command /test:
    trigger:
        set {_text} to "My Test $"
        set {_format} to "{_REPLACE}"
        replace all "{_REPLACE}" with {_text} in {_format}
 
Last edited:
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_language.skript:
command /test:
    trigger:
        set {_text} to "My Test $"
        set {_format} to "{_RAPLACE}"
        replace all "{_RAPLACE}" with {_text} in {_format}
Yeah, i get an error.
code_language.skript:
[17:27:34 INFO]: sky_high [b5555987-25cd-4ddb-9a9d-218aa1141551]: /test
[17:27:34 INFO]: Format: {_RAPLACE}
[17:27:34 INFO]: text: My Test \\$
[17:27:34 ERROR]: #!#!
[17:27:34 ERROR]: #!#! [Skript] Severe Error:
[17:27:34 ERROR]: #!#!
[17:27:34 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[17:27:34 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
[17:27:34 ERROR]: #!#! and check whether this error has already been reported.
[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),
[17:27:34 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[17:27:34 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[17:27:34 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[17:27:34 ERROR]: #!#!
[17:27:34 ERROR]: #!#! Stack trace:
[17:27:34 ERROR]: #!#! java.lang.IllegalArgumentException: Illegal group reference: group index is missing
[17:27:34 ERROR]: #!#!     at java.util.regex.Matcher.appendReplacement(Matcher.java:819)
[17:27:34 ERROR]: #!#!     at java.util.regex.Matcher.replaceAll(Matcher.java:955)
[17:27:34 ERROR]: #!#!     at java.lang.String.replaceAll(String.java:2223)
[17:27:34 ERROR]: #!#!     at ch.njol.util.StringUtils.replace(StringUtils.java:406)
[17:27:34 ERROR]: #!#!     at ch.njol.skript.effects.EffReplace.execute(EffReplace.java:99)
[17:27:34 ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:54)
[17:27:34 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65)
[17:27:34 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93)
[17:27:34 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[17:27:34 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)
[17:27:34 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)
[17:27:34 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:270)
[17:27:34 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:165)
[17:27:34 ERROR]: #!#!     at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
[17:27:34 ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[17:27:34 ERROR]: #!#!     at java.lang.reflect.Method.invoke(Method.java:498)
[17:27:34 ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:300)
[17:27:34 ERROR]: #!#!     at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
[17:27:34 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[17:27:34 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501)
[17:27:34 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486)
[17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1181)
[17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1001)
[17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[17:27:34 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[17:27:34 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:774)
[17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378)
[17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713)
[17:27:34 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616)
[17:27:34 ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
[17:27:34 ERROR]: #!#!
[17:27:34 ERROR]: #!#! Version Information:
[17:27:34 ERROR]: #!#!   Skript: 2.2-dev25
[17:27:34 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[17:27:34 ERROR]: #!#!   Minecraft: 1.8.8
[17:27:34 ERROR]: #!#!   Java: 1.8.0_111 (Java HotSpot(TM) 64-Bit Server VM 25.111-b14)
[17:27:34 ERROR]: #!#!   OS: Windows 10 amd64 10.0
[17:27:34 ERROR]: #!#!
[17:27:34 ERROR]: #!#! Running CraftBukkit: false
[17:27:34 ERROR]: #!#!
[17:27:34 ERROR]: #!#! Current node: null
[17:27:34 ERROR]: #!#! Current item: replace "{_RAPLACE}" in {_format}(as java.lang.String) with {_text}(as java.lang.String)