The Trashcan
Updated plugin can be found here:
https://www.spigotmc.org/resources/the-trashcan.51227/
The Trashcan 0.3
Trashcan is a simple plugin that turns those useless Cauldrons into something you can actually use...
A Trashcan!
Just craft a trashcan like this.
Then place it and right click it.
Drop your un-wanted items in it and they will disappear forever!
Permission: thetrashcan.use
Updates
- 0.3 Added Permission support. thetrashcan.use
- 0.2 Added an easy way to make the Cauldron still usable. (Thanks Algent)
@j6ny
Thanks! Hope you enjoy it.
I usually make desktop and mobile apps, so programming isn't new for me. (that helps)
I started here: http:wiki.bukkit.org/Plugin_Tutorial
Then after that I looked at a lot of source code and forum posts that helped figure out the commands I needed.
Theses two in particular.
http:forums.bukkit.org/threads/open-a-chest-gui-without-a-chest-like-openinv-unsolved.51637/
http:forums.bukkit.org/threads/sign-interact.30543/
Also, the source code for The Trashcan.
https:github.com/octalmage/thetrashcan
Sorry it's not commented, but its super short.
My other software if anyone is interested.
http:pr.ojectblue.com/
Brilliant idea man! this will be very useful in my server, as i dont like to type "/clearinventory" (Essentials) every single time i want to clear my inventory.
P.S. I would REALY like to know how to code good bukkit plugins. Do you know of any good tutorials? Thx :D
@Kiak
Thanks man! Such a simple concept but it's something I use everyday.
@jamielamb1
I admire the faith in your belief that it can't work when its downloadable right here and it clearly does work :)
Sweet idea Octal, Cauldrons 4 life yo
It does not require spout or anything.
This is the function here that does it.
Inventory inventory = Bukkit.createInventory(player, 36, "Trash Can");
InventoryView view = player.openInventory(inventory);
Im sorry to say but this is impossible inless you have spout and that plugin is not even updated yet. explain how you added a new gui (trashcan).
Does this require spout or any other client mod?