Spigot Lootcrates! 2.1.1

Desteria inspired crates!

  1. Hello, i get this Huge error on Enabling and trying to load the plugin. do you know whats going on?

    [23:38:03 INFO]: [LootCrates] Enabling LootCrates v2.0.2
    [23:38:03 INFO]: [LootCrates] LootCrates is up-to-date!
    [23:38:03 ERROR]: Error occurred while enabling LootCrates v2.0.2 (Is it up to date?)
    java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_14_R1/inventory/CraftItemStack
    at com.crazicrafter1.lootcrates.Main.onEnable(Main.java:69) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:265) ~[patched_1.13.2.jar:git-Paper-651]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:334) ~[patched_1.13.2.jar:git-Paper-651]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:412) ~[patched_1.13.2.jar:git-Paper-651]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugin(CraftServer.java:443) ~[patched_1.13.2.jar:git-Paper-651]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugins(CraftServer.java:357) ~[patched_1.13.2.jar:git-Paper-651]
    at net.minecraft.server.v1_13_R2.MinecraftServer.l(MinecraftServer.java:608) ~[patched_1.13.2.jar:git-Paper-651]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:570) ~[patched_1.13.2.jar:git-Paper-651]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:431) ~[patched_1.13.2.jar:git-Paper-651]
    at net.minecraft.server.v1_13_R2.DedicatedServer.init(DedicatedServer.java:316) ~[patched_1.13.2.jar:git-Paper-651]
    at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:787) ~[patched_1.13.2.jar:git-Paper-651]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
    Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.v1_14_R1.inventory.CraftItemStack
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) ~[patched_1.13.2.jar:git-Paper-651]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[patched_1.13.2.jar:git-Paper-651]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_212]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_212]
    ... 12 more
    [23:38:03 INFO]: [LootCrates] Disabling LootCrates v2.0.2
  2. "java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_14_R1/inventory/CraftItemStack"
    "... patched_1.13.2..."
    You are using 1.13.2, while the plugin is only compatible with 1.14+.

    I'll try to update over the weekend to add a 1.13.2 compatible version. If you really want it before then, you can try using an older version that doesn't use item-nbt/NMS to identify crates (I however don't recommend).

  3. I can wait a Few days

    But thanks
  4. I havn't tested it at all, but should work for 1.13.2
  5. Could you add an option to disable the QualityArmory so it isn't failed to be found or so it can be bypassed. It does load if you remove the preset items for it.

    Also getting a tab complete error. If you attempt to type the name of the crate it will give an error for every letter in the name. So like common it gives one for , c, then o, then m, then m, etc..
  6. Hello,

    I've seen that you added qa support and i'm glad you did But is it possible to place chests around the world and auto fill them? with your plugin?

    Are ruins removed or do i need the expansion in order to get that to work?

    It would be awesome.
  7. "place chests around the world", like naturally generated chests not related to this plugin (like chests generated by other plugins or by Minecraft itself)? And then place a Crate item in the chest?

    The feature for ruin spawned crates is not longer present in LootCrates as it has been moved to the expansion/addon.

    The addon has not been updated to work with several versions of Lootcrates, so there might be issues with that.
  8. is in Chest relatedto this plugin that you place ad then the plugin Takes it location and refils it 5 mins after it has been looted?

    A i would like to have ruins in mij mini game Beqause its Awesome af XD so ill try the addon

    EDIT: Extension Just gives errors
    #50 PanGeo_, Dec 4, 2019
    Last edited: Dec 4, 2019
  9. This plugin does not have a the feature for a placeable chest which can be refilled after a duration, and I am not really into keeping the addon updated. However, if you have experience with Java, feel free to mess around with the source. https://github.com/PeriodicSeizures/LootcratesExtended
  10. As far as my friend can see its the main plugin causing the error.



    the error is on the main class
    something is wrong with onEnable function
    its the main plugin not the extended
    i looked at the source for the extended and the line where the error is empty
    looked at the error you sent and its empty... it may be different by now (The error that i posted a but up in this page)
    #53 PanGeo_, Dec 14, 2019
    Last edited: Dec 14, 2019
  11. So, your friend is using the extended, and lootcrates had errors while hooking? I mean, of course it will have errors because it was made for an earlier version of lootcrates, and hasn't been updated since. I can update the addon/extension today and see what happens.
    Does your friend still have the log with the error? Thanks!

  12. This is the only info or error he can find that has anything to do with it.

    My Friend:
    the error is on onEnable line 69, this is what you posted

    and there is another tabComplete line 93
  13. Hey, my Discord is crazicrafter1#5153
    I don't know the issue without a stacktrace of what exactly is the issue, because the line 69 of the onEnable() shouldnt cause an issue,
    We should be able to sort it out there.
  14. Good afternoon. Just yesterday install the Lootcrates plugin! and even without using it, this error appears on the console:

    Code (Text):
    > [14:18:32] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to LootCrates v2.1.0
    org.bukkit.event.EventException: null
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[server.jar:git-Spigot-56f8471-56118c6]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[server.jar:git-Spigot-56f8471-56118c6]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529) ~[server.jar:git-Spigot-56f8471-56118c6]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514) ~[server.jar:git-Spigot-56f8471-56118c6]
    at org.bukkit.craftbukkit.v1_14_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:437) ~[server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.PlayerInteractManager.a(PlayerInteractManager.java:431) ~[server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1238) ~[server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:27) ~[server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:909) [server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:902) [server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127) [server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:886) [server.jar:git-Spigot-56f8471-56118c6]
    at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:819) [server.jar:git-Spigot-56f8471-56118c6]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
    Caused by: java.lang.NullPointerException
    at com.crazicrafter1.lootcrates.config.Crate.matchCrate(Crate.java:115) ~[?:?]
    at com.crazicrafter1.lootcrates.listeners.ListenerOnPlayerInteract.onPlayerInteract(ListenerOnPlayerInteract.java:37) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_212]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_212]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_212]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_212]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[server.jar:git-Spigot-56f8471-56118c6]
    ... 19 more
    Spigot version 1.14.4
  15. with this error that spams the console the whole server gets laggy ^

  16. Ok, from what I'm seeing from the log, the error was caused by a player right or left clicking, but I'll have to see if my code has changed in that area since last working on it, since I never got that error the last time I tested it. I'll work on this tomorrow.
    • Like Like x 1
  17. its when a player right clicks a chest.