Filled ChestPreview

Discussion in 'Plugin Requests' started by AlwaysAllstar, Aug 17, 2019.

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

    AlwaysAllstar

    Plugin category: Economy

    Minecraft version: 1.14

    Suggested name: ChestPreview

    What I want: A simple plugin where you place items in a chest, then look at the chest and do "/chestp add". Once you run the command, it'll prevent anyone from taking from the chest, moving the items in the chest, or breaking the chest. If you want to modify or break the chest, look at it again, run "/chestp del" command, and then it'll undo the chest preview so it is then a normal chest. (Anyone can preview the chest) And yes I apologize because I know some plugins like this exist but for whatever reason I've tried all I could find and all of them have some sort of problem.

    Ideas for commands: /chestp add, /chestp del

    Ideas for permissions: chestp.setup - Allows player to use the two commands to setup the chests

    When I'd like it by: August 30 but anytime is greatly appreciated :)
     
    Last edited: Aug 25, 2019
  2. Offline

    AlwaysAllstar

  3. Offline

    CraftCreeper6

    Last edited: Aug 25, 2019
  4. Offline

    AlwaysAllstar

    The contents can't be edited by anyone including the owner unless someone with permissions (chestp.setup) runs /chestp del on the chest, at which point it turns to a normal chest and anyone can edit it. Anyone with permission can do /chestp del on a chest even if they didn't do /chestp add to that specific chest as well.

    Hey! The plugin is exactly what I need but I found a pretty big bug. When in creative you can't take chests, trapped chests, or ender chests because when you take it to put it in your hotbar it gives the message '[ChestPreview] You cannot move items in that chest as it is a preview chest'. The only way around this I found is to give myself a chest through the /give command. Once I do this it functions perfectly. Its just taking the 3 types of chests from the creative inventory that doesn't work.

    EDIT: I found oddly the plugin works perfectly but once you open a preview chest the bug begins. Also, its not just chests, its every block in creative because its acting as if your inventory was a chest preview. It won't let you remove items from your inventory either, the only way is to do /ci or to drop them on the ground using Q.
     
    Last edited: Aug 25, 2019
    CraftCreeper6 likes this.
  5. Offline

    CraftCreeper6

    Hm let me look into that.
    Think I fixed the bug. Let me know if there's any more, I also added support for trapped chests. Forgot to do that originally.

    Here.
     
    Last edited: Aug 25, 2019
  6. Offline

    AlwaysAllstar

    Everything seems to be working perfectly now. Thank you so much! :D
     
    CraftCreeper6 likes this.
  7. Offline

    CraftCreeper6

    @AlwaysAllstar
    If you find any bugs / want any additions, just let me know.
     
    AlwaysAllstar likes this.
Thread Status:
Not open for further replies.

Share This Page