GUI TRASH CAN icon

GUI TRASH CAN -----

Adds a GUI TRASHCAN




BUG FIX #1

Hello everyone! A user informed me about an issue they were experiencing with the plugin, and I discovered that it was due to the Java version I was using for development. I've decided to lower the version to Java 21. If you're using Java 22, there's no need to update to this version of the plugin. I also fix the bug for chatclear not showing the message.

Please note that this plugin is designed for Minecraft version 1.21+ and has not been tested for lower versions. Thanks so much, and have a great week!


This is the Error
Code (Text):
[10:06:15 ERROR]: [ModernPluginLoadingStrategy] Could not load plugin 'GUITrashCan.jar' in folder 'plugins/.paper-remapped'
org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/kolbygreen/trashcan/Main has been compiled by a more recent version of the Java Runtime (class file version 66.0), this version of the Java Runtime only recognizes class file versions up to 65.0
at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:129) ~[paper-1.21.1.jar:1.21.1-40-2fdb2e9]
at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:35) ~[paper-1.21.1.jar:1.21.1-40-2fdb2e9]
at io.papermc.paper.plugin.entrypoint.strategy.modern.ModernPluginLoadingStrategy.loadProviders(ModernPluginLoadingStrategy.java:116) ~[paper-1.21.1.jar:1.21.1-40-2fdb2e9]
at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:38) ~[paper-1.21.1.jar:1.21.1-40-2fdb2e9]
at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:40) ~[paper-1.21.1.jar:1.21.1-40-2fdb2e9]
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:546) ~[paper-1.21.1.jar:1.21.1-40-2fdb2e9]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:292) ~[paper-1.21.1.jar:1.21.1-40-2fdb2e9]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1215) ~[paper-1.21.1.jar:1.21.1-40-2fdb2e9]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330) ~[paper-1.21.1.jar:1.21.1-40-2fdb2e9]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.UnsupportedClassVersionError: me/kolbygreen/trashcan/Main has been compiled by a more recent version of the Java Runtime (class file version 66.0), this version of the Java Runtime only recognizes class file versions up to 65.0
at java.base/java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027) ~[?:?]
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:243) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:169) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:164) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
at java.base/java.lang.Class.forName0(Native Method) ~[?:?]
at java.base/java.lang.Class.forName(Class.java:534) ~[?:?]
at java.base/java.lang.Class.forName(Class.java:513) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:78) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:125) ~[paper-1.21.1.jar:1.21.1-40-2fdb2e9]
... 9 more

If you're experiencing any other issues, please feel free to contact me on Spigot or Discord. Thanks so much!

+ Java 21
- Java 22
----------, Oct 3, 2024

Hello everyone! After discussing the config.yml with user feedback, I’ve decided to reintroduce it with some exciting new features. You can now:
  • Enable or disable messages,
  • Change the GUI size,
  • Customize the outline blocks,
  • Update the closing message, and more!
Check out the updated config.yml below and explore all the customization options!

Code (Text):
# ------------------------------------------------------------------------- #
#
# GUI Trashcan by Hyperian Design and Development
#
# Please report any bugs on our Spigot page or Discord channel. Thank you!
#
# ------------------------------------------------------------------------- #

# Trashcan GUI

# Enable or disable messages when players open/close the Trash Can GUI
# If set to true, players will receive a message when opening or closing the GUI.
enableTrashCanMessages: true

# The message players will receive when they open the Trash Can.
# You can customize it using color codes (e.g., &e for yellow, &l for bold).
openTrashCanMessage: '&e&lGUI Trashcan &8&l» &eYou have opened the trash can.'

# The message players will receive when they close the Trash Can.
# Also customizable with color codes.
closeTrashCanMessage: '&e&lGUI Trashcan &8&l» &cYou have closed the trash can.'

# The name of the Trash Can GUI that players will see at the top of the inventory screen.
# This supports color codes.
trashCanName: '&e&lTRASH CAN GUI'

# The block type used for the outline of the Trash Can GUI.
# This should be a valid Minecraft material (e.g., "GLASS", "LIME_STAINED_GLASS_PANE").
outLineBlock: LIME_STAINED_GLASS_PANE

# The display name for the outline blocks in the Trash Can GUI.
# This is usually blank or a simple string (e.g., " " for an empty display).
# You can use color codes here too.
outLineBlockDisplay: ' '  # Red with no text, just a blank name

# The block used for the "Close Trash Can" button, which will appear at the bottom-right corner of the GUI.
# This should be a valid Minecraft material (e.g., "BARRIER").
closeTrashCanBlock: BARRIER

# The display name for the "Close Trash Can" button.
# This will appear when players hover over the close button.
closeTrashCanBlockDisplay: '&4&lCLICK TO CLOSE TRASH CAN'  # Red bold text saying "Close the can"

# The size of the GUI inventory. This must be a multiple of 9 (e.g., 9, 18, 27, 36, 45, 54).
# The size defines how many slots the Trash Can GUI will have. The default is 27 slots (3 rows).
guiSize: 54

# The message players will see if they don't have permission to open the Trash Can.
# Customize it with color codes.
noPermission: '&e&lGUI Trashcan &8&l» &cYou don''t have permission to use this!'
 
----------, Sep 27, 2024

I’m excited to bring you this update for the GUI Trash Can plugin! It is now fully compatible with 1.21.1. The entire plugin has been recoded, featuring an improved, more streamlined GUI and a 'Close Trash' button. Additionally, I have removed the configuration file to keep the plugin small, as I believe it’s not needed. Thank you all for your support!

[​IMG]

Whats New!
+ Better GUI
+ Trash Can Close Button
+ Smaller Jar File

Removed:
- Config File
----------, Sep 19, 2024

This plugin is now able to run in 1.15
----------, Dec 15, 2019

Hello, I am back with a simple aliases update to the TrashcanGUI plugin. I fix the space problem in the jar file. Thanks for download GUI 9 Trash Can

Commands:

/tc
/trash
/trashcan

Permissions:

GUITrash9.trashcan
----------, Dec 8, 2019

This plugin can be used on 1.14 now
----------, May 4, 2019

Resource Information
Author:
----------
Total Downloads: 656
First Release: Mar 29, 2019
Last Update: Oct 3, 2024
Category: ---------------
All-Time Rating:
6 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings