Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event can only be triggered sync #166

Closed
3 tasks done
Garick01 opened this issue Dec 5, 2023 · 0 comments
Closed
3 tasks done

Event can only be triggered sync #166

Garick01 opened this issue Dec 5, 2023 · 0 comments
Assignees
Labels
resolution: fixed Issue has been resolved. type: bug Something doesn't work as it was intended to.

Comments

@Garick01
Copy link

Garick01 commented Dec 5, 2023

Spark link

No response

Server Version

1.20.1

Server Platform

Paper

Describe the bug

[17:00:17 WARN]: Exception in thread "Timer-1" java.lang.IllegalStateException: AuctionExpireEvent may only be triggered synchronously.
[17:00:17 WARN]: at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:42)
[17:00:17 WARN]: at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126)
[17:00:17 WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617)
[17:00:17 WARN]: at CrazyAuctions-1.3.1.jar//com.badbones69.crazyauctions.paper.Methods.updateAuction(Methods.java:426)
[17:00:17 WARN]: at CrazyAuctions-1.3.1.jar//com.badbones69.crazyauctions.paper.CrazyAuctions$1.run(CrazyAuctions.java:54)
[17:00:17 WARN]: at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
[17:00:17 WARN]: at java.base/java.util.TimerThread.run(Timer.java:516)

Steps to reproduce

[17:12:37 ERROR]: Could not pass event InventoryClickEvent to CrazyAuctions v1.3.1
java.lang.NullPointerException: Cannot invoke "java.lang.CharSequence.length()" because "this.text" is null
at java.util.regex.Matcher.getTextLength(Matcher.java:1808) ~[?:?]
at java.util.regex.Matcher.reset(Matcher.java:461) ~[?:?]
at java.util.regex.Matcher.(Matcher.java:256) ~[?:?]
at java.util.regex.Pattern.matcher(Pattern.java:1180) ~[?:?]
at com.badbones69.crazyauctions.paper.Methods.color(Methods.java:25) ~[CrazyAuctions-1.3.1.jar:?]
at com.badbones69.crazyauctions.paper.controllers.GuiListener.onInvClick(GuiListener.java:711) ~[CrazyAuctions-1.3.1.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor305.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[pufferfish-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[pufferfish-api-1.20.1-R0.1-SNAPSHOT.jar:git-Pufferfish-17]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[pufferfish-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[pufferfish-1.20.1.jar:git-Pufferfish-17]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[pufferfish-1.20.1.jar:git-Pufferfish-17]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617) ~[pufferfish-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:3200) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:58) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:23) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:51) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[pufferfish-1.20.1.jar:git-Pufferfish-17]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1341) ~[pufferfish-1.20.1.jar:git-Pufferfish-17]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[pufferfish-1.20.1.jar:git-Pufferfish-17]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1318) ~[pufferfish-1.20.1.jar:git-Pufferfish-17]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1311) ~[pufferfish-1.20.1.jar:git-Pufferfish-17]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1289) ~[pufferfish-1.20.1.jar:git-Pufferfish-17]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1177) ~[pufferfish-1.20.1.jar:git-Pufferfish-17]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[pufferfish-1.20.1.jar:git-Pufferfish-17]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]

Additional context

No response

Agreements

  • I have searched for and ensured there isn't already an open issue regarding this.
  • I ticked all the boxes without actually reading them
  • My version of Minecraft is supported by CrazyCrew.
@ryderbelserion ryderbelserion changed the title [Bug Report]: Event can only be triggered sync Nov 18, 2024
@ryderbelserion ryderbelserion added resolution: fixed Issue has been resolved. type: bug Something doesn't work as it was intended to. labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: fixed Issue has been resolved. type: bug Something doesn't work as it was intended to.
Development

No branches or pull requests

2 participants