Giter VIP home page Giter VIP logo

ntd-luckyblock's People

Contributors

danirod12 avatar

Watchers

 avatar

ntd-luckyblock's Issues

Request support for Folia

https://github.com/PaperMC/Folia

Here is a summary of everything made with ChatGPT to save some time:

For plugin developers, there are a few key takeaways from the given text:

Folia introduces regionised multithreading, which means that plugins will require modification to function properly. Plugin developers should expect compatibility with existing plugins to be at zero.

Folia introduces new API additions, such as the RegionisedScheduler and EntityScheduler, which can help plugins run on the correct thread context.

To ensure compatibility with Folia, plugin developers must mark their plugin as compatible by placing "folia-supported: true" in the plugin.yml file. Additionally, plugins must take advantage of the RegionisedScheduler and EntityScheduler API to ensure correct behavior.

Plugins should not assume that they can access or modify data in other regions, as Folia regions tick in parallel and do not share data. Plugin developers should take advantage of the upcoming thread-check API to ensure correct behavior.

There are currently broken API, including the scoreboard API, and planned API changes, such as super aggressive thread checks, which may impact plugin development.

Overall, plugin developers should be prepared for significant changes in their plugins to ensure compatibility with Folia. They should take advantage of the new API additions and mark their plugin as compatible to ensure correct behavior. Additionally, they should be aware of the limitations and rules of Folia's regionised multithreading to avoid bugs and errors in their plugins.

NPEs onEnable

>version
[22:16:29] [Server thread/INFO]: This server is running CraftBukkit version 3409-Spigot-862678e-30b4043 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT)
[22:16:29] [Server thread/INFO]: You are running the latest version
>mc-log mc-check-plugins 75%_*_155 
[22:16:30] [Server thread/INFO]: ========================== mc-check-plugins 75%_*_155 ==========================
>version ntdLuckyBlock
[22:16:33] [Server thread/INFO]: ntdLuckyBlock version 2.5.10
[22:16:33] [Server thread/INFO]: Cool revamped LuckyBlock & API. Say goodbye to the sponge and resourcepacks!
[22:16:33] [Server thread/INFO]: Author: [DenBeKKer]

On server start-up, six of these

[21:29:55] [Server thread/WARN]: java.lang.NullPointerException: Cannot invoke "me.DenBeKKer.ntdLuckyBlock.d.a.do(org.bukkit.inventory.ItemStack)" because "<local2>" is null
[21:29:55] [Server thread/WARN]:        at me.DenBeKKer.ntdLuckyBlock.customitem.Identifier.apply(Identifier.java:46)
[21:29:55] [Server thread/WARN]:        at me.DenBeKKer.ntdLuckyBlock.customitem.BekkerItemStack.<init>(BekkerItemStack.java:21)
[21:29:55] [Server thread/WARN]:        at me.DenBeKKer.ntdLuckyBlock.customitem.BekkerItemStackBuilder.build(BekkerItemStackBuilder.java:130)
[21:29:55] [Server thread/WARN]:        at me.DenBeKKer.ntdLuckyBlock.customitem.CustomItemFactory.register(CustomItemFactory.java:65)
[21:29:55] [Server thread/WARN]:        at me.DenBeKKer.ntdLuckyBlock.customitem.CustomItemFactory.loadSystem(CustomItemFactory.java:280)
[21:29:55] [Server thread/WARN]:        at me.DenBeKKer.ntdLuckyBlock.LBMain.if(LBMain.java:452)
[21:29:55] [Server thread/WARN]:        at me.DenBeKKer.ntdLuckyBlock.LBMain.onEnable(LBMain.java:264)
[21:29:55] [Server thread/WARN]:        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[21:29:55] [Server thread/WARN]:        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342)
[21:29:55] [Server thread/WARN]:        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480)
[21:29:55] [Server thread/WARN]:        at org.bukkit.craftbukkit.v1_18_R1.CraftServer.enablePlugin(CraftServer.java:526)
[21:29:55] [Server thread/WARN]:        at org.bukkit.craftbukkit.v1_18_R1.CraftServer.enablePlugins(CraftServer.java:440)
[21:29:55] [Server thread/WARN]:        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:612)
[21:29:55] [Server thread/WARN]:        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:414)
[21:29:55] [Server thread/WARN]:        at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:262)
[21:29:55] [Server thread/WARN]:        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:994)
[21:29:55] [Server thread/WARN]:        at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304)
[21:29:55] [Server thread/WARN]:        at java.base/java.lang.Thread.run(Thread.java:833)

Inconsistent skull meta

Paper 1.20.2-252 (or anything after build 249)
ntdLuckyBlock 2.8.12

On server start-up (ie, enable ntdLuckyBlock)

[15:40:27] [Server thread/INFO]: [ntdLuckyBlock] Loading NMS for your platform (git-Paper-252 (MC: 1.20.2), v1_20_R2)...
[15:40:27] [Server thread/WARN]: Found inconsistent skull meta, this should normally not happen and is not a Bukkit / Spigot issue, but one from a plugin you are using.
Bukkit will attempt to fix it this time for you, but may not be able to do this every time.
If you see this message after typing a command from a plugin, please report this to the plugin developer, they should use the api instead of relying on reflection (and doing it the wrong way).

for each luckyblock in the world. No other information was provided, but see PaperMC/Paper#9875 for some hints.

permission to set lucky block

hi would it be possible to add a permission, e.g. luckyblock.place.* so that you can control the permission in certain worlds, e.g. where the blocks can be placed ?

Kind regards

Remapping failed on Paper 1.20.6

Paper 1.20.6-49
ntdLuckyBlock-2.8.19.1

On server start-up

[03:09:29] [Paper Plugin Remapper Thread - 1/INFO]: [PluginRemapper] Remapping plugin 'plugins/ntdLuckyBlock-2.8.19.1.jar'...
[03:09:29] [ServerMain/ERROR]: [PluginRemapper] Encountered exception remapping plugins
java.util.concurrent.CompletionException: java.lang.RuntimeException: Failed to remap plugin jar 'plugins/ntdLuckyBlock-2.8.19.1.jar'
        at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
        at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
        at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:649) ~[?:?]
        at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:1570) ~[?:?]
Caused by: java.lang.RuntimeException: Failed to remap plugin jar 'plugins/ntdLuckyBlock-2.8.19.1.jar'
        at io.papermc.paper.pluginremap.PluginRemapper.lambda$remap$7(PluginRemapper.java:358) ~[paper-1.20.6.jar:git-Paper-49]
        at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
        ... 4 more
Caused by: java.lang.RuntimeException: Failed to execute task me/DenBeKKer/ntdLuckyBlock/api/events/CustomItemAddedEvent
        at net.neoforged.art.internal.AsyncHelper.invokeAll(AsyncHelper.java:56) ~[AutoRenamingTool-2.0.3.jar:?]
        at net.neoforged.art.internal.AsyncHelper.consumeAll(AsyncHelper.java:36) ~[AutoRenamingTool-2.0.3.jar:?]
        at net.neoforged.art.internal.RenamerImpl.run(RenamerImpl.java:177) ~[paper-1.20.6.jar:?]
        at net.neoforged.art.internal.RenamerImpl.run(RenamerImpl.java:95) ~[paper-1.20.6.jar:?]
        at io.papermc.paper.pluginremap.PluginRemapper.lambda$remap$7(PluginRemapper.java:355) ~[paper-1.20.6.jar:git-Paper-49]
        at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
        ... 4 more
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Duplicate key do (attempted merging values private static final me/DenBeKKer/ntdLuckyBlock/api/events/CustomItemAddedEvent/do Lorg/bukkit/event/HandlerList; and private final me/DenBeKKer/ntdLuckyBlock/api/events/CustomItemAddedEvent/do Lme/DenBeKKer/ntdLuckyBlock/customitem/BekkerItemStack;)
        at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
        at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?]
        at net.neoforged.art.internal.AsyncHelper.invokeAll(AsyncHelper.java:52) ~[AutoRenamingTool-2.0.3.jar:?]
        at net.neoforged.art.internal.AsyncHelper.consumeAll(AsyncHelper.java:36) ~[AutoRenamingTool-2.0.3.jar:?]
        at net.neoforged.art.internal.RenamerImpl.run(RenamerImpl.java:177) ~[paper-1.20.6.jar:?]
        at net.neoforged.art.internal.RenamerImpl.run(RenamerImpl.java:95) ~[paper-1.20.6.jar:?]
        at io.papermc.paper.pluginremap.PluginRemapper.lambda$remap$7(PluginRemapper.java:355) ~[paper-1.20.6.jar:git-Paper-49]
        at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
        ... 4 more
Caused by: java.lang.IllegalStateException: Duplicate key do (attempted merging values private static final me/DenBeKKer/ntdLuckyBlock/api/events/CustomItemAddedEvent/do Lorg/bukkit/event/HandlerList; and private final me/DenBeKKer/ntdLuckyBlock/api/events/CustomItemAddedEvent/do Lme/DenBeKKer/ntdLuckyBlock/customitem/BekkerItemStack;)
        at java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:135) ~[?:?]
        at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:182) ~[?:?]
        at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) ~[?:?]
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:212) ~[?:?]
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1709) ~[?:?]
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:556) ~[?:?]
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:546) ~[?:?]
        at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265) ~[?:?]
        at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:702) ~[?:?]
        at net.neoforged.art.internal.ClassProviderImpl$ClassInfo.<init>(ClassProviderImpl.java:122) ~[AutoRenamingTool-2.0.3.jar:?]
        at net.neoforged.art.internal.ClassProviderBuilderImpl.lambda$addClass$1(ClassProviderBuilderImpl.java:64) ~[AutoRenamingTool-2.0.3.jar:?]
        at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1710) ~[?:?]
        at net.neoforged.art.internal.ClassProviderBuilderImpl.addClass(ClassProviderBuilderImpl.java:64) ~[AutoRenamingTool-2.0.3.jar:?]
        at net.neoforged.art.internal.RenamerImpl.lambda$run$2(RenamerImpl.java:178) ~[paper-1.20.6.jar:?]
        at net.neoforged.art.internal.AsyncHelper.lambda$null$0(AsyncHelper.java:33) ~[AutoRenamingTool-2.0.3.jar:?]
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
        ... 3 more

Blocking operation on load/enable

Spigot or Paper 1.18.1
ntdLuckyBlock 2.5.6

On server start-up

[16:11:38] [Server thread/WARN]: [LagMonitor] Plugin ntdLuckyBlock is performing a blocking I/O operation (Socket: https://api.spigotmc.org/legacy/update.php?resource=94872) on the main thread. This could affect the server performance, because the thread pauses until it gets the response. Such operations should be performed asynchronous from the main thread. Besides gameplay performance it could also improve startup time. Keep in mind to keep the code thread-safe. Report it to the plugin author
[16:11:38] [Server thread/WARN]: [LagMonitor] The following exception is not an error. It's a hint for the plugin developers to find the source. LagMonitor doesn't prevent this action. It just warns you about it.
java.lang.IllegalAccessException: null
        at com.github.games647.lagmonitor.threading.BlockingActionManager.logCurrentStack(BlockingActionManager.java:65) ~[?:?]
        at com.github.games647.lagmonitor.threading.BlockingActionManager.checkBlockingAction(BlockingActionManager.java:51) ~[?:?]
        at com.github.games647.lagmonitor.listener.BlockingConnectionSelector.select(BlockingConnectionSelector.java:30) ~[?:?]
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1232) ~[?:?]
        at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1118) ~[?:?]
        at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1116) ~[?:?]
        at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
        at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:962) ~[?:?]
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1115) ~[?:?]
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:175) ~[?:?]
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665) ~[?:?]
        at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1581) ~[?:?]
        at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1579) ~[?:?]
        at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
        at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:962) ~[?:?]
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1578) ~[?:?]
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224) ~[?:?]
        at me.DenBeKKer.ntdLuckyBlock.util.SpigotUpdater.checkForUpdates(SpigotUpdater.java:66) ~[?:?]
        at me.DenBeKKer.ntdLuckyBlock.util.SpigotUpdater.checkForUpdatesFixed(SpigotUpdater.java:59) ~[?:?]
        at me.DenBeKKer.ntdLuckyBlock.util.SpigotUpdater.check$announce(SpigotUpdater.java:95) ~[?:?]
        at me.DenBeKKer.ntdLuckyBlock.LBMain.do(LBMain.java:622) ~[?:?]
        at me.DenBeKKer.ntdLuckyBlock.LBMain.for(LBMain.java:620) ~[?:?]
        at me.DenBeKKer.ntdLuckyBlock.LBMain.int(LBMain.java:260) ~[?:?]
        at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:82) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3392-Spigot-54b4afa-aeaeb35]
        at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3392-Spigot-54b4afa-aeaeb35]
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1255) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3392-Spigot-54b4afa-aeaeb35]
        at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:428) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3392-Spigot-54b4afa-aeaeb35]
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1206) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3392-Spigot-54b4afa-aeaeb35]
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1034) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3392-Spigot-54b4afa-aeaeb35]
        at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) ~[spigot-1.18.1-R0.1-SNAPSHOT.jar:3392-Spigot-54b4afa-aeaeb35]
        at java.lang.Thread.run(Thread.java:833) [?:?]

1.19.3 incompatibility

Paper 1.19.3-310
ntdLuckyBlock 2.7.8

On server start-up, and every 30 seconds thereafter

[10:12:03 WARN]: java.lang.NoSuchMethodException: net.minecraft.world.item.ItemStack.getTag()
[10:12:03 WARN]:        at java.base/java.lang.Class.getMethod(Class.java:2277)
[10:12:03 WARN]:        at ntdLuckyBlock-2.7.8.jar//me.DenBeKKer.ntdLuckyBlock.d.e.do(ItemTagLegacy.java:268)
[10:12:03 WARN]:        at ntdLuckyBlock-2.7.8.jar//me.DenBeKKer.ntdLuckyBlock.customitem.CustomItemFactory.compare(CustomItemFactory.java:79)
[10:12:03 WARN]:        at ntdLuckyBlock-2.7.8.jar//me.DenBeKKer.ntdLuckyBlock.customitem.Identifier.compare(Identifier.java:85)
[10:12:03 WARN]:        at ntdLuckyBlock-2.7.8.jar//me.DenBeKKer.ntdLuckyBlock.customitem.luckybow.BowListener.despawn(BowListener.java:44)
[10:12:03 WARN]:        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor857.execute(Unknown Source)
[10:12:03 WARN]:        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77)
[10:12:03 WARN]:        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)
[10:12:03 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[10:12:03 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:672)
[10:12:03 WARN]:        at org.bukkit.craftbukkit.v1_19_R2.event.CraftEventFactory.callItemDespawnEvent(CraftEventFactory.java:778)
[10:12:03 WARN]:        at net.minecraft.world.entity.item.EntityItem.inactiveTick(EntityItem.java:220)
[10:12:03 WARN]:        at net.minecraft.server.level.WorldServer.a(WorldServer.java:1215)
[10:12:03 WARN]:        at net.minecraft.world.level.World.a(World.java:918)
[10:12:03 WARN]:        at net.minecraft.server.level.WorldServer.lambda$tick$6(WorldServer.java:733)
[10:12:03 WARN]:        at net.minecraft.world.level.entity.EntityTickList.a(EntityTickList.java:42)
[10:12:03 WARN]:        at net.minecraft.server.level.WorldServer.a(WorldServer.java:713)
[10:12:03 WARN]:        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1535)
[10:12:03 WARN]:        at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:440)
[10:12:03 WARN]:        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1397)
[10:12:03 WARN]:        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1173)
[10:12:03 WARN]:        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316)
[10:12:03 WARN]:        at java.base/java.lang.Thread.run(Thread.java:1589)

Similar errors on Spigot 1.19.3-3619.

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.