[INACTIVE][MECH] Cabinet v0.3 - Get rid of arbitrary chest restrictions [556]

Discussion in 'Inactive/Unsupported Plugins' started by mjmr89, Mar 18, 2011.

  1. Offline

    mjmr89

    Cabinet
    Version 0.3

    Download and Source
    (Source isn't completely up to date; the network I'm on ATM won't allow me to push to github)

    Features:
    • Open any chest, any time!
    • Stack chests on top of each other (while still being able to use them!)
    It's pretty simple :) Solid blocks on top of chests (including chests on top of chests) no longer restrict you from opening the chests underneath. This works with both large and small chests and as far as I can tell, it opens chests in the same way the game does (mainly in regards to large chests, which chest is "top" in the inventory screen).

    Many thanks to Edward Hand, he gave be the code that actually opens the inventory screen.

    To-Do:
    • Make it play nicely with WorldGuard. At the moment, the chest restriction from WorldGuard does not apply to covered chests. Not sure how to make it play nicely with WorldGuard ATM.
    • Add a feature that allows placement of a chest block next to a double chest.
     
    Digi likes this.
  2. Offline

    Kryppuk

    sorry, but do you have any tutorial how to install sources or could you please upload it as jar?

    Sounds nice
     
  3. Offline

    mjmr89

    Go to the source page there, click the downloads button
     
  4. Offline

    Plague

    Nice one!
     
  5. Offline

    AnrDaemon

    O.O I WANT IT!
     
  6. Offline

    Kryppuk

    TY
    Did not see the button before ;)
     
  7. Offline

    Juze

    Do want, after it works in harmony with WorldGuard.
     
  8. Offline

    mjmr89

    Yeah, I really don't know whats going on with that. For some reason, the onBlockRightClick event doesn't have a cancelled status so I can't check if it's been cancelled, so then that means WorldGuard can't (and doesn't) cancel that event.
     
  9. Offline

    leslieliang

    Sweet. My request has been fulfilled! Can't wait until it works with WorldGuard. Thanks!
     
  10. Offline

    mjmr89

    I talked to sk89q about checking with WorldGuard if you can open a chest in an area, and he said there will be a way in WorldGuard 4.0 (official). Sorry, we're gonna have to wait ;-)
     
  11. Offline

    subarct1c

    Is this compatible with LWC?
     
  12. Offline

    mjmr89

    Good question. I don't think so, it's probably the same sort of problem with WorldGuard, there is no way to cancel the event (no idea why that is). I'm not quite sure how I could integrate LWC at the moment.
     
  13. Offline

    leslieliang

    I just tried testing this with LWC. As long as there is 1 air block above the chest, the protections will work. But if there is something immediately above the chest, the protections do not work.
     
  14. Offline

    Kartus

    @mrmr89 need update, #617, i got error on startup:
    Code:
    2011-04-02 04:55:50 [SEVERE] BLOCK_RIGHTCLICKED loading Cabinet v0.3 (Is it up to date?)
    java.lang.NoSuchFieldError: BLOCK_RIGHTCLICKED
        at com.mjmr89.Cabinet.Cabinet.onEnable(Cabinet.java:51)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:514)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  15. Offline

    bLazem

    Keen to see this updated, just started to use before the 1.4 update... got some messy chest situations on our server at the mo....
     
  16. Offline

    Kartus

    mjmr89 was last seen: Mar 29, 2011 :(
     
  17. Offline

    Elememental

    I really need this plugin updated for my PvP server :) thanks
     
  18. Offline

    McSpazzy

  19. Offline

    Kartus

    Thank you very much. It's working. I got with #670 following errors in console, i think each time i click on a chest:
    Code:
    2011-04-10 02:22:48 [SEVERE] Could not pass event PLAYER_INTERACT to Cabinet
    java.lang.NullPointerException
        at com.mjmr89.Cabinet.CabinetBlockListener.onPlayerInteract(CabinetBlockListener.java:29)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:252)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:133)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:663)
        at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  20. Offline

    McSpazzy

  21. Offline

    Kartus

  22. Offline

    McSpazzy

    @Kartus ...odd. Might I'll try a recompile. I don't seem to get the errors. Try this one.

    If all else fails go here and download it.
     
  23. That one works it seems, no errors and I can open chests with stuff on it, thanks.

    I also got the other errors before, they occured when right clicking anything.
     
  24. Offline

    McSpazzy

    Yeh, I know what caused it. Fixed now =D
     
  25. Offline

    Kartus

    Thanks. Now it works.
     
  26. Offline

    7x9000

    hey, uh... i wanna use this but... i cant get it to work, i dont have world gaurd, help plz?

    i posted that but...
    NEVER MIND!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  27. Anyone noticed if you place a slab over a chest and LEFTclick it with anything, even axe, it opens it ? xD
     
  28. Offline

    Kartus

    @mjmr89 When this plugin will be updated from you? or is it inactive? i like to stack chests.
     
  29. Offline

    bLazem

    Yeah what a waste its so good, makes store rooms look awesome, my users are hounding me about this!

    CB 733
     
  30. This version seems to work fine on #733:
    The only bug is that you leftclick a chest that is under something else, it will open.
     

Share This Page