WolfyUtilities

WolfyUtilities

45.1k Downloads

Attempt to register task while disabled console error

MillionthOdin16 opened this issue ยท 0 comments

commented

Describe the bug
Error in startup log when worldguard extra flags loads a chunk and wolfyutilities attempts to process the chunk load while being 'disabled'.

To Reproduce
Have a worldguard region with the deny chunk unload field set
Startup the server
See error in log

Expected behavior
Startup without the error

Server (please complete the following information):

  • git-Purpur-1776 (MC: 1.19.2)*
  • Minecraft version [e.g. 1.16.5]
  • Java 16
  • WolfyUtilities version 4.16.6.1
  • CustomCrafting version 4.16.0.1

Additional context
Haven't noticed any breaking changes, but console spam is annoying

[04:10:50 INFO]: [WorldGuardExtraFlags] Loading chunks for region ps9659x66y-5514z located in world due to chunk-unload flag being deny
[04:10:50 ERROR]: Could not pass event ChunkLoadEvent to WolfyUtilities v4.16.6.1
org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register task while disabled
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.validate(CraftScheduler.java:552) ~[purpur-1.19.2.jar:git-Purpur-1776]
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:227) ~[purpur-1.19.2.jar:git-Purpur-1776]
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:212) ~[purpur-1.19.2.jar:git-Purpur-1776]
        at me.wolfyscript.customcrafting.data.persistent.CauldronBlockData.onLoad(CauldronBlockData.java:238) ~[customcrafting-spigot-4.16.0.1.jar:?]
        at java.util.HashMap$Values.forEach(HashMap.java:1065) ~[?:?]
        at com.wolfyscript.utilities.bukkit.persistent.world.BlockStorage.onLoad(BlockStorage.java:57) ~[wolfyutils-spigot-4.16.6.1.jar:?]
        at com.wolfyscript.utilities.bukkit.listeners.PersistentStorageListener.lambda$initOrUpdateChunk$1(PersistentStorageListener.java:102) ~[wolfyutils-spigot-4.16.6.1.jar:?]
        at java.util.HashMap.forEach(HashMap.java:1421) ~[?:?]
        at com.wolfyscript.utilities.bukkit.listeners.PersistentStorageListener.initOrUpdateChunk(PersistentStorageListener.java:102) ~[wolfyutils-spigot-4.16.6.1.jar:?]
        at com.wolfyscript.utilities.bukkit.listeners.PersistentStorageListener.onChunkLoad(PersistentStorageListener.java:67) ~[wolfyutils-spigot-4.16.6.1.jar:?]
        at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:37) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:git-Purpur-1776]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:678) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.world.level.chunk.LevelChunk.loadCallback(LevelChunk.java:875) ~[?:?]
        at net.minecraft.server.level.ChunkHolder.lambda$updateFutures$19(ChunkHolder.java:770) ~[?:?]
        at net.minecraft.server.level.ChunkMap$CallbackExecutor.run(ChunkMap.java:201) ~[?:?]
        at net.minecraft.server.level.ServerChunkCache$MainThreadExecutor.pollTask(ServerChunkCache.java:1123) ~[?:?]
        at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
        at net.minecraft.server.level.ServerChunkCache.getChunk(ServerChunkCache.java:487) ~[?:?]
        at net.minecraft.world.level.chunk.ChunkSource.getChunk(ChunkSource.java:13) ~[?:?]
        at org.bukkit.craftbukkit.v1_19_R1.CraftWorld.getChunkAt(CraftWorld.java:338) ~[purpur-1.19.2.jar:git-Purpur-1776]
        at net.goldtreeservers.worldguardextraflags.WorldGuardExtraFlagsPlugin.doUnloadChunkFlagCheck(WorldGuardExtraFlagsPlugin.java:171) ~[WorldGuardExtraFlags.jar:?]
        at net.goldtreeservers.worldguardextraflags.WorldGuardExtraFlagsPlugin.onEnable(WorldGuardExtraFlagsPlugin.java:150) ~[WorldGuardExtraFlags.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:548) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugin(CraftServer.java:596) ~[purpur-1.19.2.jar:git-Purpur-1776]
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugins(CraftServer.java:510) ~[purpur-1.19.2.jar:git-Purpur-1776]
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:641) ~[purpur-1.19.2.jar:git-Purpur-1776]
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:427) ~[purpur-1.19.2.jar:git-Purpur-1776]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:343) ~[purpur-1.19.2.jar:git-Purpur-1776]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1142) ~[purpur-1.19.2.jar:git-Purpur-1776]
        at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:310) ~[purpur-1.19.2.jar:git-Purpur-1776]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
[04:10:50 INFO]: [WorldGuardExtraFlags] Loading chunks for region ps17510x61y-107818z located in world due to chunk-unload flag being deny
[04:10:50 INFO]: [Dynmap-WorldGuard] Enabling Dynmap-WorldGuard v1.4-beta-1
[04:10:50 INFO]: [Dynmap-WorldGuard] initializing
[04:10:50 INFO]: [Dynmap-WorldGuard] version 1.4-beta-1 is activated