java.lang.IllegalArgumentException: Can not set static boolean field net.croxis.plugins.lift.Config.mouseScroll to null value
Bungeetaco opened this issue ยท 0 comments
Hi there,
First of all, thank you for making and maintaining this plugin.
Since updating to version v69, my server refuses to load the plugin however, with the following error showing up in console:
ERROR
Error occurred while enabling Lift v69 (Is it up to date?)
java.lang.IllegalArgumentException: Can not set static boolean field net.croxis.plugins.lift.Config.mouseScroll to null value
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167) ~[?:1.8.0_265]
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171) ~[?:1.8.0_265]
at sun.reflect.UnsafeStaticBooleanFieldAccessorImpl.set(UnsafeStaticBooleanFieldAccessorImpl.java:78) ~[?:1.8.0_265]
at java.lang.reflect.Field.set(Field.java:764) ~[?:1.8.0_265]
at net.croxis.plugins.lift.Config.lambda$mapConfigurationToClassFields$1(Config.java:78) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:1.8.0_265]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_265]
at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[?:1.8.0_265]
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:1.8.0_265]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_265]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_265]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:1.8.0_265]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:1.8.0_265]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_265]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485) ~[?:1.8.0_265]
at net.croxis.plugins.lift.Config.mapConfigurationToClassFields(Config.java:73) ~[?:?]
at net.croxis.plugins.lift.BukkitConfig.loadConfig(BukkitConfig.java:58) ~[?:?]
at net.croxis.plugins.lift.BukkitLift.onEnable(BukkitLift.java:68) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.3.jar:git-Paper-247]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380) ~[patched_1.16.3.jar:git-Paper-247]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.16.3.jar:git-Paper-247]
at org.bukkit.craftbukkit.v1_16_R2.CraftServer.enablePlugin(CraftServer.java:501) ~[patched_1.16.3.jar:git-Paper-247]
at org.bukkit.craftbukkit.v1_16_R2.CraftServer.enablePlugins(CraftServer.java:415) ~[patched_1.16.3.jar:git-Paper-247]
at net.minecraft.server.v1_16_R2.MinecraftServer.loadWorld(MinecraftServer.java:468) ~[patched_1.16.3.jar:git-Paper-247]
at net.minecraft.server.v1_16_R2.DedicatedServer.init(DedicatedServer.java:237) ~[patched_1.16.3.jar:git-Paper-247]
at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:939) ~[patched_1.16.3.jar:git-Paper-247]
at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$a$0(MinecraftServer.java:177) ~[patched_1.16.3.jar:git-Paper-247]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_265]
I am running the latest version of PaperMC 1.16.3 (build #247 as of now), and I have deleted the Lift configuration folder prior to loading up the new version. Here is the generated config file (same one also appears under ./default/config.yml):
# Note: Smaller area and height values result in less lag.
# baseBlockSpeeds speed less than 0.4 may not work well.
# autoPlace will automatically move players to be fully in the elevator
# checkFloor will make sure all floors have glass blocks (at the cost of possible lag when starting a lift)
# preventEntry will prevent players from entering an active elevator (at the cost of possible lag when lifts are running)
maxLiftArea: 16
maxHeight: 256
debug: false
autoPlace: false
preventEntry: false
preventLeave: true
checkFloor: false
liftMobs: true
mouseScroll: true
floorBlocks:
- GLASS
- "*_STAINED_GLASS"
buttonBlocks:
- "*BUTTON"
signBlocks:
- "*WALL_SIGN"
redstone: false
baseBlockSpeeds:
IRON_BLOCK: 0.5
destination: "&1Dest"
messages:
oneFloor: "There is only one floor."
currentFloor: "Current Floor"
cantEnter: "Can't enter elevator in use"
cantLeave: "Can't leave elevator in use"
unsafe: "It is unsafe to leave a vehicle in a lift!"
scrollSelectEnabled: "&7Scrollable floor selection enabled. Click on sign with an item for default mode"
scrollSelectDisabled: "&7Scrollable floor selection disabled"
Looking at the error message, it seems that it cannot read the mouseScroll value, which then defaults to null.
Please let me know if you require further information.