[BUG] Args that output as lists don't work
bug :lady_beetle:
### What happened?
So when I add Skbriggy, I got 2 error messages. This error message:
_[09:01:09 ERROR]: Caught previously unhandled exception : [09:01:09 ERROR]: Paper Async Command Builder Thread Pool - 11 java.util.ConcurrentModificationException: null at java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:1024) ~[?:?] at java.base/java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:1059) ~[?:?] at java.base/java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:1056) ~[?:?] at java.base/java.util.AbstractMap.hashCode(AbstractMap.java:499) ~[?:?] at com.mojang.brigadier.tree.CommandNode.hashCode(CommandNode.java:145) ~[paper-1.21.10.jar:1.21.10-113-9fc21bc] at java.base/java.util.HashMap.hash(HashMap.java:338) ~[?:?] at java.base/java.util.HashMap.put(HashMap.java:619) ~[?:?] at net.minecraft.commands.Commands.sendAsync(Commands.java:497) ~[paper-1.21.10.jar:1.21.10-113-9fc21bc] at net.minecraft.commands.Commands.lambda$sendCommands$6(Commands.java:479) ~[paper-1.21.10.jar:1.21.10-113-9fc21bc] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1095) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:619) ~[?:?] at java.base/java.lang.Thread.run(Thread.java:1447) ~[?:?]_
And this one as well:
_[11:20:18 ERROR]: Server thread dump (Look for plugins here before reporting to Paper!): [11:20:18 ERROR]: ------------------------------ [11:20:18 ERROR]: Current Thread: Server thread [11:20:18 ERROR]: PID: 47 | Suspended: false | Native: false | State: TIMED_WAITING [11:20:18 ERROR]: Stack: [11:20:18 ERROR]: java.base@24.0.1/jdk.internal.misc.Unsafe.park(Native Method) [11:20:18 ERROR]: java.base@24.0.1/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:271) [11:20:18 ERROR]: net.minecraft.server.MinecraftServer.waitForTasks(MinecraftServer.java:1477) [11:20:18 ERROR]: net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:162) [11:20:18 ERROR]: net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1454) [11:20:18 ERROR]: net.minecraft.server.MinecraftServer.reloadResources(MinecraftServer.java:2338) [11:20:18 ERROR]: net.minecraft.server.commands.ReloadCommand.reload(ReloadCommand.java:46) [11:20:18 ERROR]: org.bukkit.craftbukkit.CraftServer.reloadData(CraftServer.java:1095) [11:20:18 ERROR]: org.bukkit.Bukkit.reloadData(Bukkit.java:1035) [11:20:18 ERROR]: [PP] SkBriggy (MODRINTH).jar//com.shanebeestudios.briggy.api.commandapi.PaperCommandRegistration.lambda$scheduleReloadTask$6(PaperCommandRegistration.java:169) [11:20:18 ERROR]: [PP] SkBriggy (MODRINTH).jar//com.shanebeestudios.briggy.api.commandapi.PaperCommandRegistration$$Lambda/0x0000026692d2ba50.run(Unknown Source) [11:20:18 ERROR]: org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78) [11:20:18 ERROR]: org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:474) [11:20:18 ERROR]: net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1591) [11:20:18 ERROR]: net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:427) [11:20:18 ERROR]: net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1669) [11:20:18 ERROR]: net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1337) [11:20:18 ERROR]: net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:388) [11:20:18 ERROR]: net.minecraft.server.MinecraftServer$$Lambda/0x0000026690edbbe0.run(Unknown Source) [11:20:18 ERROR]: java.base@24.0.1/java.lang.Thread.runWith(Thread.java:1460) [11:20:18 ERROR]: java.base@24.0.1/java.lang.Thread.run(Thread.java:1447) [11:20:18 ERROR]: ------------------------------_
If i try something like this:
brig command /test <player>:
trigger:
send {_player} to command sender
It works fine, but if i try it using an arg that returns a list variable, like this:
brig command /test <players:players>:
trigger:
send {_players::*} to command sender
It returns nothing, and if i restart the server after that it crashes when a player joins.
### Steps to reproduce
1. Install Skbriggy on a server
2. Add a command that uses players or entities as an argument
3. Restart the server
4. Try to join the server
### Expected behavior
Args that output as lists return properly and the server doesn't crash.
### SkBriggy Version
1.5.7
### Server Version
Paper 1.21.10
### Skript Info
[12:00:50 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[12:00:50 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[12:00:50 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[12:00:50 INFO]: [Skript] Server Version: 1.21.11-72-cd445fd (MC: 1.21.11)
[12:00:50 INFO]: [Skript] Skript Version: 2.13.2 (skriptlang-github)
[12:00:50 INFO]: [Skript] Installed Skript Addons:
[12:00:50 INFO]: [Skript] - Skcrew v4.4.2 (https://pages.crewpvp.xyz/skript/skcrew/)
[12:00:50 INFO]: [Skript] - SkBee v3.14.0 (https://github.com/ShaneBeee/SkBee)
[12:00:50 INFO]: [Skript] Installed dependencies:
[12:00:50 INFO]: [Skript] - WorldGuard v7.0.15-beta-01+445a1d7
Of course, I had SkBriggy as well but I had to remove it as my server was crashing.
### Additional Information
_No response_
1 条评论