Trash icon

Trash -----

Get rid of your unwanted items with a virtual Trash Can.



Trash.png

Overview:

Trash allows players to dispose of items using a customizable GUI. Players can open the trash interface with /trash, where they can place unwanted items or clear their entire inventory at once using optional buttons.

Now includes:
  • A reload command (/trash reload) to update configuration on the fly.
  • A trash-all command (/trash all) to clear the player's inventory instantly.
  • Optional permissions for using the GUI's clear and close buttons.
  • Console support for /trash reload (but not /trash or /trash all).
Features:
  • Fully configurable GUI size and title.
  • Optional clear and close buttons in the trash GUI.
  • Toggleable open and close messages.
  • Messages can be customized with color codes.
  • Optional permissions to restrict use of buttons.
  • Lightweight and doesn’t store player data.

Command Usage and Permissions:


Code (Text):
/trash
✅Opens the trash GUI where players can drop items to delete them.
Permission required: trash.use

Code (Text):
/trash all
✅Instantly deletes all items in the player’s inventory.
Permission required: trash.all

Code (Text):
/trash reload
Reloads the configuration without restarting the server.
Permission required: trash.reload
Can be used by console!

(Optional) Use of the clear button in the GUI.
Permission required: trash.button.clear

(Optional) Use of the close button in the GUI.
Permission required: trash.button.close


Configuration:

Code (Text):
# GUI Settings
gui-name: "&8Trash Bin"
gui-size: 54

# Message Settings
open-inventory-message-enabled: true
open-inventory: "&aYour trash bin is open."

close-message-enabled: true
close-message: "&eYou trashed &f%amount% &eitems."

not-player: "&cOnly players may use this command."
no-permission: "&cYou do not have permission to use this command."
reload-message-successful: "&aTrash config reloaded."
reload-no-permission: "&cYou do not have permission to reload the config."
trash-all: "&7Your inventory has been emptied."
trash-all-no-permission: "&cYou do not have permission to use /trash all."

# Clear Button
clear-button:
  enabled: true
  name: "&cClear Inventory"
  lore:
    - "&7Click to delete everything"
    - "&7in your inventory!"
  slot: 45
  permission: "trash.button.clear"

# Close Button
close-button:
  enabled: true
  name: "&aClose"
  lore:
    - "&7Click to close this menu."
  slot: 49
  permission: "trash.button.close"


Installation:

  1. Download the TRASH.jar file.
  2. Drop it in your server’s /plugins folder.
  3. Restart the server or use a plugin manager like PlugMan.
  4. Configure config.yml to your preferences.
  5. Done! Use /trash to test it out.

Feedback and Support:

If you have suggestions for new features or run into any issues, feel free to reach out. I’m always looking to improve the plugin. Also check out my other plugin, Welcome, for a fun way to reward players who greet newcomers!


Leave a Review!


Don't forget to leave a review down below! Message me with any issues before taking it into account in your review.
Resource Information
Author:
----------
Total Downloads: 11,933
First Release: Aug 1, 2017
Last Update: May 2, 2025
Category: ---------------
All-Time Rating:
3 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings