No soulbound items in containers

Discussion in 'Archived: Plugin Requests' started by jorrik98, Nov 3, 2014.

Thread Status:
Not open for further replies.
  1. Offline


    Plugin category: Inventory

    Suggested name: AntiSoulBoundChest

    What I want: I'd like to see a plugin, where you can not put items with the lore ' ChatColor.GOLD + "Soulbound" ' in any kind of container, unless you have some kind of permission.

    I've tried to do this myself, but unfortunately i've come to a bug where you can still hotkey the item in your chest, and I haven't found a way to fix this. You can do this any way you want, the main goal is to have no Soulbound items in any kind of container, ever.

    Just cancelling inventory click event doesn't stop the hotkeying.

    • Another way to do is is remove all items with lore Soulbound from the enderchest when it's opened, but no one seems to know how that would be done.
    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: AntiSoulboundChest.bypass

    When I'd like it by: As soon as possible, really. I've needed this for a long time.
  2. Offline


    - None
    - antisoulboundchest.bypass (Lets user move soulbound in inventory)
    Extra notes:
    I didn't test this one beyond enabling it. Just tahg be if you have any problems.
  3. Offline


    acer5999 I just tried this plugin, and it doesn't seem to do anything, and no I wasn't OP.
    Also i decompiled it and saw that the code is the same as the code I had, but it didnt stop people from hotkeying Soulbound items in their chests.
  4. Offline


    05.11 19:44:20 [Server] INFO ... 13 more
    05.11 19:44:20 [Server] INFO at$1.execute( ~[spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_13]
    05.11 19:44:20 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_13]
    05.11 19:44:20 [Server] INFO at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source) ~[?:?]
    05.11 19:44:20 [Server] INFO at ca.acer.anti.Soulbound.invInteract( ~[?:?]
    05.11 19:44:20 [Server] INFO Caused by: java.lang.NullPointerException
    05.11 19:44:20 [Server] INFO at [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.u( [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.DedicatedServer.v( [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.v( [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.ServerConnection.c( [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.NetworkManager.a( [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.handle( [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.a( [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerConnection.a( [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent( [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent( [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent( ~[spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at$1.execute( ~[spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO org.bukkit.event.EventException
    05.11 19:44:20 [Server] ERROR Could not pass event InventoryClickEvent to AntiSoulBound v1.1
    I get this error when clicking on an item with the soulbound lore, in a chset. Keep in mind the error is upside down, due to copy from multicraft.
  5. Offline


    Yeah, it's throwing an NPE on getDisplayName(), No idea why, sorry.
  6. Offline


    You probably forgot the null Checks...
    if (item.hasItemMeta())
    if (item.getItemMeta().hasDisplayName())
  7. Offline


    Anyhow it probably wouldn't have stopped the hotkeying, as we allready tried cancelling InventoryClickEvent

    Is it possible to do this plugin on another way, like just checking if a enderchest contains something with lore Soulbound, and if it does deleting the item?

  8. Online

    timtower Administrator Administrator Moderator

  9. Offline


    Would you be able and willing to make that plugin?
    If not, thanks anyway
  10. Online

    timtower Administrator Administrator Moderator

    Not something in my skill set so no.
  11. Offline


    Is there anyone that could be able to do this for me? I still need it, Thanks.

  12. Offline


  13. Offline


    It works, but you can still hotkey the item into your enderchest.

    For example; I have sugar in slot one, i'd go in the enderchest and hover over a slot in the enderchest, After that I would press the hotkey 1, and the item would go in the chest. However you can't take it out.

    But people will be asking my to remove the item from their enderchest, which i don't have time for.

  14. Offline


    Bump, I really need this
  15. Offline


    Bunping once again, still need this

  16. Offline


    Bump ....

    Is there actually no one that can do this?
  17. jorrik98 I don't think we can stop hot keying (May be wrong)
  18. Offline


    bwfcwalshy Well there's another way to do it, remove the items with lore Soulbound when a enderchest is opened, but no one here seems to know how to do that
  19. Offline


    Another bump, anyone that can do this?
    anyone ......
  20. Offline


    Bump .... I'm desperate for this plugin :(
Thread Status:
Not open for further replies.

Share This Page