Trash icon

Trash -----

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




Trash Plugin – Version 5.0
Major feature updates and logic improvements for better inventory trash management.

CHANGES:

✅Updated to Spigot 1.21.

Ensures compatibility with the latest version of Spigot.

Accurate trash item tracking on close.

  • The plugin now correctly counts only the actual items placed by the player into the trash GUI.
  • Buttons like "Clear" and "Close" are excluded from the count.

Configurable inventory layout.You can now set the slot positions of the "Clear" and "Close" buttons in the
config.yml .

Code (Text):
clear-button:
  enabled: true
  slot: 49
close-button:
  enabled: true
  slot: 50
Optional close message.
Sends a customizable message when a player closes the trash GUI.
Code (Text):
close-message-enabled: true
close-message: "&aYou trashed %amount% item(s)!"
Reload command now works from console.
You can run /trash reload from the console to apply config changes without restarting the server.

Optional open inventory message.
Sends a custom message to the player when they open the trash GUI.
Code (Text):
open-inventory-message-enabled: true
open-inventory: "&7Trash GUI opened. Place unwanted items here."
Separate permission for trashing all inventory.

  • /trash all requires trash.all permission.
  • Clears the player's entire inventory immediately.

Strip color codes for clean button matching.
Prevents issues when players use colored names for trashable items or buttons.


TO-DO:

  • Drag-and-drop filtering (e.g. prevent dropping valuable items accidentally).
  • Add sound effects or particles when clearing trash.
----------, May 2, 2025

Plugin is still compatible with the 1.16 update.

If there are any issues let me know.
----------, Aug 4, 2020

Version 5.0


CHANGES:
  • Enable whether or not you want the virtual trash can to send a message to the player opening the GUI. Choose your preference in the configuration file.
  • Thank you @LoneDev for the suggestion!

TO-DO:

  • Suggest some :)
----------, Jan 11, 2020

Version 4.0


CHANGES:
  • Allows for the /trash reload command to be run through console and not just by an in-game player. /trash and /trash all cannot be run by console. (Issues reported by @fightmaxime).

TO-DO:

  • Suggest some :)
----------, Jan 3, 2020

Version 3.0


CHANGES:
  • Plugin upgraded to support 1.15.... should still work fine with older versions.

TO-DO:
  • Suggest some :)
----------, Jan 1, 2020

Version 2.0


CHANGES:
  • Added a new /trash all command. This will clear the items in a players inventory. (permission: trash.all)

TO-DO:

  • Add the ability to trash other players items.

REMINDERS:

  • Have any suggestions? Message wmillerrules on spigot or reply to the plugins discussion thread.
  • If you have any issues, please report them on the plugin discussion page.
----------, Aug 1, 2017

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