Players money skript Error

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

    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.

MateoxPL

Active Member
Jan 27, 2018
116
0
16
Hello
i have a problem with my skript when i replace text in {message::%player%} to %player's money%
i get this error:

code_language.skript:
[12:58:24 ERROR]: #!#! [Skript] Severe Error:
[12:58:24 ERROR]: #!#!
[12:58:24 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[12:58:24 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
[12:58:24 ERROR]: #!#! and check whether this error has already been reported.
[12:58:24 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
[12:58:24 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[12:58:24 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[12:58:24 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[12:58:24 ERROR]: #!#!
[12:58:24 ERROR]: #!#! Stack trace:
[12:58:24 ERROR]: #!#! java.lang.IndexOutOfBoundsException: No group 9
[12:58:24 ERROR]: #!#!     at java.util.regex.Matcher.start(Unknown Source)
[12:58:24 ERROR]: #!#!     at java.util.regex.Matcher.appendReplacement(Unknown Source)
[12:58:24 ERROR]: #!#!     at java.util.regex.Matcher.replaceAll(Unknown Source)
[12:58:24 ERROR]: #!#!     at java.lang.String.replaceAll(Unknown Source)
[12:58:24 ERROR]: #!#!     at ch.njol.util.StringUtils.replace(StringUtils.java:406)
[12:58:24 ERROR]: #!#!     at ch.njol.skript.effects.EffReplace.execute(EffReplace.java:99)
[12:58:24 ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:54)
[12:58:24 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65)
[12:58:24 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93)
[12:58:24 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[12:58:24 ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:152)
[12:58:24 ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:112)
[12:58:24 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[12:58:24 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[12:58:24 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[12:58:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1630)
[12:58:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInWindowClick.a(SourceFile:31)
[12:58:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInWindowClick.a(SourceFile:9)
[12:58:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[12:58:24 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[12:58:24 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(Unknown Source)
[12:58:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[12:58:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[12:58:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[12:58:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[12:58:24 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[12:58:24 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[12:58:24 ERROR]: #!#!
[12:58:24 ERROR]: #!#! Version Information:
[12:58:24 ERROR]: #!#!   Skript: 2.2-dev25
[12:58:24 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[12:58:24 ERROR]: #!#!   Minecraft: 1.8.8
[12:58:24 ERROR]: #!#!   Java: 1.8.0_144 (Java HotSpot(TM) 64-Bit Server VM 25.144-b01)
[12:58:24 ERROR]: #!#!   OS: Windows 10 amd64 10.0
[12:58:24 ERROR]: #!#!
[12:58:24 ERROR]: #!#! Running CraftBukkit: false
[12:58:24 ERROR]: #!#!
[12:58:24 ERROR]: #!#! Current node: null
[12:58:24 ERROR]: #!#! Current item: replace "[item]" in {message::%the player%}(as java.lang.String) with "%the money of the player%"
[12:58:24 ERROR]: #!#!
[12:58:24 ERROR]: #!#! Thread: Server thread
[12:58:24 ERROR]: #!#!
[12:58:24 ERROR]: #!#! End of Error.
[12:58:24 ERROR]: #!#!
 
1.
code_language.skript:
on inventory click:
cancel event
                if "%slot%" is "0":
                    replace all "[item]" with "%balance of player%" in {message::%player%}
                    make player say "%{message::%player%}%"

2.
code_language.skript:
on chat:
set {message::%player%} to message
 
yes i use:
Skellett 1.9.6b
Skrayfall latest
skript 2.2 dev25
spigot 1.8.8
Skquery 3.6.0
 
line 51 says
Current item: replace "[item]" in {message::%the player%}(as java.lang.String) with "%the money of the player%"

Did you try that?
 
Status
Not open for further replies.