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

    jorrik98

    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

    acer5999

    Here
    Commands:
    - None
    Permissions:
    - 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

    jorrik98

    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

    jorrik98

    acer5999
    Code:
    05.11 19:44:20 [Server] INFO ... 13 more
    05.11 19:44:20 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:298) ~[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(Soulbound.java:20) ~[?:?]
    05.11 19:44:20 [Server] INFO Caused by: java.lang.NullPointerException
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:186) [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.handle(PacketPlayInWindowClick.java:65) [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.a(PacketPlayInWindowClick.java:15) [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:1477) [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:499) [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:514) [spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-1649]
    05.11 19:44:20 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[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

    acer5999

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

    mrCookieSlime

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

    jorrik98

    mrCookieSlime
    acer5999
    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?

    Bump
     
  8. Online

    timtower Administrator Administrator Moderator

  9. Offline

    jorrik98

    timtower
    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

    jorrik98

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

    Bump
     
  12. Offline

    EgyptianKing

  13. Offline

    jorrik98


    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.

    thanks
     
  14. Offline

    jorrik98

    Bump, I really need this
     
  15. Offline

    jorrik98

    Bunping once again, still need this

    Thanks
     
  16. Offline

    jorrik98

    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

    jorrik98

    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

    jorrik98

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

    jorrik98

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

Share This Page