Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Head NBT Skull Support for 1.20.2 #126

Open
James-P-Bennett opened this issue Oct 18, 2023 · 5 comments
Open

Head NBT Skull Support for 1.20.2 #126

James-P-Bennett opened this issue Oct 18, 2023 · 5 comments

Comments

@James-P-Bennett
Copy link

Hi, the plugin works for nearly every version of Spigot up to 1.20.2.

Here's the stacktrace of attempting to use custom skulls in menus.
[13:27:06 WARN]: java.lang.NullPointerException: Profile name must not be null
[13:27:06 WARN]: at java.base/java.util.Objects.requireNonNull(Objects.java:235)
[13:27:06 WARN]: at com.mojang.authlib.GameProfile.(GameProfile.java:31)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.item.ItemDataPartCustomSkull.transformSkull(ItemDataPartCustomSkull.java:28)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.item.ItemDataPartCustomSkull.transform(ItemDataPartCustomSkull.java:93)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.item.ItemDataPart.transformItem(ItemDataPart.java:213)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.item.ItemDataPart.transformItem(ItemDataPart.java:128)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.item.ItemDataPart.transformItem(ItemDataPart.java:106)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.item.ItemStackCreator.createItemStack(ItemStackCreator.java:96)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.item.ItemStackCreator.createItemStack(ItemStackCreator.java:57)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.BuyItemHandler.createBuyItem(BuyItemHandler.java:197)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.BuyItemHandler.loadItem(BuyItemHandler.java:47)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.config.BSConfigShop.loadItems(BSConfigShop.java:184)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.config.BSConfigShop.setup(BSConfigShop.java:96)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.config.BSConfigShop.(BSConfigShop.java:72)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.config.BSConfigShop.(BSConfigShop.java:42)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.config.BSConfigShop.(BSConfigShop.java:38)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.core.BSShops.loadShop(BSShops.java:79)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.core.BSShops.loadShops(BSShops.java:52)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.core.BSShops.(BSShops.java:30)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.ClassManager.setupDependentClasses(ClassManager.java:137)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.BossShop.reloadPlugin(BossShop.java:145)
[13:27:06 WARN]: at BossShopPro.jar//org.black_ixx.bossshop.managers.CommandManager.onCommand(CommandManager.java:32)
[13:27:06 WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[13:27:06 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
[13:27:06 WARN]: at org.bukkit.craftbukkit.v1_20_R2.CraftServer.dispatchCommand(CraftServer.java:1003)
[13:27:06 WARN]: at org.bukkit.craftbukkit.v1_20_R2.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64)
[13:27:06 WARN]: at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265)
[13:27:06 WARN]: at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:338)
[13:27:06 WARN]: at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:322)
[13:27:06 WARN]: at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2275)
[13:27:06 WARN]: at net.minecraft.server.network.PlayerConnection.lambda$handleChatCommand$20(PlayerConnection.java:2235)
[13:27:06 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.b(IAsyncTaskHandler.java:59)
[13:27:06 WARN]: at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
[13:27:06 WARN]: at net.minecraft.server.TickTask.run(TickTask.java:18)
[13:27:06 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:153)
[13:27:06 WARN]: at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:24)
[13:27:06 WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1351)
[13:27:06 WARN]: at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:193)
[13:27:06 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.x(IAsyncTaskHandler.java:126)
[13:27:06 WARN]: at net.minecraft.server.MinecraftServer.bg(MinecraftServer.java:1328)
[13:27:06 WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1321)
[13:27:06 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.c(IAsyncTaskHandler.java:136)
[13:27:06 WARN]: at net.minecraft.server.MinecraftServer.u_(MinecraftServer.java:1299)
[13:27:06 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1187)
[13:27:06 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320)
[13:27:06 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)

@MorkaZ
Copy link

MorkaZ commented Nov 17, 2023

Does not work for me as well.

@Androkai
Copy link

Sadly something with skulls seems to have broken in Paper 1.20.2. Getting the same error multiple times:

[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/ERROR]: [BossShopPro] Was not able to create BuyItem Back! Error at Stage 'MenuItem creation'. [Shop: Item_Kürbisse_und_Melonen_minecraft.melon]
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: java.lang.NullPointerException: Profile name must not be null
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at java.base/java.util.Objects.requireNonNull(Objects.java:235)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at com.mojang.authlib.GameProfile.<init>(GameProfile.java:31)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.item.ItemDataPartCustomSkull.transformSkull(ItemDataPartCustomSkull.java:28)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.item.ItemDataPartCustomSkull.transform(ItemDataPartCustomSkull.java:93)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.item.ItemDataPart.transformItem(ItemDataPart.java:213)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.item.ItemDataPart.transformItem(ItemDataPart.java:128)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.item.ItemDataPart.transformItem(ItemDataPart.java:106)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.item.ItemStackCreator.createItemStack(ItemStackCreator.java:96)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.item.ItemStackCreator.createItemStack(ItemStackCreator.java:57)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.BuyItemHandler.createBuyItem(BuyItemHandler.java:197)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.BuyItemHandler.loadItem(BuyItemHandler.java:47)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.config.BSConfigShop.loadItems(BSConfigShop.java:184)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.config.BSConfigShop.setup(BSConfigShop.java:96)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.config.BSConfigShop.<init>(BSConfigShop.java:72)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.config.BSConfigShop.<init>(BSConfigShop.java:42)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.config.BSConfigShop.<init>(BSConfigShop.java:38)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.core.BSShops.loadShop(BSShops.java:79)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.core.BSShops.loadShops(BSShops.java:52)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.core.BSShops.<init>(BSShops.java:30)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.managers.ClassManager.setupDependentClasses(ClassManager.java:137)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at BossShopPro-2.0.9.jar//org.black_ixx.bossshop.BossShop$1.run(BossShop.java:79)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftTask.run(CraftTask.java:101)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/WARN]: 	at java.base/java.lang.Thread.run(Thread.java:840)
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/ERROR]: [BossShopPro] Probably caused by Config Mistakes.
[18:51:55] [Craft Scheduler Thread - 4 - BossShopPro/ERROR]: [BossShopPro] For more help please send me a PM at Spigot.

It should be related to PaperMC/Paper#9843 and might get fixed on their side.

@Logende
Copy link
Collaborator

Logende commented Nov 22, 2023

Seems like the API was changed 😮

@James-P-Bennett @MorkaZ do you use paper too?

@MorkaZ
Copy link

MorkaZ commented Dec 6, 2023

Seems like the API was changed 😮

@James-P-Bennett @MorkaZ do you use paper too?

yes

@James-P-Bennett
Copy link
Author

https://github.com/James-P-Bennett/BossShopPro

Here's my fork with the corrected & compiled jar files. 1.20.2, some archaic features like epic spawners integration was removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants