Skip to content

generated an exception while executing task 199178 #1486

@diskawrs

Description

@diskawrs

Versions
v6.19.1
papermc1.21.11-r99

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:
edit votinsites.yml
/av reload in game
/voteall
[00:59:20] [Craft Scheduler Thread - 226 - VotingPlugin/WARN]: [VotingPlugin] Plugin VotingPlugin v6.19.1 generated an exception while executing task 194848
java.lang.StringIndexOutOfBoundsException: Range [55, -1) out of bounds for length 220
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55) ~[?:?]
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52) ~[?:?]
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213) ~[?:?]
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210) ~[?:?]
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98) ~[?:?]
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Preconditions.java:112) ~[?:?]
at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Preconditions.java:349) ~[?:?]
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4865) ~[?:?]
at java.base/java.lang.String.substring(String.java:2834) ~[?:?]
at VotingPlugin-6.19.1.jar//com.bencodez.votingplugin.advancedcore.api.messages.PlaceholderUtils.parseJson(PlaceholderUtils.java:47) ~[?:?]
at VotingPlugin-6.19.1.jar//com.bencodez.votingplugin.advancedcore.api.user.AdvancedCoreUser.sendMessage(AdvancedCoreUser.java:1100) ~[?:?]
at VotingPlugin-6.19.1.jar//com.bencodez.votingplugin.advancedcore.api.user.AdvancedCoreUser.sendMessage(AdvancedCoreUser.java:1054) ~[?:?]
at VotingPlugin-6.19.1.jar//com.bencodez.votingplugin.advancedcore.api.gui.GUIHandler.sendMessage(GUIHandler.java:71) ~[?:?]
at VotingPlugin-6.19.1.jar//com.bencodez.votingplugin.commands.gui.player.VoteURL.onChat(VoteURL.java:184) ~[?:?]
at VotingPlugin-6.19.1.jar//com.bencodez.votingplugin.advancedcore.api.gui.GUIHandler.open(GUIHandler.java:54) ~[?:?]
at VotingPlugin-6.19.1.jar//com.bencodez.votingplugin.commands.CommandLoader$134.execute(CommandLoader.java:2780) ~[?:?]
at VotingPlugin-6.19.1.jar//com.bencodez.votingplugin.simpleapi.command.CommandHandler$1.run(CommandHandler.java:475) ~[?:?]
at VotingPlugin-6.19.1.jar//com.bencodez.votingplugin.simpleapi.scheduler.BukkitScheduler.lambda$runTaskAsynchronously$6(BukkitScheduler.java:68) ~[?:?]
at VotingPlugin-6.19.1.jar//com.bencodez.votingplugin.simpleapi.folialib.impl.SpigotImplementation.lambda$runAsync$1(SpigotImplementation.java:54) ~[?:?]
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:80) ~[paper-1.21.11.jar:1.21.11-99-81b9122]
at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.21.11.jar:1.21.11-99-81b9122]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.21.11.jar:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Expected behavior
A clear and concise description of what you expected to happen.

Screenshots/Configs
If applicable, add screenshots to help explain your problem and/or configs relating to the issue.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Possible BugSomething which could be a possible bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions