Plugin Request Unmodifiable, Previewable Chests

Discussion in 'Plugin Help/Development/Requests' started by CorruptedHelix, Jun 4, 2015.

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


    Plugin category: General

    Suggested name: ChestPreview

    What I want: I'm looking to have a plugin made that allows users to left click a chest and view it's contents, while having the contents inside not be movable. There are a few key points that need to be included in the plugin;

    - There needs to be a command to toggle the protection on the chest on and off. Preferably, this command should also have an optional field to rename the container (with support for color codes) so you can make a chest have different text in the top left of the GUI. Something like /chestpreview (or /chp) add (name) and /chestpreview remove where (name) is an optional field. The protection would be applied to the chest being looked at, and the command would give an error if used on a non-chest block. For completeness' sake, it should ideally also affect double chests and trap chests.

    - When the chest is protected in this manner, it shouldn't be able to be destroyed, even by OPs, to prevent accidents. There ideally shouldn't be an override permission for this, but that's up to the developer. The only way to destroy a protected chest should be to unprotect it and then destroy it.

    - This plugin is ideally going to be used in only WorldGuard-protected zones, which already prevents looking into chests with right-click. That means that there's not really a need to add code to prevent the chest from being able to be opened with right clicking.

    - There should be an override permission to make it so that people can modify the chest's contents while protected, including adding items, removing them, and moving them around. This permission, obviously, shouldn't be given to anyone but the OP by default.

    The usage scenario for this plugin will be previewing rewards from a reward chest. Right clicking the chest with a key will unlock the reward, which is why it's important that left click is used to preview the contents.

    This plugin will be used on a server running the 1.8.6 version of Spigot running Java 8, using PermissionsEx as the permissions system. This should ideally be the circumstances in which the plugin is tested in, to ensure compatibility.

    Ideas for commands: /chestpreview (or /chp) add (name) and /chestpreview remove as suggested above

    Ideas for permissions: chestpreview.protect (allow access to protect command), chestpreview.unprotect (allow access to unprotect command), chestpreview.bypass (allow changing chest contents), chestpreview.* (allow all)

    When I'd like it by: Sometime this week would be great.
  2. Offline


  3. Offline


Thread Status:
Not open for further replies.

Share This Page