Closed TeQTabanca closed 2 years ago
Yep, this is related to 20, which is a really weird error that, sadly, it happens quite often for some reason I still cannot figure it out. From now on, I will try to upload the jar from my mac that seems to not give this error. Please add me on discord Divios#4093 and I will send a development build fixing this
I don't use Discord. It would be better if you upload the plugin here.
https://mega.nz/file/cnYRHaBI#I_YPrJn55NFT7ju2bSVWEiSVVUVrNEmPV8sofnvMfc4
Let me know if it works, it should fix this issue and the other issue you also reported. You should delete your .db file first with this update
[19:39:08 INFO]: [DailyShop] Enabling DailyShop v3.6.5 [19:39:08 ERROR]: [DailyShop] Disabled due to: No economy provider found [19:39:08 INFO]: [DailyShop] Disabling DailyShop v3.6.5
That makes sense, do you have an economy provider, like essentialsX?
I set up this server to try out the plugins. I use essentialX on my real server but not on this server. I can add it if you want.
The only dependencies of the plugin are Vault and an economy manger, so i you are not using other then yes, add essentialsX since it is needed
[19:53:33 INFO]: [DailyShop] Importing data from shops directory... [19:53:33 INFO]: [NBTAPI] Found Spigot: v1_12_R1! Trying to find NMS support [19:53:33 INFO]: [NBTAPI] NMS support 'MC1_12_R1' loaded! [19:53:33 INFO]: [NBTAPI] Found Gson: class com.google.gson.Gson [19:53:33 WARN]: [NBTAPI] The NBT-API at 'package io.github.divios.dependencies.nbt.nbtapi' seems to be a future Version, not yet released on Spigot/CurseForge! [19:53:33 WARN]: [NBTAPI] Current Version: '2.9.0-SNAPSHOT' Newest Version: 2.8.0' [19:53:34 WARN]: [DailyShop] There was a problem parsing the item with id PHANTOM_MEMBRANE [19:53:34 WARN]: [DailyShop] null [19:53:34 WARN]: [DailyShop] There was a problem parsing the item with id LEATHER_HORSE_ARMOR [19:53:34 WARN]: [DailyShop] null [19:53:34 WARN]: [DailyShop] There was a problem parsing the item with id TRIDENT [19:53:34 WARN]: [DailyShop] null [19:53:34 WARN]: [DailyShop] There was a problem parsing the item with id TURTLE_HELMET [19:53:34 WARN]: [DailyShop] null [19:53:35 INFO]: DailyShop > Renovated items of shop farm [19:53:35 INFO]: [DailyShop] Registered shop of name farm with 64 items [19:53:35 INFO]: DailyShop > Renovated items of shop wood [19:53:35 INFO]: DailyShop > Renovated items of shop wood [19:53:35 INFO]: DailyShop > Renovated items of shop wood [19:53:35 INFO]: [DailyShop] Registered shop of name wood with 30 items [19:53:35 INFO]: DailyShop > Renovated items of shop menu [19:53:35 INFO]: DailyShop > Renovated items of shop menu [19:53:35 INFO]: DailyShop > Renovated items of shop menu [19:53:35 INFO]: [DailyShop] Registered shop of name menu with 0 items [19:53:35 INFO]: [DailyShop] Data imported successfully in 1809 ms
Is it normal for the placeholder not to load?
It should be displayed correctly, does the plugin register placeholderApi expansion correctly?
And also does /papi parse me %dailyshop_time_blocks% display the time correctly?
I ran the command you wrote. It doesn't show correctly.
Does on load display that the expansion has been loaded correctly? Like this:
[19:53:30 INFO]: [DailyShop] Enabling DailyShop v3.6.5 [19:53:30 INFO]: [DailyShop] Hooked to Vault [19:53:30 INFO]: [DailyShop] Reading lang.yml... [19:53:30 INFO]: [DailyShop] Imported lang.yml in 82 ms [19:53:30 INFO]: [DailyShop] Reading settings.yml... [19:53:30 INFO]: [DailyShop] Imported settings.yml in 2 ms [19:53:30 INFO]: [DailyShop] Reading priceModifiers.yml... [19:53:30 INFO]: [DailyShop] Loaded 0 modifiers [19:53:30 INFO]: [DailyShop] Imported priceModifier.yml in 1 ms [19:53:30 INFO]: [DailyShop] Importing database data... [19:53:30 INFO]: [DailyShop] Imported database data in 13 ms
I will check your message tomorrow because I have to sleep
Okay, this one should fix it along with the NullPointerException when trying to buy/sell an item on versions below <= 1.12. It works for me and I think the problem was that, before registering the papi extension, I check if the plugin "PlaceholderApi" is activated. It seems that in lower versions is case sensitive and needs to be "PlaceholderaAPI"
I turned my server back on today.
I hope you understand. I use translation because my English is bad.
This Build should fix everything you listed here. The main problem is that I didn't take into account some things that work on > 1.12 but throw Exceptions on versions below.
I'm still not sure why placeholderApi is not working, I'm exactly following the indications in the wiki but it seems that works for me but is not working for some of you for some unknown reason D:
What if you add your placeholders to the ecloud of the placeholderApi?
/papi ecloud download DailyShop
I guess I could but it still doesn't resolve the main problem of why it is not registering the expansion. Could you check if placeholderApi is being loaded before or after dailyshop?
It should hook to placeholderApi a few seconds after load, check if the placeholder is working now
This Build should fix everything you listed here. The main problem is that I didn't take into account some things that work on > 1.12 but throw Exceptions on versions below.
I'm still not sure why placeholderApi is not working, I'm exactly following the indications in the wiki but it seems that works for me but is not working for some of you for some unknown reason D:
Finally, great. Thanks for reporting the bugs and being so patience. If you encounter more bugs, please do report them in here and I will fix them as soon as possible
The error messages is fine, the default items generated are from 1.17, so some of them are no compatible on 1.12, thats what the message is saying.
I will post a new update now that fix the economy placeholders.
Could you send me a video with the "it gives the error message, but it also gives the item and nothing is done with that item.", I'm not sure if I understand the error.
I also do not undestand what do you mean by normal name not appearing
Do You Understand the Mistakes in the Video?
I will check it tomorrow since I'm not at home
Hi! Sorry mate, I've been ill this past days and I couldn't do anything, I will start to fix this bugs right now
This one should solve the problem with the "no space" error. I cannot reproduce the other errors but I'm still looking into it
This one should solve the problem with the "no space" error.
I cannot reproduce the other errors but I'm still looking into it
Have other issues been resolved? I wondered.
Yes, pretty much everything have been fixed. The last update should be solid and the bugs I’ve been reported are minor bugs, nothing game breaking. I will fix those as soon as I finish my exams
Cause I was using the free version on the first errors.
Yeah... you should have said that earlier... well at least you contributed to fix errors so I'm glad, you can keep the versions I provided for you.
Also yes, I will try to update the free version to fix this errors
Hi I downloaded the dailyshop 3.7B free Version but if I add an item and it asks for permission to buy or sell. Even though I'm OP Minecraft Version 1.12.2
[18:22:19 ERROR]: [DailyShop] An error occurred executing an SQLite query: [?]Unable to parse Malformed Json!
[18:22:19 WARN]: io.github.divios.dependencies.nbt.nbtapi.NbtApiException: [?]Unable to parse Malformed Json!
[18:22:19 WARN]: at io.github.divios.dependencies.nbt.nbtapi.NBTContainer.<init>(NBTContainer.java:68)
[18:22:19 WARN]: at io.github.divios.lib.dLib.dItem.fromJson(dItem.java:712)
[18:22:19 WARN]: at io.github.divios.lib.dLib.dItem.fromBase64(dItem.java:708)
[18:22:19 WARN]: at io.github.divios.lib.storage.dataManager.lambda$getShop$3(dataManager.java:82)
[18:22:19 WARN]: at io.github.divios.dependencies.Core_lib.database.SQLiteConnector.connect(SQLiteConnector.java:56)
[18:22:19 WARN]: at io.github.divios.lib.storage.dataManager.lambda$getShop$4(dataManager.java:76)
[18:22:19 WARN]: at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
[18:22:19 WARN]: at java.base/java.lang.Thread.run(Thread.java:829)
[18:22:19 WARN]: Caused by: java.lang.NullPointerException
[18:22:19 WARN]: at io.github.divios.dependencies.nbt.nbtapi.utils.nmsmappings.ReflectionMethod.run(ReflectionMethod.java:180)
[18:22:19 WARN]: at io.github.divios.dependencies.nbt.nbtapi.NBTContainer.<init>(NBTContainer.java:66)
[18:22:19 WARN]: ... 7 more
[18:22:19 WARN]: [NBTAPI] The NBT-API located at 'package io.github.divios.dependencies.nbt.nbtapi' seems to be outdated!
[18:22:19 WARN]: [NBTAPI] Current Version: '2.9.2-SNAPSHOT' Newest Version: 2.9.2'
[18:22:19 WARN]: [NBTAPI] Please update the NBTAPI or the plugin that contains the api(nag the mod author when the newest release has an old version, not the NBTAPI dev)!
[18:25:14 ERROR]: Could not call method 'public static org.bukkit.inventory.ItemStack org.bukkit.inventory.ItemStack.deserialize(java.util.Map)' of class org.bukkit.inventory.ItemStack for deserialization
java.lang.NullPointerException: null
at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:94) ~[server.jar:git-Spigot-79a30d7-acbc348]
at org.bukkit.inventory.ItemStack.deserialize(ItemStack.java:536) ~[server.jar:git-Spigot-79a30d7-acbc348]
at jdk.internal.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserializeViaMethod(ConfigurationSerialization.java:79) ~[server.jar:git-Spigot-79a30d7-acbc348]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserialize(ConfigurationSerialization.java:119) ~[server.jar:git-Spigot-79a30d7-acbc348]
at org.bukkit.configuration.serialization.ConfigurationSerialization.deserializeObject(ConfigurationSerialization.java:197) ~[server.jar:git-Spigot-79a30d7-acbc348]
at org.bukkit.util.io.BukkitObjectInputStream.resolveObject(BukkitObjectInputStream.java:48) ~[server.jar:git-Spigot-79a30d7-acbc348]
at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1730) ~[?:?]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679) ~[?:?]
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:493) ~[?:?]
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:451) ~[?:?]
at io.github.divios.dependencies.Core_lib.inventory.inventoryUtils.deserialize(inventoryUtils.java:141) ~[?:?]
at io.github.divios.dependencies.Core_lib.inventory.inventoryUtils.deserialize(inventoryUtils.java:161) ~[?:?]
at io.github.divios.lib.dLib.dInventory._deserialize(dInventory.java:371) ~[?:?]
at io.github.divios.lib.dLib.dInventory.<init>(dInventory.java:63) ~[?:?]
at io.github.divios.lib.dLib.dInventory.fromBase64(dInventory.java:398) ~[?:?]
at io.github.divios.lib.dLib.synchronizedGui.singleGui.singleGui.fromJson(singleGui.java:15) ~[?:?]
at io.github.divios.lib.dLib.synchronizedGui.syncHashMenu.fromJson(syncHashMenu.java:22) ~[?:?]
at io.github.divios.lib.dLib.dShop.<init>(dShop.java:69) ~[?:?]
at io.github.divios.lib.storage.dataManager.lambda$getShops$1(dataManager.java:60) ~[?:?]
at io.github.divios.dependencies.Core_lib.database.SQLiteConnector.connect(SQLiteConnector.java:56) ~[?:?]
at io.github.divios.lib.storage.dataManager.lambda$getShops$2(dataManager.java:48) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
[18:25:14 ERROR]: [DailyShop] Unable to deserialize gui of shop blocks, setting it to default
[18:25:14 WARN]: java.lang.IllegalStateException: Unable to deserialize inventory.
[18:25:14 WARN]: at io.github.divios.dependencies.Core_lib.inventory.inventoryUtils.deserialize(inventoryUtils.java:149)
[18:25:14 WARN]: at io.github.divios.dependencies.Core_lib.inventory.inventoryUtils.deserialize(inventoryUtils.java:161)
[18:25:14 WARN]: at io.github.divios.lib.dLib.dInventory._deserialize(dInventory.java:371)
[18:25:14 WARN]: at io.github.divios.lib.dLib.dInventory.<init>(dInventory.java:63)
[18:25:14 WARN]: at io.github.divios.lib.dLib.dInventory.fromBase64(dInventory.java:398)
[18:25:14 WARN]: at io.github.divios.lib.dLib.synchronizedGui.singleGui.singleGui.fromJson(singleGui.java:15)
[18:25:14 WARN]: at io.github.divios.lib.dLib.synchronizedGui.syncHashMenu.fromJson(syncHashMenu.java:22)
[18:25:14 WARN]: at io.github.divios.lib.dLib.dShop.<init>(dShop.java:69)
[18:25:14 WARN]: at io.github.divios.lib.storage.dataManager.lambda$getShops$1(dataManager.java:60)
[18:25:14 WARN]: at io.github.divios.dependencies.Core_lib.database.SQLiteConnector.connect(SQLiteConnector.java:56)
[18:25:14 WARN]: at io.github.divios.lib.storage.dataManager.lambda$getShops$2(dataManager.java:48)
[18:25:14 WARN]: at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
[18:25:14 WARN]: at java.base/java.lang.Thread.run(Thread.java:829)
[18:25:14 WARN]: Caused by: java.io.IOException: Failed to deserialize object
[18:25:14 WARN]: at org.bukkit.util.io.BukkitObjectInputStream.newIOException(BukkitObjectInputStream.java:58)
[18:25:14 WARN]: at org.bukkit.util.io.BukkitObjectInputStream.resolveObject(BukkitObjectInputStream.java:50)
[18:25:14 WARN]: at java.base/java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1730)
[18:25:14 WARN]: at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679)
[18:25:14 WARN]: at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:493)
[18:25:14 WARN]: at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:451)
[18:25:14 WARN]: at io.github.divios.dependencies.Core_lib.inventory.inventoryUtils.deserialize(inventoryUtils.java:141)
[18:25:14 WARN]: ... 12 more
[18:25:14 WARN]: Caused by: java.lang.NullPointerException
[18:25:14 WARN]: at org.bukkit.util.io.BukkitObjectInputStream.resolveObject(BukkitObjectInputStream.java:48)
[18:25:14 WARN]: ... 17 more
Hi! I thought you had the premium version. The free and premium version are not backwards compatible, so you have to delete the .db file ( you will lose tour shops)
I already deleted the Dailyshop folder, but every time it is opened, this error appears.
There is a premium version, but if I set minprice:maxprice to an item, that item gets copied to many places, so I don't want to use the premium version.
Error creating item from scratch:
[10:14:31] [Server thread/ERROR]: Could not pass event InventoryClickEvent to DailyShop v3.6.0 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1] at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1893) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1] at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:33) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1] at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:10) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1] at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_312] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_312] at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312] Caused by: java.lang.NoClassDefFoundError: Could not initialize class io.github.divios.dailyShop.economies.vault at io.github.divios.lib.dLib.dItem.setItem(dItem.java:95) ~[?:?] at io.github.divios.lib.dLib.dItem.(dItem.java:51) ~[?:?]
at io.github.divios.lib.dLib.dItem.(dItem.java:47) ~[?:?]
at io.github.divios.dailyShop.guis.settings.shopGui.lambda$createGuis$7(shopGui.java:148) ~[?:?]
at io.github.divios.dailyShop.guis.settings.addDailyGuiIH.lambda$body$0(addDailyGuiIH.java:53) ~[?:?]
at io.github.divios.dependencies.Core_lib.inventory.ItemButton.onClick(ItemButton.java:65) ~[?:?]
at io.github.divios.dependencies.Core_lib.inventory.InventoryGUI.onClick(InventoryGUI.java:479) ~[?:?]
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_312]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_312]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
... 15 more
Existing item creation error:
[10:24:32] [Server thread/WARN]: [DailyShop] Task #44 for DailyShop v3.6.0 generated an exception java.lang.NoClassDefFoundError: Could not initialize class io.github.divios.dailyShop.economies.vault at io.github.divios.lib.dLib.dItem.setItem(dItem.java:95) ~[?:?] at io.github.divios.lib.dLib.dItem.(dItem.java:51) ~[?:?]
at io.github.divios.lib.dLib.dItem.(dItem.java:47) ~[?:?]
at io.github.divios.dailyShop.guis.settings.shopGui.lambda$createGuis$7(shopGui.java:148) ~[?:?]
at io.github.divios.dependencies.Core_lib.misc.ItemPrompt$ItemPromptBuilder.lambda$build$2(ItemPrompt.java:124) ~[?:?]
at io.github.divios.dependencies.Core_lib.misc.ItemPrompt.lambda$OnPlayerClick$2(ItemPrompt.java:73) ~[?:?]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76) ~[spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:361) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:739) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312]