EpicEricEE / ShopChest

ShopChest - Spigot/Bukkit Plugin
MIT License
45 stars 57 forks source link

[Java 16] JavaScript Engine gone (Console spam) #371

Open ken-kentan opened 3 years ago

ken-kentan commented 3 years ago

Minecraft 1.17.x required Java 16. JS engine were removed in Java 15.

I found a lot of warning spam in console when I run this plugin in Java 16.

[10:14:07] [pool-39-thread-1219/WARN]: Exception in thread "pool-39-thread-1219" java.lang.NullPointerException: Cannot invoke "javax.script.ScriptEngine.eval(String)" because "this.engine" is null
[10:14:07] [pool-39-thread-1219/WARN]:  at de.epiceric.shopchest.config.HologramFormat.evalRequirement(HologramFormat.java:196)
[10:14:07] [pool-39-thread-1219/WARN]:  at de.epiceric.shopchest.config.HologramFormat.getFormat(HologramFormat.java:68)
[10:14:07] [pool-39-thread-1219/WARN]:  at de.epiceric.shopchest.shop.Shop.getHologramText(Shop.java:302)
[10:14:07] [pool-39-thread-1219/WARN]:  at de.epiceric.shopchest.shop.Shop.createHologram(Shop.java:228)
[10:14:07] [pool-39-thread-1219/WARN]:  at de.epiceric.shopchest.shop.Shop.lambda$create$1(Shop.java:141)
[10:14:07] [pool-39-thread-1219/WARN]:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
[10:14:07] [pool-39-thread-1219/WARN]:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)