smallo
Turn a Large Wood Box into a trashcan to permanently delete items

Supported Games
works with

Trashcan is a plugin that allows you to turn a 'Large Wooden Box' into a trashcan that disposes anything you've put in the box permanetely when closing the box. You use the command when a 'Large Wooden Box' is the selected item on your hotbar. A custom UI is shown when opening a trashcan to clearly show it is a trashcan.

Permissions

  • trashcan.use : Allows a user to use the /trash command to turn a 'Large Wooden Box' into a trashcan.

Commands

  • trash : Turns the currently held 'Large Wooden Box' into a trashcan.

Configuration

{
  "SkinID": 1595211850,
  "Trashcan Storage Slots": 12,
  "Enable Effects": true,
  "Lock Box While In Use (This prevents someone else from deleting your items)": true,
  "Disable During Raid Block (Requires No Escape plugin)": false
}
  • SkinID is the skin the 'Large Wooden Box' turns into when using the /trash command (default 1595211850)
  • Trashcan Storage Slots is the amount of slots the trashcan will have (default 12)
  • Enable Effects is whether or not to have the effect/sounds when closing the box and trash is being destroyed (default true)
  • Lock Box While In Use is whether or not you want the trashcan to be locked when in use, this prevents other players from opening it while you're using it (default true)
  • Disable During Raid Block is whether or not you want to block people from being able to trash things during raid block, this requires the No Escape plugin (default false)

Localization

{
  "TrashHeadText": "TRASHCAN",
  "TrashSubText": "<color=#FF4433>Warning:</color> When you close this menu, everything in the storage will be deleted!",
  "TrashNoBoxText": "<color=#FFFF00>Trash Can:</color> You do not have a Large Wooden Box in your hand.",
  "TrashNoItemText": "<color=#FFFF00>Trash Can:</color> You do not have anything in your hand.",
  "TrashCreatedText": "<color=#FFFF00>Trash Can:</color> You have turned your currently held Large Wooden Box into a trashcan.",
  "TrashAlreadyText": "<color=#FFFF00>Trash Can:</color> This Large Wooden Box is already a trashcan.",
  "RaidBlockedText": "<color=#FFFF00>Trash Can:</color> You are currently raid blocked, your items will not be deleted until you reuse the box after the raid is over."
}
  • TrashHeadText is the header of the custom UI when having a trashcan open
  • TrashSubText is the subtitle of the custom UI when having a trashcan open
  • TrashNoBoxText is the text that shows when you have the wrong item as your currently selected item
  • TrashNoItemText is the text that shows when you don't have a 'Large Wooden Box' as your currently selected item
  • TrashCreatedText is the text that shows when you successfully created a trashcan
  • TrashAlreadyText is the test that shows is the box you're trying to turn into a trashcan is already a trashcan
  • RaidBlockedText is the text that shows when you close the box during a raid and you have "Disable During Raid Block" enabled
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.