Trash [1.13x - 1.21x] icon

Trash [1.13x - 1.21x] -----

/trash to open a temporary inventory




Added
  • Added the missing Discord messages for trash status updates.
  • Added proper compatibility support for VaultUnlocked.
  • Added fallback support for classic Vault if VaultUnlocked is not available.
Improved
  • Improved economy hook handling by introducing a shared economy abstraction.
  • Improved provider detection to support both VaultUnlocked and Vault setups.
  • Improved reload behavior so economy hooks are re-initialized correctly after /trash reload.
  • Improved language/config maintenance for smoother updates on existing servers.
Fixed
  • Fixed missing message issues in /trash about caused by outdated key paths being used in code.
  • Fixed Discord webhook message lookups so the correct language keys are used.
  • Fixed economy errors when VaultUnlocked is installed.
  • Fixed incorrect fallback behavior when no compatible economy provider is available.
  • Fixed English locale issues where some Discord messages were not properly aligned with the expected keys.
----------, Mar 21, 2026

Added
  • Added automatic language file updating when new missing keys are detected.
  • Added the missing Discord messages:
    • about.discord.trash-disabled
    • about.discord.trash-disabled-description
  • Added compatibility with VaultUnlocked.
Improved
  • Improved configuration updating so missing keys can be merged into existing files more safely.
  • Improved language file handling to keep older message files up to date after updates.
Fixed
  • Fixed missing Discord localization entries related to trash disable notifications.
----------, Mar 21, 2026

Added:
  • Added Discord webhook support for trash status updates.
  • Added embed webhook messages for trash state changes.
  • Added multilingual webhook message support through MessageManager.
  • Added webhook configuration options for username, avatar, footer, and thumbnail.
config.yml:

Code (Text):
# ==========================================================
# Discord Webhook
# ==========================================================
discord-webhook:
  enabled: false
  url: ""
  username: "Trash"
  avatar-url: ""
  footer: "Trash Plugin"
  thumbnail-url: ""
messages_en.yml example:

Code (Text):
  discord:
   trash-enabled: "Trash activado"
   trash-enabled-description: "El trash ha sido activado por &e%1%&7."

   trash-disabled: "Trash desactivado"
   trash-disabled-description: "El trash ha sido desactivado por &e%1%&7."
----------, Mar 18, 2026

  • Missing language files are now created automatically.
  • The lang/ folder is now generated if needed.
  • Existing language files are preserved and are not overwritten.
  • Improved message loading for incomplete or fresh installations.
----------, Mar 14, 2026

  • Fixed an issue where players could not remove items from the trash after placing them inside.
  • Fixed deleted item counting so only items left in the trash on close are counted.
  • Added configurable deleted-items notification mode: chat, action bar, both, or disabled.
  • Updated all language files for consistency and placeholder fixes.
----------, Mar 14, 2026

Added
  • Added a new config option to globally enable or disable item filters.
  • Filters can now be turned off directly from config.yml with:
Code (Text):
filters:
   enabled: false
Fixed
  • Fixed the trash.filter.bypass permission being declared but not actually used in the code.
----------, Mar 9, 2026

Added:
  • Added multi-line messages support for /trash about command.
----------, Mar 5, 2026

Added:
  • New command /trash about.
  • Updated language files.
  • New default trash.about permission.
----------, Mar 5, 2026

New Features
Personal Item Filters (/trashfilter)
Players can now manage their own personal item blacklist directly in-game. Items added to the blacklist will be blocked when trying to trash them, giving players full control over what they can accidentally delete.

  • /trashfilter blacklist <material> — Add a material to your personal blacklist
  • /trashfilter whitelist <material> — Remove a material from your personal blacklist
  • /trashfilter list — View all materials currently in your blacklist
  • /trashfilter reload — Reload filter configuration (admin only)
Tab completion is supported for all material names.

Global Trash Toggle
Admins can now enable or disable the trash for all players server-wide without restarting or editing config files.

  • /trash enable — Enable the trash globally
  • /trash disable — Disable the trash globally
  • /trash toggle — Toggle between enabled/disabled
The state persists across server restarts automatically via config.yml.

Stats Persistence
Player statistics (items trashed, opens, rankings) are now saved to disk in stats.yml and survive server restarts. Stats auto-save every N minutes (configurable via stats.auto-save-minutes) and also save on plugin shutdown.

Bug Fixes
  • Fixed trash being blocked when enabled and open when disabled — The enable/disable logic in OpenTrashCommand was inverted, causing the opposite behaviour of what was intended.
  • Fixed /trash enable|disable|toggle crashing — setTrashEnabled() was called but never implemented, causing a runtime error on every toggle attempt.
  • Fixed /trashfilter list showing nothing — The %materials% placeholder was never replaced with the actual list of blacklisted materials.
  • Fixed stats not persisting — savePlayerStats() only logged a message but never wrote anything to disk.
  • Fixed trash GUI detection — Any chest inventory could be mistakenly detected as the trash GUI. Now correctly checks for the TrashHolder instance.
  • Fixed cooldown message not sending — Cooldown remaining time now correctly uses the %seconds% placeholder in the message.
  • Fixed placeholder conflicts in MessageManager — args[0] was being applied to multiple named placeholders simultaneously (%latest_version%, %items%, %1%), causing wrong values to appear in messages.
New Permissions
Permission Description Default
trash.toggle Allow enabling/disabling trash globally op
trash.filter.blacklist Manage personal item blacklist true
trash.filter.bypass Bypass all filters op
Config Changes
A new key has been added to config.yml. Existing configs will not be overwritten.

# Controls whether the trash is enabled for all players.
# Use /trash enable | disable | toggle to change in-game.
trash-disabled: false
----------, Mar 4, 2026

✨ New Features
  • Pagination system in /trash top: The /trash top command now displays results divided into pages of 10 players
  • Page navigation: Added commands /trash top opens <page> and /trash top items <page>
Improvements
  • Updated Trash Top:
    • Now you can set custom messages.
    • Implemented full pagination with page validation
    • Displays current and total page numbers
Updated Commands
  • /trash top [opens|items] [page] - Displays top with pagination
  • Command now shows format: "#1 Player - 100" with colors
----------, Mar 3, 2026

Fixed
  • Fixed multiple internal bugs and improved overall stability.
  • Improved compatibility with newer Paper versions (inventory handling).
Added
  • Added /trash toggle to switch the trash state between enabled/disabled.
  • Added %trash_cost% placeholder support in messages.
  • Added the key message: items_deleted
----------, Mar 2, 2026

Added:
  • Some internal bugs have been fixed.
  • Various optimizations have been made to the plugin to improve its performance and overall functionality.
  • A new parameter has been added to config.yml that allows statistics to be saved automatically at set intervals.
----------, Mar 2, 2026

  • Added global enable/disable system for Trash: /trash enable and /trash disable.
  • Trash enabled state is now saved persistently and remains after server restarts (data.yml).
  • Added new messages:
    • trash-disabled (shown when players try to use Trash while disabled)
    • trash-enabled / trash-disabled-admin (admin feedback)
  • Added new permission: trash.toggle (default: OP).
----------, Feb 16, 2026

  • Language files have been fully updated (it is recommended to completely delete the language folder before updating the plugin).
  • The issue with the cooldown variable has been fixed.
----------, Feb 15, 2026

  • Added new language files and auto-generation on first run:
    • Italian (messages_it.yml)
    • Portuguese (messages_pt.yml)
    • Russian (messages_ru.yml)
    • Dutch (messages_nl.yml)
    • Turkish (messages_tr.yml)
    • Japanese (messages_ja.yml)
  • Reviewed and fixed various internal plugin issues.
----------, Feb 15, 2026

Added
  • Trash cooldown system
  • New configurable cooldown between /trash uses.
  • Config options: cooldown.enabled, cooldown.seconds, cooldown.bypass-permission.
  • New bypass permission: trash.cooldown.bypass.
  • New cooldown message showing remaining time: trash-cooldown.
Changed
  • Updated language files.
----------, Feb 10, 2026

Added
  • Player statistics system
    • Tracks how many times a player opens /trash.
    • Tracks how many items a player trashes (total amount).
    • Data is stored persistently in data.yml.
  • Leaderboards
    • New command: /trash top opens [page] — Top players by trash opens.
    • New command: /trash top items [page] — Top players by trashed items.
    • New permission: trash.top (default: OP).
    • PlaceholderAPI support (extended)
    • Kept existing placeholder: %trash_cost%
    • New placeholders:
      • %trash_opens% — Player open count.
      • %trash_items% / %trash_items_trashed% — Player trashed items count.
      • %trash_rank_opens% — Player rank by opens.
      • %trash_rank_items% — Player rank by items trashed.
Changed
  • Language files are now only created if missing (prevents repeated “already exists” warnings).
Fixed
  • Prevents item loss when charging on close and a player can’t afford the cost (items are returned).
----------, Feb 9, 2026

  • Bugs in the UpdateChecker have been fixed.
  • Automatic updates for the config files have been added (in testing).
----------, Feb 5, 2026

Added
  • Default FREE usage: /trash is free for everyone out of the box (economy.enabled: false by default).
  • Optional economy charging system configurable in config.yml.
  • Free access bypass via permission when charging is enabled:
    • Config key: economy.free-permission (default: trash.economy.free)
    • Permission declared in plugin.yml.
Changed
  • Economy logic now respects economy.charge-on-open:
    • true → charge when opening the trash GUI.
    • false → charge when closing the GUI only if items were actually trashed.
Fixed
  • When charging on close and a player can’t afford the cost, items are returned to the player (or dropped if inventory is full) and a proper message is sent (not-enough-money-on-close).
----------, Feb 5, 2026

  • Bug Solved: Small internal error in message management.
----------, Sep 13, 2025

  • Bug Solved: Fixed a minor issue that occurred due to missing messages in files.
----------, Sep 12, 2025

  • Now you can modify the UpdateChecker message (this is only for players with permissions on the server).
----------, Sep 6, 2025

  • UpdateChecker message modified.
----------, Sep 5, 2025

  • Issues with languages have been fixed, the parameter was not working correctly.
----------, Sep 3, 2025

  • Bug Solved: The %Items% variable was not working correctly.
----------, Sep 3, 2025

  • UpdateChecker Modified
----------, Sep 1, 2025

  • Bug Solved: An issue with color codes that weren't working correctly in plugin messages has been fixed.
----------, Aug 30, 2025

  • New variables and PlaceholderAPI support have been added.
  • There is no complete assurance that all variables are working at the moment. Tests have been carried out mainly with the Vault variables, in this case: %vault_eco_balance_formatted%.
  • Message files have been updated.
  • The %trash_cost% variable displays the cost data that has been configured in the config.yml file.
  • The aliases /t and /basura have been added. More aliases will be added gradually. If you want to add your own aliases, it is recommended to use the MyCommand plugin.
----------, Aug 28, 2025

  • Bug Solved: The trash.row.1 permission was set by default, so the default-rows parameter in config.yml was not working correctly.
----------, Aug 26, 2025

  • Bug Solved: You can now execute the /trash reload command in the console.
----------, Aug 25, 2025

  • An optional action bar has been added that will display items you have deleted when you close /trash.
  • German language has been added.
----------, Aug 25, 2025

  • Free Trash permission added: trash.economy.free
  • Added Tab Complete for /trsh reload only for users with trash.reload or OP permissions.
  • Added Close Button at the Trash Can Inventory.
  • Added support for the Polish language.
----------, Aug 22, 2025

- Support for the French language has been added.
----------, Aug 21, 2025

- Spanish language support has been added. It is now configured through the config.yml file.
----------, Aug 21, 2025

- Bug Solved Update Checker

The plugin always showed that there was an update even when there wasn't one.
----------, Aug 18, 2025

- config.yml Updated

The default-rows parameter has been added for users who do not have permissions or in case this permission is not configured.
----------, Aug 17, 2025

- Update Checker Added
----------, Aug 15, 2025

- It is now possible to modify which messages will show the default prefix through the messages.yml file.
- The prefix is now changed from the config.yml file.
----------, Aug 15, 2025

- File messages.yml added, now you can edit the default messages.
----------, Aug 14, 2025

- Added /trash reload for reload plugin configuration.
----------, Aug 14, 2025

- English Version
- Bug solved: Previously, you could use Trash for free even if you had the charging option activated.
- Plugin enabled message updated.
----------, Aug 14, 2025

Resource Information
Author:
----------
Total Downloads: 771
First Release: Aug 14, 2025
Last Update: Mar 21, 2026
Category: ---------------
All-Time Rating:
5 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings