Spigot Anti-Drop » 1.7 - 1.17 • Item list GUI • Fully configurable 2.2.4

Force players to re-hit their drop key to actually drop specified/all items.

  1. Should hopefully be done by tonight. :)
     
  2. cool I'm waiting this ^^
     
  3. problem @PCPSells
    [22:52:11] [Server thread/ERROR]: Could not pass event InventoryCreativeEvent to AntiDrop v2.0.2
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.11.2.jar:git-Spigot-d4f98a3-cb61ac0]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.11.2.jar:git-Spigot-d4f98a3-cb61ac0]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.11.2.jar:git-Spigot-d4f98a3-cb61ac0]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.11.2.jar:git-Spigot-d4f98a3-cb61ac0]
    at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1988) [spigot-1.11.2.jar:git-Spigot-d4f98a3-cb61ac0]
    at net.minecraft.server.v1_11_R1.PacketPlayInSetCreativeSlot.a(SourceFile:23) [spigot-1.11.2.jar:git-Spigot-d4f98a3-cb61ac0]
    at net.minecraft.server.v1_11_R1.PacketPlayInSetCreativeSlot.a(SourceFile:9) [spigot-1.11.2.jar:git-Spigot-d4f98a3-cb61ac0]
    at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.11.2.jar:git-Spigot-d4f98a3-cb61ac0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_72]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_72]
    at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [spigot-1.11.2.jar:git-Spigot-d4f98a3-cb61ac0]
    at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:747) [spigot-1.11.2.jar:git-Spigot-d4f98a3-cb61ac0]
    at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot-1.11.2.jar:git-Spigot-d4f98a3-cb61ac0]
    at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot-1.11.2.jar:git-Spigot-d4f98a3-cb61ac0]
    at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot-1.11.2.jar:git-Spigot-d4f98a3-cb61ac0]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72]
    Caused by: java.lang.NullPointerException
    at me.PCPSells.MainAD.SettingsInvClick(MainAD.java:407) ~[Anti-Drop.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_72]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_72]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_72]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_72]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-1.11.2.jar:git-Spigot-d4f98a3-cb61ac0]
    ... 15 more
     
    • Winner Winner x 1
  4. It's a good plugin, well played.
     
    • Friendly Friendly x 1
  5. Oh come on.. I had no errors when I tested it... I'll look into it now xD
    Sorry <3
     
  6. Please fix it, thank you. :)
    AntiDrop version: 2.0.2
    Server version: git-Spigot-dcd1643-e60fc34 (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT)

    [12:44:32 ERROR]: Could not pass event InventoryClickEvent to AntiDrop v2.0.2
    org.bukkit.event.EventException: null
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1891) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:33) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:10) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_181]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_181]
    at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_181]
    Caused by: java.lang.NullPointerException
    at me.PCPSells.MainAD.SettingsInvClick(MainAD.java:407) ~[?:?]
    at sun.reflect.GeneratedMethodAccessor530.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
    ... 15 more
     
    • Winner Winner x 1
  7. Suggestion to add a permission for the "/antidrop" commands menu, atm only OPs can see the available commands
     
  8. Also when I tried using %item% instead of %item_drop% it shows as AIR in chat
    Code (YAML):
        # For "Drop" & "Anti-Drop" you can use either %item% or %item_name%
     
  9. Found an error in 1.13.2


    Code (Text):
    [09:48:26 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'antidrop' in plugin AntiDrop v2.0.3
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[patched_1.13.2.jar:git-Paper-476]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[patched_1.13.2.jar:git-Paper-476]
            at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchCommand(CraftServer.java:732) ~[patched_1.13.2.jar:git-Paper-476]
            at net.minecraft.server.v1_13_R2.PlayerConnection.handleCommand(PlayerConnection.java:1792) ~[patched_1.13.2.jar:git-Paper-476]
            at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1595) ~[patched_1.13.2.jar:git-Paper-476]
            at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[patched_1.13.2.jar:git-Paper-476]
            at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.13.2.jar:git-Paper-476]
            at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:12) ~[patched_1.13.2.jar:git-Paper-476]
            at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_192]
            at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_192]
            at net.minecraft.server.v1_13_R2.SystemUtils.a(SystemUtils.java:109) ~[patched_1.13.2.jar:git-Paper-476]
            at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1016) ~[patched_1.13.2.jar:git-Paper-476]
            at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:439) ~[patched_1.13.2.jar:git-Paper-476]
            at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:943) ~[patched_1.13.2.jar:git-Paper-476]
            at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:841) ~[patched_1.13.2.jar:git-Paper-476]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_192]
    Caused by: java.lang.IllegalArgumentException: No enum constant org.bukkit.Material.LEGACY_DIMAOND_HOE
            at java.lang.Enum.valueOf(Unknown Source) ~[?:1.8.0_192]
            at org.bukkit.Material.valueOf(Material.java:75) ~[patched_1.13.2.jar:git-Paper-476]
            at org.bukkit.craftbukkit.v1_13_R2.util.CraftLegacy.valueOf(CraftLegacy.java:221) ~[patched_1.13.2.jar:git-Paper-476]
            at me.PCPSells.MainAD.openAntiDropGUI(MainAD.java:391) ~[?:?]
            at me.PCPSells.MainAD.onCommand(MainAD.java:223) ~[?:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[patched_1.13.2.jar:git-Paper-476]
            ... 15 more
     
  10. Makes sense. It's not a legacy plugin. "LEGACY_DIAMOND_HOE"
     
  11. Will do.
     
  12. But I didn't enter a legacy name, I only entered DIAMOND_HOE
     
  13. Correct, but due to 1.13.2 code, they changed item names and what not. If you'd really like me to make a legacy version for you, I happily will.
    Please join my resource Discord if you wouldn't mind and we can further discuss it. :)
     
  14. Is there any point in making a legacy verison or can I just use the "LEGACY_DIAMOND_HOE" material name to get it to work?
    Or is what you're saying that a legacy version needs to be made in order for LEGACY items to work?
    I don't understand legacy names and all, none of my plugins use the LEGACY material names so I'm unsure what to do at this point as far as legacy items go
     
  15. Legacy is the new term that was given to the update for Minecraft. You'll see it around here on Spigot as well for "Legacy versions" of plugins. It's put like that because all previous versions of Minecraft, the code has been generally the same for items, sounds, etc. Small changes with sounds, but pretty much for a Legacy version of a plugin to work, a developer has to make many small changes for the plugin to function as it should. All it is, is a pain in the *** for developers.
     
  16. So does that mean I can't use DIAMOND_HOE atm until you update or can I use it by adding legacy_ before the material name? Bit confused still soz
     
  17. DIAMOND_HOE was the previous items name. Using that in 1.13.2 will register as nothing. If you put LEGACY_DIAMOND_HOE then 1.13.2 knows what you're trying to use but my plugin doesn't. Ultimately meaning this plugin is useless in legacy.