Git Product home page Git Product logo

varlightold's People

Contributors

flori-schwa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

r4z0rx beags

varlightold's Issues

[BUG] Purpur 1.16.5

Describe the bug
Var light is Enabled and running on purpur 1.16.5 but it can't increase and decrease light level
To Reproduce
Get Purpur 1.16.5 server and run var light on it

Screenshots

[13.04 05:08:22] [Server] [ERROR] Could not pass event PlayerInteractEvent to VarLight v1.12.8
[13.04 05:08:22] [Server] java.lang.ClassCastExceptionclass com.tuinity.tuinity.chunk.light.StarLightInterface$2 cannot be cast to class net.minecraft.server.v1_16_R3.LightEngineBlock (com.tuinity.tuinity.chunk.light.StarLightInterface$2 and net.minecraft.server.v1_16_R3.LightEngineBlock are in unnamed module of loader 'app')
[13.04 05:08:22] [Server] 	at me.shawlaf.varlight.spigot.nms.v1_16_R3.NmsAdapter.enableVarLightInWorld(NmsAdapter.java:61) ~[?:?]
[13.04 05:08:22] [Server] 	at me.shawlaf.varlight.spigot.VarLightPlugin.enableInWorld(VarLightPlugin.java:186) ~[?:?]
[13.04 05:08:22] [Server] 	at me.shawlaf.varlight.spigot.VarLightPlugin.playerModifyLightSource(VarLightPlugin.java:284) ~[?:?]
[13.04 05:08:22] [Server] 	at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor1421.execute(Unknown Source) ~[?:?]
[13.04 05:08:22] [Server] 	at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at org.bukkit.craftbukkit.v1_16_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:531) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.PlayerInteractManager.a(PlayerInteractManager.java:533) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1815) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.PacketPlayInUseItem.a(PacketPlayInUseItem.java:32) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.PacketPlayInUseItem.a(PacketPlayInUseItem.java:10) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:55) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1326) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1319) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1295) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1139) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Purpur-1053]
[13.04 05:08:22] [Server] 	at java.lang.Thread.run(Thread.java:832) [?:?]

Server setup (please complete the following information):

  • Minecraft Version (run /version ingame): This server is running Purpur version git-Purpur-1053 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
    You are running the latest version
    Previous version: git-Purpur-1011 (MC: 1.16.5)
  • VarLight Version (run /version VarLight ingame): 1.12.8
  • Java Version (run java -version in the terminal): Java 14

[Feature Request] The feedback command that everyone can see where you updated the light

Is your feature request related to a problem? Please describe.
Ye sort of when you do the command to update the light you get an message to all the users [Username: [Varlight] Updated Light levet at [x, y, z] in world "world" from x to x] thats irritating

Describe the solution you'd like
I like to get an option in the config to disable the message that says someone updates the light level

Describe alternatives you've considered (optional)
None because i found nothing to disable the message or i looked over it

Additional context
Nope nothing to add.

NPE/BlockPlaceEvent errors

Spigot 1.15.2 (Jenkins 2622)
LightAPI 3.4.2 (bottomdumber fork)
VarLight 1.8.2-MC-1.15.1 (there is not 1.15.2 version)

We are seeing quite a few of these as we move around. There is only one VarLight configured, in a different world.

[17:05:24] [Server thread/ERROR]: Could not pass event BlockPlaceEvent to VarLight v1.8.2
org.bukkit.event.EventException: null
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:319) ~[spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:541) ~[spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:528) ~[spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at com.rngservers.irondoors.events.Events.onIronDoor(Events.java:39) ~[?:?]
        at jdk.internal.reflect.GeneratedMethodAccessor289.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:315) ~[spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:541) ~[spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:528) ~[spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:442) ~[spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at net.minecraft.server.v1_15_R1.PlayerInteractManager.a(PlayerInteractManager.java:441) ~[spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1250) ~[?:git-Spigot-c574e08-807a677]
        at net.minecraft.server.v1_15_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:27) ~[spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at net.minecraft.server.v1_15_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) [spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:918) [spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:911) [spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeAll(SourceFile:103) [spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:894) [spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:828) [spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.NullPointerException
        at me.shawlaf.varlight.spigot.VarLightPlugin.onBlockPlace(VarLightPlugin.java:435) ~[?:?]
        at jdk.internal.reflect.GeneratedMethodAccessor469.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:315) ~[spigot-1.15.2.jar-2020-02-02-2025:git-Spigot-c574e08-807a677]
        ... 27 more

[Feature Request] Adding an command/file to find location for light

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Not much of an problem and more just annoying. The issue i am finding is that when using the plugin to doing with lighting. myself or my team are having issue finding the light source afterwards. If we have commmands or an files it keep in the the folder of the plugin it be more useful

Describe the solution you'd like
A clear and concise description of what you want to happen.

Just to added an command/config to find location where the light source has worked.

Java 12+ (Reflection)

Hello there!
I am working on getting a server to work with Java 14, but the reflection framework got restricted in Java 12, could you check if there are any quick fixes to this issue?

[21:56:30] [Server thread/INFO]: [VarLight] Enabling VarLight v1.9 [21:56:30] [Server thread/INFO]: [VarLight] Enabling in World [world] [21:56:30] [Server thread/WARN]: java.lang.NoSuchFieldException: modifiers [21:56:30] [Server thread/WARN]: at java.base/java.lang.Class.getDeclaredField(Class.java:2489) [21:56:30] [Server thread/WARN]: at me.shawlaf.varlight.spigot.util.ReflectionHelper$FieldAccess.lambda$static$2(ReflectionHelper.java:124) [21:56:30] [Server thread/WARN]: at me.shawlaf.varlight.spigot.util.ReflectionHelper$FieldAccess.apply(ReflectionHelper.java:142) [21:56:30] [Server thread/WARN]: at me.shawlaf.varlight.spigot.util.ReflectionHelper.fieldAccess(ReflectionHelper.java:36) [21:56:30] [Server thread/WARN]: at me.shawlaf.varlight.spigot.util.ReflectionHelper.access$300(ReflectionHelper.java:8) [21:56:30] [Server thread/WARN]: at me.shawlaf.varlight.spigot.util.ReflectionHelper$Safe.setValue(ReflectionHelper.java:186) [21:56:30] [Server thread/WARN]: at me.shawlaf.varlight.spigot.util.ReflectionHelper$Safe.set(ReflectionHelper.java:203) [21:56:30] [Server thread/WARN]: at me.shawlaf.varlight.spigot.nms.NmsAdapter.enableVarLightInWorld(NmsAdapter.java:69) [21:56:30] [Server thread/WARN]: at me.shawlaf.varlight.spigot.VarLightPlugin.enableInWorld(VarLightPlugin.java:162) [21:56:30] [Server thread/WARN]: at java.base/java.util.ArrayList.forEach(ArrayList.java:1510) [21:56:30] [Server thread/WARN]: at me.shawlaf.varlight.spigot.VarLightPlugin.onEnable(VarLightPlugin.java:119) [21:56:30] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) [21:56:30] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [21:56:30] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) [21:56:30] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugin(CraftServer.java:470) [21:56:30] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugins(CraftServer.java:384) [21:56:30] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:487) [21:56:30] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:298) [21:56:30] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:891) [21:56:30] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:832)

NoSuchElementException while updating light causes light to no longer update properly

Paper 156

VarLight Version ce4e551 (Not confirmed for 1.4.5 yet)

Stacktrace:

[17:19:18 WARN]: [VarLight] Plugin VarLight vce4e551 generated an exception while executing task 2933
java.util.NoSuchElementException: null
        at it.unimi.dsi.fastutil.longs.LongLinkedOpenHashSet.removeFirstLong(LongLinkedOpenHashSet.java:470) ~[patched_1.14.4.jar:git-Paper-156]
        at net.minecraft.server.v1_14_R1.LightEngineGraph.b(SourceFile:190) ~[patched_1.14.4.jar:git-Paper-156]
        at net.minecraft.server.v1_14_R1.LightEngineStorage.c(SourceFile:353) ~[patched_1.14.4.jar:git-Paper-156]
        at net.minecraft.server.v1_14_R1.LightEngineBlock.a(SourceFile:129) ~[patched_1.14.4.jar:git-Paper-156]
        at me.shawlaf.varlight.nms.NmsAdapter.lambda$updateBlockLight$0(Unknown Source) ~[?:?]
        at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.14.4.jar:git-Paper-156]
        at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.14.4.jar:git-Paper-156]
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.14.4.jar:git-Paper-156]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_231]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_231]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]

Bug/Request

Not sure if it's a bug or something that's purposely implemented, but it's currently not possible to use the plugin on stairs, slabs, walls/fences or glass (or glass panes) on 1.15.

We're currently needing a light plugin that will work on glass, the way addlight used to. If it's not purposely done due to issues, would it be possible to implement this for us?

Thank you

[Feature Request] Reapplying all light sources

Is your feature request related to a problem? Please describe.
I needed to relocate huge buildings about 50 blocks downwards, now I need to relocate light sources made using VarLight as well.

Rewriting the files directly won't work, because VarLight does not reapply light data on server load. Better wording: I rewrote NLS files successfully, but since server won't reapply light on load, then it's not useful out of the box

Describe the solution you'd like
A way to reapply all light sources to the world.

Describe alternatives you've considered (optional)
Current alternative is to read NLS myself and call out API - haven't tried that yet. get all loaded NLS files, grab all light source positions and call updateBlocks in NMS adapter - works fine.

Additional context
None

Feature request: View permission

Please consider adding a permission to view a (specific) light source. Use case: VIP (for example) can see the light, other (lower) ranks cannot.

Is this possible?

Loadup fail for non-overworld worlds

Not sure exactly what you need, but on startup:
[00:20:26] [Server thread/INFO]: [VarLight] Enabling VarLight v1.3 [00:20:26] [Server thread/INFO]: [VarLight] Created a new Lightsource Persistor for world "world" [00:20:26] [Server thread/INFO]: [VarLight] Created a new Lightsource Persistor for world "world_nether" [00:20:26] [Server thread/INFO]: [VarLight] Created a new Lightsource Persistor for world "world_the_end" [00:20:26] [Server thread/INFO]: [VarLight] Injected custom IBlockAccess into world "world" [00:20:26] [Server thread/ERROR]: Error occurred while enabling VarLight v1.3 (Is it up to date?) java.lang.ClassCastException: net.minecraft.server.v1_14_R1.LightEngineLayerEventListener$Void cannot be cast to net.minecraft.server.v1_14_R1.LightEngineLayer at me.florian.varlight.nms.NmsAdapter_1_14_R1.injectToEngine(NmsAdapter_1_14_R1.java:230) ~[?:?] at me.florian.varlight.nms.NmsAdapter_1_14_R1.injectCustomIBlockAccess(NmsAdapter_1_14_R1.java:221) ~[?:?] at me.florian.varlight.nms.NmsAdapter_1_14_R1.onEnable(NmsAdapter_1_14_R1.java:99) ~[?:?] at me.florian.varlight.VarLightPlugin.onEnable(VarLightPlugin.java:109) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[spigot.jar:git-Spigot-1eece4f-8879c31] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:352) [spigot.jar:git-Spigot-1eece4f-8879c31] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:416) [spigot.jar:git-Spigot-1eece4f-8879c31] at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:458) [spigot.jar:git-Spigot-1eece4f-8879c31] at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:372) [spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:440) [spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:258) [spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:761) [spigot.jar:git-Spigot-1eece4f-8879c31] at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]

Then when I try to right click:
[00:24:27] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to VarLight v1.3 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[spigot.jar:git-Spigot-1eece4f-8879c31] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot.jar:git-Spigot-1eece4f-8879c31] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:520) ~[spigot.jar:git-Spigot-1eece4f-8879c31] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:505) ~[spigot.jar:git-Spigot-1eece4f-8879c31] at org.bukkit.craftbukkit.v1_14_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:423) ~[spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.PlayerInteractManager.a(PlayerInteractManager.java:435) ~[spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1263) ~[spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:27) ~[spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:13) ~[spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:135) [spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:114) [spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.MinecraftServer.aW(MinecraftServer.java:895) [spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:888) [spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeAll(SourceFile:99) [spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:871) [spigot.jar:git-Spigot-1eece4f-8879c31] at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:805) [spigot.jar:git-Spigot-1eece4f-8879c31] at java.lang.Thread.run(Unknown Source) [?:1.8.0_211] Caused by: java.lang.UnsupportedOperationException: Not used for v1_14_R1! at me.florian.varlight.nms.NmsAdapter_1_14_R1.recalculateBlockLight(NmsAdapter_1_14_R1.java:315) ~[?:?] at me.florian.varlight.LightUpdaterBuiltIn.setLight(LightUpdaterBuiltIn.java:34) ~[?:?] at me.florian.varlight.VarLightPlugin.onInteract(VarLightPlugin.java:239) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_211] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_211] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_211] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot.jar:git-Spigot-1eece4f-8879c31] ... 19 more
If you need any more info, I'll try to provide it

[VLDB] java.lang.NegativeArraySizeException

Cause

If the buffer is [0x00, 0x00, 0x80], the result will be -128 instead of 128
or
If the buffer is [0x00, 0x00, 0xFF] the result will be -1 instead of 255

Solution: Wrap each read byte using Byte.toUnsignedInt()

Varlight [1.15.1] Error on startup

Using LightAPI (up to date)

[20:53:42] [Server thread/ERROR]: Error occurred while enabling VarLight v1.7 (Is it up to date?) java.lang.RuntimeException: Migration Failed: null at me.shawlaf.varlight.spigot.persistence.migrate.data.VLDBMigration.test(VLDBMigration.java:81) ~[?:?] at me.shawlaf.varlight.spigot.persistence.migrate.data.VLDBMigration.test(VLDBMigration.java:20) ~[?:?] at me.shawlaf.varlight.spigot.persistence.migrate.LightDatabaseMigrator.runMigrations(LightDatabaseMigrator.java:69) ~[?:?] at me.shawlaf.varlight.spigot.persistence.WorldLightSourceManager.<init>(WorldLightSourceManager.java:48) ~[?:?] at me.shawlaf.varlight.spigot.VarLightPlugin.enableInWorld(VarLightPlugin.java:198) ~[?:?] at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_212] at me.shawlaf.varlight.spigot.VarLightPlugin.onEnable(VarLightPlugin.java:99) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.15.1.jar:git-Paper-32] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:338) ~[patched_1.15.1.jar:git-Paper-32] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:420) ~[patched_1.15.1.jar:git-Paper-32] at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugin(CraftServer.java:468) ~[patched_1.15.1.jar:git-Paper-32] at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugins(CraftServer.java:382) ~[patched_1.15.1.jar:git-Paper-32] at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:481) ~[patched_1.15.1.jar:git-Paper-32] at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:290) ~[patched_1.15.1.jar:git-Paper-32] at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:884) ~[patched_1.15.1.jar:git-Paper-32] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212] Caused by: java.io.EOFException at java.io.DataInputStream.readShort(DataInputStream.java:315) ~[?:1.8.0_212] at me.shawlaf.varlight.persistence.vldb.VLDBInputStream.readInt16(VLDBInputStream.java:130) ~[?:?] at me.shawlaf.varlight.persistence.vldb.VLDBInputStream.readChunk(VLDBInputStream.java:88) ~[?:?] at me.shawlaf.varlight.persistence.vldb.VLDBInputStream.readAll(VLDBInputStream.java:71) ~[?:?] at me.shawlaf.varlight.spigot.persistence.migrate.data.VLDBMigration.test(VLDBMigration.java:49) ~[?:?]

[Feature Request] You must be a player to use this command

I want to use this plugin together with a skript and ran into a problem that I cannot call the fill command from the console

> varlight fill -20 58 20 20 58 -20 10
[10:34:04 INFO]: [VarLight] You must be a player to use this command
[10:34:04 WARN]: Unexpected exception while parsing console command "varlight fill -20 58 20 20 58 -20 10"
org.bukkit.command.CommandException: Unhandled exception executing command 'varlight' in plugin VarLight v1.12.8
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.16.4.jar:git-Paper-288]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.16.4.jar:git-Paper-288]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:802) ~[patched_1.16.4.jar:git-Paper-288]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchServerCommand(CraftServer.java:764) ~[patched_1.16.4.jar:git-Paper-288]
        at net.minecraft.server.v1_16_R3.DedicatedServer.handleCommandQueue(DedicatedServer.java:411) ~[patched_1.16.4.jar:git-Paper-288]
        at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:378) ~[patched_1.16.4.jar:git-Paper-288]        at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1212) ~[patched_1.16.4.jar:git-Paper-288]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1000) ~[patched_1.16.4.jar:git-Paper-288]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:177) ~[patched_1.16.4.jar:git-Paper-288]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_271]

Can't make light sources

I'm on 1.15.2 and have LightAPI.

Error log
> [08:31:41] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to VarLight v1.8.3 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:319) ~[server.jar:git-Spigot-8faa8b4-fba9f48] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[server.jar:git-Spigot-8faa8b4-fba9f48] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:541) ~[server.jar:git-Spigot-8faa8b4-fba9f48] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:528) ~[server.jar:git-Spigot-8faa8b4-fba9f48] at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:442) ~[server.jar:git-Spigot-8faa8b4-fba9f48] at net.minecraft.server.v1_15_R1.PlayerInteractManager.a(PlayerInteractManager.java:441) ~[server.jar:git-Spigot-8faa8b4-fba9f48] at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1251) ~[server.jar:git-Spigot-8faa8b4-fba9f48] at net.minecraft.server.v1_15_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:27) ~[server.jar:git-Spigot-8faa8b4-fba9f48] at net.minecraft.server.v1_15_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[server.jar:git-Spigot-8faa8b4-fba9f48] at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[server.jar:git-Spigot-8faa8b4-fba9f48] at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) [server.jar:git-Spigot-8faa8b4-fba9f48] at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [server.jar:git-Spigot-8faa8b4-fba9f48] at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [server.jar:git-Spigot-8faa8b4-fba9f48] at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [server.jar:git-Spigot-8faa8b4-fba9f48] at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:918) [server.jar:git-Spigot-8faa8b4-fba9f48] at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:911) [server.jar:git-Spigot-8faa8b4-fba9f48] at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127) [server.jar:git-Spigot-8faa8b4-fba9f48] at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:895) [server.jar:git-Spigot-8faa8b4-fba9f48] at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:828) [server.jar:git-Spigot-8faa8b4-fba9f48] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212] Caused by: me.shawlaf.varlight.spigot.nms.LightUpdateFailedException: LightAPI not enabled or deleteLight Event cancelled! at me.shawlaf.varlight.spigot.nms.NmsAdapter.updateBlockLight(NmsAdapter.java:169) ~[VarLight-1.8.3-MC-1.15.x.jar:?] at me.shawlaf.varlight.spigot.util.LightSourceUtil.placeNewLightSource(LightSourceUtil.java:64) ~[VarLight-1.8.3-MC-1.15.x.jar:?] at me.shawlaf.varlight.spigot.VarLightPlugin.onInteract(VarLightPlugin.java:325) ~[VarLight-1.8.3-MC-1.15.x.jar:?] at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_212] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_212] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:315) ~[server.jar:git-Spigot-8faa8b4-fba9f48]

BlockExplodeEvent error

Spigot 1.15.1
VarLight 1.8.1

Server has only one varlight instance. There were no players in that world.

config.yml

check-update: true
item: minecraft:glowstone_dust
autosave: -5
requiredPermission: varlight.use
whitelist:
- world
blacklist: []
vldb-deflated: true
stepsize-gamemode: SURVIVAL
varlight-reclaim: true
log-debug: false

Error:

[09:55:53] [Server thread/ERROR]: Could not pass event BlockExplodeEvent to VarLight v1.8.1
org.bukkit.event.EventException: null
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.Explosion.a(Explosion.java:253) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.World.createExplosion(World.java:854) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.WorldServer.createExplosion(WorldServer.java:1284) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.World.createExplosion(World.java:843) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at org.bukkit.craftbukkit.v1_15_R1.CraftWorld.createExplosion(CraftWorld.java:840) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at org.bukkit.craftbukkit.v1_15_R1.CraftWorld.createExplosion(CraftWorld.java:835) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at com.extrahardmode.task.CreateExplosionTask.createExplosion(CreateExplosionTask.java:189) ~[?:?]
        at com.extrahardmode.task.CreateExplosionTask.run(CreateExplosionTask.java:88) ~[?:?]
        at com.extrahardmode.features.monsters.Blazes.onEntityDeath(Blazes.java:167) ~[?:?]
        at jdk.internal.reflect.GeneratedMethodAccessor324.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:721) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.EntityLiving.d(EntityLiving.java:1326) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.EntityLiving.die(EntityLiving.java:1275) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.EntityLiving.damageEntity(EntityLiving.java:1122) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.EntityMonster.damageEntity(SourceFile:69) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.EntityBlaze.mobTick(SourceFile:116) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.EntityInsentient.doTick(EntityInsentient.java:661) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.EntityLiving.movementTick(EntityLiving.java:2519) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.EntityInsentient.movementTick(EntityInsentient.java:504) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.EntityMonster.movementTick(SourceFile:39) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.EntityBlaze.movementTick(SourceFile:110) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.EntityLiving.tick(EntityLiving.java:2351) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.EntityInsentient.tick(EntityInsentient.java:273) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.WorldServer.entityJoinedWorld(WorldServer.java:623) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.World.a(World.java:718) [spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.WorldServer.doTick(WorldServer.java:395) [spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1076) [spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:393) [spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:978) [spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:823) [spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
        at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]
        at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
        at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) ~[?:?]
        at java.util.Objects.checkIndex(Objects.java:372) ~[?:?]
        at java.util.ArrayList.get(ArrayList.java:458) ~[?:?]
        at me.shawlaf.varlight.spigot.VarLightPlugin.onBlockExplode(VarLightPlugin.java:487) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot-1.15.1.jar-2020-01-15-0736:git-Spigot-037559e-752cf95]
        ... 40 more

[BUG] illegal reflective access operation

26.04 20:49:35 [Server] INFO [VarLight] Enabling in World [world]
26.04 20:49:35 [Server] INFO WARNING: An illegal reflective access operation has occurred
26.04 20:49:35 [Server] INFO WARNING: Illegal reflective access by org.joor.Reflect (file:/plugins/VarLight-1.12.8.jar) to field java.lang.reflect.Field.modifiers
26.04 20:49:35 [Server] INFO WARNING: Please consider reporting this to the maintainers of org.joor.Reflect
26.04 20:49:35 [Server] INFO WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
26.04 20:49:35 [Server] INFO WARNING: All illegal access operations will be denied in a future release

Logging

Spigot 1.15.1 (Jenkins 2552)
VarLight 1.7.1-MC-1.15.1

I assume that I have misunderstood the instructions. My intent is not to log the VarLight saves. This is logged every 5 minutes

[17:59:33] [Server thread/INFO]: [VarLight] Light Sources persisted for World "world", Files modified: 0, Files deleted: 0

despite configuration

autosave: 5
autosave-logpersist: 'false'

Please advise what I have done wrong.

Another bug?

Minecraft 1.12.2

varlight version 1.8.3

use varlight give Admin snow 15

and;gif

2

[BUG] Redstone clocks lag server heavily with varlight loaded

Describe the bug
When running a Redstone clock, and having it push pistons, it causes lots of lag.

To Reproduce
Use world edit to varlight fill a large area, then create a piston that gets rapidly pushed up and down with a Redstone clock. You will see that it slows the server down immensely. It appears to be more effective to first fill the area with light, then remove varlight. The area stays lit, and Redstone functions without lag.

Expected behavior
The piston goes up and down at a normal speed

Server setup (please complete the following information):

  • Minecraft Version (run /version ingame): 1.16.4
  • VarLight Version (run /version VarLight ingame): 1.12.8
  • Java Version (run java -version in the terminal): 14

Additional context
Add any other context about the problem here.

In the SpigotMC resource page, it looks like DonkeyServer is experiencing the exact same issue in his review.

Plugin stops undiscovered end cities from generating [BUG]

I do not want to be the bearer of bad news but I have discovered a pretty big bug with the plugin. I don't know if this was the case with previous versions of minecraft and the plugin but I it happens with the current version in 1.16.1.

The plugin stops news end cities from generating in unexplored chunks which is a pretty major thing. It will not affect end cities that has already been discovered ans saved to your region files prior to installing the plugin but it stops the generation for any still out there. If you find it hard to believe, teleport yourself to an existing end city in your world, and look at it. Log out, stop the server, and delete the region files for the end dimension (in order to force the game to regenerate structures). Start the server back up, log in, and the end city that was previously there is now gone. If you do the /locate endcity command, it will still tell you that you are literally standing at the end city but it won't be there anymore, and with all region files being reset, the whole dimension will be void of end cities. I discovered this yesterday after I couldn't find a new end city after travelling for hours which then forced me to do the /locate command in order to have exact coords to go to, only to get there and there being no end city at all. I then had to do the painstaking task of removing all my plugins one by one, deleting my end region files and rebooting the server until I finally discovered that varlight was the culprit which was sadly one of the last plugins I tried to remove in my quest haha.

ArrayIndexOutOfBoundsException saving chunk

Spigot 1.14.4 (Jenkins 2468) git-Spigot-065a373-03b145b (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
LightAPI 3.3.2
VarLight 1.4.5-LightAPI-1.14

This error occurs occasionally, and randomly. There are no players on this test server. The stack trace does not identify any plugins, but it appears to be related to lighting. I do not recall seeing this error prior to VarLIght. So I'm wondering if the stack points to something useful. Any help appreciated.

[17:35:38] [Server thread/ERROR]: Failed to save chunk 1,-1
java.lang.ArrayIndexOutOfBoundsException: Index 49 out of bounds for length 33
        at org.bukkit.craftbukkit.libs.it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap.get(Long2ObjectOpenHashMap.java:348) ~[spigot-1.14.4.jar-2019-09-09-0727:git-Spigot-065a373-03b145b]
        at net.minecraft.server.v1_14_R1.LightEngineStorage.h(SourceFile:77) ~[spigot-1.14.4.jar-2019-09-09-0727:git-Spigot-065a373-03b145b]
        at net.minecraft.server.v1_14_R1.LightEngineLayer.a(SourceFile:215) ~[spigot-1.14.4.jar-2019-09-09-0727:git-Spigot-065a373-03b145b]
        at net.minecraft.server.v1_14_R1.ChunkRegionLoader.saveChunk(ChunkRegionLoader.java:269) ~[spigot-1.14.4.jar-2019-09-09-0727:git-Spigot-065a373-03b145b]
        at net.minecraft.server.v1_14_R1.PlayerChunkMap.saveChunk(PlayerChunkMap.java:699) ~[spigot-1.14.4.jar-2019-09-09-0727:git-Spigot-065a373-03b145b]
        at net.minecraft.server.v1_14_R1.PlayerChunkMap.lambda$16(PlayerChunkMap.java:396) ~[spigot-1.14.4.jar-2019-09-09-0727:git-Spigot-065a373-03b145b]
        at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:714) [?:?]
        at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) [?:?]
        at net.minecraft.server.v1_14_R1.PlayerChunkMap.b(PlayerChunkMap.java:378) [spigot-1.14.4.jar-2019-09-09-0727:git-Spigot-065a373-03b145b]
        at net.minecraft.server.v1_14_R1.PlayerChunkMap.unloadChunks(PlayerChunkMap.java:344) [spigot-1.14.4.jar-2019-09-09-0727:git-Spigot-065a373-03b145b]
        at net.minecraft.server.v1_14_R1.ChunkProviderServer.tick(ChunkProviderServer.java:337) [spigot-1.14.4.jar-2019-09-09-0727:git-Spigot-065a373-03b145b]
        at net.minecraft.server.v1_14_R1.WorldServer.doTick(WorldServer.java:259) [spigot-1.14.4.jar-2019-09-09-0727:git-Spigot-065a373-03b145b]
        at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1068) [spigot-1.14.4.jar-2019-09-09-0727:git-Spigot-065a373-03b145b]
        at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:393) [spigot-1.14.4.jar-2019-09-09-0727:git-Spigot-065a373-03b145b]
        at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:970) [spigot-1.14.4.jar-2019-09-09-0727:git-Spigot-065a373-03b145b]
        at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:815) [spigot-1.14.4.jar-2019-09-09-0727:git-Spigot-065a373-03b145b]
        at java.lang.Thread.run(Thread.java:834) [?:?]

Question wrt breaking blocks to remove light sources

Version-independent

I did the following in a frozen_tundra biome

  • Construct a large pond
  • Watch the pond ice over
  • Add barriers above the pond
  • Add VarLight light sources to the barriers, level 15
  • Watch the pond ice melt, and not replenish
  • Remove the barriers with WE //cut

Since the blocks weren't technically broken, the light sources were not removed, and the pond remains unfrozen. I count this as a desirable feature, but want to confirm that is the intent. If it is not, and you intend to "fix" it, please make it a configurable option if possible.

[BUG] Plugin error on startup (Yatopia)

I tried to run the plugin at https://github.com/YatopiaMC/Yatopia but it doesn't load and doesn't work, so I guess it's not supported, but I want to ask if it would add support ..?

Full log: https://pastebin.com/W2tDj1kD

Yatopia version git-Yatopia-"89064f4" (MC: 1.16.4)

[VarLight] Enabling in World [world] [13:41:01 ERROR]: Could not pass event WorldLoadEvent to VarLight v1.12.8 java.lang.ClassCastException: class net.minecraft.server.v1_16_R3.LightEngineThreaded$1 cannot be cast to class net.minecraft.server.v1_16_R3.LightEngineBlock (net.minecraft.server.v1_16_R3.LightEngineThreaded$1 and net.minecraft.server.v1_16_R3.LightEngineBlock are in unnamed module of loader 'app') at me.shawlaf.varlight.spigot.nms.v1_16_R3.NmsAdapter.enableVarLightInWorld(NmsAdapter.java:61) ~[?:?] at me.shawlaf.varlight.spigot.VarLightPlugin.enableInWorld(VarLightPlugin.java:186) ~[?:?] at me.shawlaf.varlight.spigot.VarLightPlugin.worldLoad(VarLightPlugin.java:275) ~[?:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor19.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:453) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:259) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:945) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:179) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at java.lang.Thread.run(Thread.java:834) [?:?] [13:41:01 INFO]: Preparing start region for dimension minecraft:the_nether [13:41:01 INFO]: Loaded 0 spawn chunks for world world_nether [13:41:01 INFO]: Time elapsed: 76 ms [13:41:01 INFO]: [VarLight] Enabling in World [world_nether] [13:41:01 ERROR]: Could not pass event WorldLoadEvent to VarLight v1.12.8 java.lang.ClassCastException: class net.minecraft.server.v1_16_R3.LightEngineThreaded$1 cannot be cast to class net.minecraft.server.v1_16_R3.LightEngineBlock (net.minecraft.server.v1_16_R3.LightEngineThreaded$1 and net.minecraft.server.v1_16_R3.LightEngineBlock are in unnamed module of loader 'app') at me.shawlaf.varlight.spigot.nms.v1_16_R3.NmsAdapter.enableVarLightInWorld(NmsAdapter.java:61) ~[?:?] at me.shawlaf.varlight.spigot.VarLightPlugin.enableInWorld(VarLightPlugin.java:186) ~[?:?] at me.shawlaf.varlight.spigot.VarLightPlugin.worldLoad(VarLightPlugin.java:275) ~[?:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor19.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:453) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:259) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:945) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:179) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at java.lang.Thread.run(Thread.java:834) [?:?] [13:41:01 INFO]: Preparing start region for dimension minecraft:the_end [13:41:01 INFO]: Loaded 0 spawn chunks for world world_the_end [13:41:01 INFO]: Time elapsed: 242 ms [13:41:01 INFO]: [VarLight] Enabling in World [world_the_end] [13:41:01 ERROR]: Could not pass event WorldLoadEvent to VarLight v1.12.8 java.lang.ClassCastException: class net.minecraft.server.v1_16_R3.LightEngineThreaded$1 cannot be cast to class net.minecraft.server.v1_16_R3.LightEngineBlock (net.minecraft.server.v1_16_R3.LightEngineThreaded$1 and net.minecraft.server.v1_16_R3.LightEngineBlock are in unnamed module of loader 'app') at me.shawlaf.varlight.spigot.nms.v1_16_R3.NmsAdapter.enableVarLightInWorld(NmsAdapter.java:61) ~[?:?] at me.shawlaf.varlight.spigot.VarLightPlugin.enableInWorld(VarLightPlugin.java:186) ~[?:?] at me.shawlaf.varlight.spigot.VarLightPlugin.worldLoad(VarLightPlugin.java:275) ~[?:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor19.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:453) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:259) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:945) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:179) ~[patched_1.16.4.jar:git-Yatopia-"89064f4"] at java.lang.Thread.run(Thread.java:834) [?:?]

Failed to initialize in 1.8, 1.9, 1.10 and 1.11

Cause <- Material.isItem() was added in 1.12

Stacktrace:

java.lang.NoSuchMethodError: org.bukkit.Material.isItem()Z
        at me.shawlaf.varlight.VarLightConfiguration.getLightUpdateItem(VarLightConfiguration.java:48) ~[?:?]
        at me.shawlaf.varlight.VarLightPlugin.loadLightUpdateItem(VarLightPlugin.java:174) ~[?:?]
        at me.shawlaf.varlight.VarLightPlugin.onEnable(VarLightPlugin.java:100) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot.jar:git-Spigot-21fe707-e1ebe52]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-21fe707-e1ebe52]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [spigot.jar:git-Spigot-21fe707-e1ebe52]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [spigot.jar:git-Spigot-21fe707-e1ebe52]
        at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414) [spigot.jar:git-Spigot-21fe707-e1ebe52]
        at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378) [spigot.jar:git-Spigot-21fe707-e1ebe52]
        at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333) [spigot.jar:git-Spigot-21fe707-e1ebe52]
        at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263) [spigot.jar:git-Spigot-21fe707-e1ebe52]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [spigot.jar:git-Spigot-21fe707-e1ebe52]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]

Feature Request: More Permissions

I would like to request that there be permissions added for using the item to create/update light source blocks and also a permission to break them and get the drop from it.

MultiVerse incompatability

Spigot 1.14.4 latest
VarLight 1.4.1 for Spigot 1.14.4

>varlight whitelist list
[15:22:09] [Server thread/INFO]: [VarLight] Worlds on the VarLight Whitelist:
[15:22:09] [Server thread/INFO]:    - "world_whitedog"
>varlight create world_whitedog 271 70 255 15
[15:22:11] [Server thread/INFO]: [VarLight] VarLight is not active in that world!

Paper 1.15.1 Patch

I can't get VarLight 1.8 to work on my 1.15.1 paper server. The plugin runs, boots fine. It's only effected when you attempt to change a blocks light level. Here's my console when you right click with glowstone. https://mcpaste.io/ea1ef9fc635a84bc

Varlight not Updating Light Sources[BUG]

Describe the bug
The problem has to do with Varlight not updating block light levels. I used varlight fill on a large area (433x757) and not all the blocks were emitting light, despite when using varlight debug the blocks being listed as emitting light level 15.

To Reproduce

  1. Set chunks to load to 5
  2. World edit in a 433x757 size map (using FAWE)
  3. Run varlight fill with a โˆ†Y of 100 on the entire map.
  4. Stand in one place of the map.
  5. Use --forceUpgrade and --eraseCache on next launch of server.
  6. There will be no light.

Expected behavior
None of the varlight-ed blocks will emit light. However, when placing a block they will.

Screenshots
Screen Shot 2020-09-26 at 11 23 06 PM

Server setup (please complete the following information):

  • Minecraft Version (run /version ingame):

Screen Shot 2020-09-26 at 11 23 54 PM

  • VarLight Version (run /version VarLight ingame):

Screen Shot 2020-09-26 at 11 24 12 PM

  • Java Version (run java -version in the terminal):
    OpenJDK versin "1.8.0_252-b09"
    OpenJDK Runtime Enviornment (build 1.8.0_252-b09)
    OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

Additional context
The Varlight Command seemed to stall at 100% completed overnight when I was running it.

Purpur compatibility

Is your feature request related to a problem? Please describe.
With nothing else to do this weekend, I decided to experiment with Purpur. VarLight is unhappy, no doubt due to the StarLight reimplementation of lighting. (So probably incompatible with Tuinity also.)

Describe the solution you'd like
Whatever is required.

Describe alternatives you've considered (optional)
Initial inquiry.

Additional context

[15:42:20] [Server thread/INFO]: [VarLight] Enabling in World [world]
[15:42:20] [Server thread/ERROR]: Could not pass event WorldLoadEvent to VarLight v1.12.8
java.lang.ClassCastException: class com.tuinity.tuinity.chunk.light.StarLightInterface$2 cannot be cast to class net.minecraft.server.v1_16_R3.LightEngineBlock (com.tuinity.tuinity.chunk.light.StarLightInterface$2 and net.minecraft.server.v1_16_R3.LightEngineBlock are in unnamed module of loader 'app')
        at me.shawlaf.varlight.spigot.nms.v1_16_R3.NmsAdapter.enableVarLightInWorld(NmsAdapter.java:61) ~[?:?]
        at me.shawlaf.varlight.spigot.VarLightPlugin.enableInWorld(VarLightPlugin.java:186) ~[?:?]
        at me.shawlaf.varlight.spigot.VarLightPlugin.worldLoad(VarLightPlugin.java:275) ~[?:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor147.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.5.jar:git-Purpur-978]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.5.jar:git-Purpur-978]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.5.jar:git-Purpur-978]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.5.jar:git-Purpur-978]
        at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:450) ~[patched_1.16.5.jar:git-Purpur-978]
        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:249) ~[patched_1.16.5.jar:git-Purpur-978]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:942) ~[patched_1.16.5.jar:git-Purpur-978]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:176) ~[patched_1.16.5.jar:git-Purpur-978]

Localization File(s) for Messages

Spigot 1.15.1
VarLight 1.8-MC-1.15.1

Feature requests and questions:

  • Update check should be configurable option. I have an automagical update checker, so do not need VL to check.
  • How is latest version being checked? My network interceptor does not allow outbound network connections, but I don't see that any have been attempted.
  • Configuration save options seem to have disappeared. What are the save options now? I do not see a save being logged, and the file timestamp has not changed.
  • Please provide configuration option to remove color formatting from console/log and in-game messages. Or better, a localization file for all messages.

[BUG] Glass

Describe the bug
A clear and concise description of what the bug is.
I can't apply light to glass blocks
To Reproduce
Steps to reproduce the behavior:
Try to right click glowstone on glass blocks
Expected behavior
A clear and concise description of what you expected to happen.
It should increase light level of block
Screenshots
If applicable, add screenshots to help explain your problem.

Server setup (please complete the following information):

  • Minecraft Version (run /version ingame): 1.15 Paper
  • VarLight Version (run /version VarLight ingame): 1.11.2
  • Java Version (run java -version in the terminal): java version "1.8.0_201"
    Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
    Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

Additional context
Add any other context about the problem here.

ConcurrentModificationException while saving

Permalink to spigot post

VarLight Version 1.4.5

Using Built-in methods (no LightAPI)

Stacktrace

[21:26:44] [Craft Scheduler Thread - 288/WARN]: [VarLight] Plugin VarLight v1.4.5 generated an exception while executing task 7
java.util.ConcurrentModificationException: null
        at java.util.HashMap$HashIterator.nextNode(Unknown Source) ~[?:1.8.0_231]
        at java.util.HashMap$ValueIterator.next(Unknown Source) ~[?:1.8.0_231]
        at me.shawlaf.varlight.persistence.LightSourcePersistor.save(Unknown Source) ~[?:?]
        at me.shawlaf.varlight.VarLightPlugin.lambda$null$0(Unknown Source) ~[?:?]
        at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[?:1.8.0_231]
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.ReferencePipeline.forEach(Unknown Source) ~[?:1.8.0_231]
        at me.shawlaf.varlight.VarLightPlugin.lambda$initAutosave$1(Unknown Source) ~[?:?]
        at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[spigot.jar:git-Spigot-94af569-1e7a197]
        at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) [spigot.jar:git-Spigot-94af569-1e7a197]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_231]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_231]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]
Suppressed: java.io.IOException: Incomplete document
        at com.google.gson.stream.JsonWriter.close(JsonWriter.java:559) ~[spigot.jar:git-Spigot-94af569-1e7a197]
        at me.shawlaf.varlight.persistence.LightSourcePersistor.save(Unknown Source) ~[?:?]
        at me.shawlaf.varlight.VarLightPlugin.lambda$null$0(Unknown Source) ~[?:?]
        at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[?:1.8.0_231]
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_231]
        at java.util.stream.ReferencePipeline.forEach(Unknown Source) ~[?:1.8.0_231]
        at me.shawlaf.varlight.VarLightPlugin.lambda$initAutosave$1(Unknown Source) ~[?:?]
        at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[spigot.jar:git-Spigot-94af569-1e7a197]
        at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) [spigot.jar:git-Spigot-94af569-1e7a197]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_231]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_231]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]

ExceptionInInitializerError on Spigot 1.14.4

Spigot 1.14.4
VarLight 1.3.5.3

On server start-up

[17:07:56] [Server thread/ERROR]: Error occurred while enabling VarLight v1.3.5.3 (Is it up to date?)
java.lang.ExceptionInInitializerError: null
        at xyz.upperlevel.spigot.book.BookUtil$BookBuilder.pages(BookUtil.java:136) ~[?:?]
        at me.florian.varlight.command.VarLightCommand.<init>(VarLightCommand.java:54) ~[?:?]
        at me.florian.varlight.VarLightPlugin.onEnable(VarLightPlugin.java:179) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[spigot-1.14.4.jar-2019-07-19-1706:git-Spigot-9de398a-9c887d4]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:352) [spigot-1.14.4.jar-2019-07-19-1706:git-Spigot-9de398a-9c887d4]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:417) [spigot-1.14.4.jar-2019-07-19-1706:git-Spigot-9de398a-9c887d4]
        at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:461) [spigot-1.14.4.jar-2019-07-19-1706:git-Spigot-9de398a-9c887d4]
        at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:375) [spigot-1.14.4.jar-2019-07-19-1706:git-Spigot-9de398a-9c887d4]
        at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:449) [spigot-1.14.4.jar-2019-07-19-1706:git-Spigot-9de398a-9c887d4]
        at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:258) [spigot-1.14.4.jar-2019-07-19-1706:git-Spigot-9de398a-9c887d4]
        at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:776) [spigot-1.14.4.jar-2019-07-19-1706:git-Spigot-9de398a-9c887d4]
        at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.IllegalStateException: Cannot initiate reflections for v1_14_R1
        at xyz.upperlevel.spigot.book.NmsBookHelper.<clinit>(NmsBookHelper.java:104) ~[?:?]
        ... 12 more
Caused by: java.lang.NoSuchMethodException: net.minecraft.server.v1_14_R1.EntityPlayer.a(net.minecraft.server.v1_14_R1.ItemStack, net.minecraft.server.v1_14_R1.EnumHand)
        at java.lang.Class.getMethod(Class.java:2109) ~[?:?]
        at xyz.upperlevel.spigot.book.NmsBookHelper.<clinit>(NmsBookHelper.java:81) ~[?:?]
        ... 12 more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.