The optimization plugin really works! I am amazed, this is one of the best plugins for server optimization, and it is also FREE, which makes it even more unique.
This resource is awesome, good for servers which have constant TPS drops. Can you add the source code of the project, I have many enchantments and bug issues that I can make (A GitHub repository)? I cant find anywhere to report a bug. My console keeps getting spammed and I cant read it anymore except:
[23:28:27 ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread Craft Scheduler Thread - 1229224 - LightOptimizer failed main thread check: Cannot remove entity off-main
java.lang.Throwable: null
at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:52) ~[leaf-1.21.1.jar:1.21.1-DEV-1a6df97]
at ca.spottedleaf.moonrise.patches.chunk_system.level.entity.server.ServerEntityLookup.checkThread(ServerEntityLookup.java:44) ~[leaf-1.21.1.jar:1.21.1-DEV-1a6df97]
at ca.spottedleaf.moonrise.patches.chunk_system.level.entity.EntityLookup$EntityCallback.a(EntityLookup.java:1060) ~[leaf-1.21.1.jar:1.21.1-DEV-1a6df97]
at net.minecraft.world.entity.Entity.setRemoved(Entity.java:5048) ~[leaf-1.21.1.jar:1.21.1-DEV-1a6df97]
at net.minecraft.world.entity.Entity.remove(Entity.java:786) ~[leaf-1.21.1.jar:1.21.1-DEV-1a6df97]
at net.minecraft.world.entity.LivingEntity.remove(LivingEntity.java:763) ~[?:?]
at net.minecraft.world.entity.Entity.discard(Entity.java:720) ~[leaf-1.21.1.jar:1.21.1-DEV-1a6df97]
at org.bukkit.craftbukkit.entity.CraftEntity.remove(CraftEntity.java:400) ~[?:?]
at LightOptimizer-1.7.jar/dev.atrox.lightoptimizer.Optimizer.SmartClearMob$2.run(SmartClearMob.java:68) ~[LightOptimizer-1.7.jar:?]
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78) ~[?:?]
at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[?:?]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[leaf-1.21.1.jar:?]
at java.base/java.util.concurrent.ThreadPerTaskExecutor$TaskRunner.run(ThreadPerTaskExecutor.java:314) ~[?:?]
at java.base/java.lang.VirtualThread.run(VirtualThread.java:329) ~[?:?]
[23:28:27 WARN]: [LightOptimizer] Plugin LightOptimizer v1.7 generated an exception while executing task 1371
java.lang.IllegalStateException: Cannot remove entity off-main
at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:53) ~[leaf-1.21.1.jar:1.21.1-DEV-1a6df97]
at ca.spottedleaf.moonrise.patches.chunk_system.level.entity.server.ServerEntityLookup.checkThread(ServerEntityLookup.java:44) ~[leaf-1.21.1.jar:1.21.1-DEV-1a6df97]
at ca.spottedleaf.moonrise.patches.chunk_system.level.entity.EntityLookup$EntityCallback.a(EntityLookup.java:1060) ~[leaf-1.21.1.jar:1.21.1-DEV-1a6df97]
at net.minecraft.world.entity.Entity.setRemoved(Entity.java:5048) ~[leaf-1.21.1.jar:1.21.1-DEV-1a6df97]
at net.minecraft.world.entity.Entity.remove(Entity.java:786) ~[leaf-1.21.1.jar:1.21.1-DEV-1a6df97]
at net.minecraft.world.entity.LivingEntity.remove(LivingEntity.java:763) ~[?:?]
at net.minecraft.world.entity.Entity.discard(Entity.java:720) ~[leaf-1.21.1.jar:1.21.1-DEV-1a6df97]
at org.bukkit.craftbukkit.entity.CraftEntity.remove(CraftEntity.java:400) ~[?:?]
at LightOptimizer-1.7.jar/dev.atrox.lightoptimizer.Optimizer.SmartClearMob$2.run(SmartClearMob.java:68) ~[LightOptimizer-1.7.jar:?]
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78) ~[?:?]
at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[?:?]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[leaf-1.21.1.jar:?]
at java.base/java.util.concurrent.ThreadPerTaskExecutor$TaskRunner.run(ThreadPerTaskExecutor.java:314) ~[?:?]
at java.base/java.lang.VirtualThread.run(VirtualThread.java:329) ~[?:?]
Also, can you optimize hoppers and elytra optimization by giving trident + riptide and fireworks a cooldown. Overall, this plugin is good to use, just needs the spamming to be fixed.
You don't need to post the error here; you can put it in the discussions section. Anyway, wait for tomorrow's update. There are some performance issues in the plugin, and I'm working on fixing them with updates. I've already planned a plugin for the features you mentioned, which will be released soon. (Until tomorrow's update, please disable SmartClearMob by setting config.yml > smartclearmob > enabled: false.) If you have any other suggestions, feel free to share them.
Version: 1.3
This is a necessary plugin in small servers, very good at optimizing your server