nTrash is an easy-to-use trash can plugin. It will allow your users to have personal cans and a public container where everyone can put things into, or take from. But that's not all, you are able to modify everything related to the truck which will clean up the trash cans!
The commands you'll be able to use are the following:
- /container: Opens the public container
- /trash: Opens your private bin
- /trash <player>: Opens the private bin of the indicated player
- /truck: Shows the time left for the truck to clean up
- /truck timer <seconds>: Sets the amount of time the truck will take to clean up
- /truck message <true/false>: Lets the truck display a message when cleaning up if set to true
- /truck set <all/trash/container/none>: Allows you to decide what do you want the truck to clean up
- /truck force <all/trash/container>: The trucks cleans up and the timer resets
- /truck block <world> <all/trash/container> <true/false>: The ability to use the trash or the container in that world is modified
There are also other features aside from the commands;
- Updater: Lets you know when there is an available update of the plugin, triggers on starting the server (no deactivable) or when a person with permissions joins the server (deactivable)
- Items: Completely customizable items (Type, name, lore and reciepe) to open both container and trash cans
- Signs: Configurable signs to open the container and the trash cans
The permissions required for the previous commands and features are:
- /container: ntrash.container
- /trash:
- ntrash.trash
- ntrash.trash.own
- /trash <player>: ntrash.trash.others
- Trash size: ntrash.trash.<lines> (from 1 to 6)
- /truck: ntrash.truck
- /truck timer: ntrash.truck.timer
- /truck message: ntrash.truck.message
- /truck set: ntrash.truck.set
- /truck force: ntrash.truck.force
- /truck block: ntrash.truck.block
- Surpass block:
- ntrash.block.surpass.container
- ntrash.block.surpass.trash
- Updater: ntrash.updater
- Signs:
- Container: ntrash.sign.container.<use/create/delete>
- Trash: ntrash.sign.trash.<use/create/delete>
- Items:
- Container: ntrash.item.container
- Trash: ntrash.item.trash
The configuration files are quite long, but make the total customization of the plugin possible
Spoiler: config.yml
Code (Text):
updater: true //enables or disables the plugin updates notifier
trash:
invname: //names for the personal cans, %u% will be replaced by the users name
own: "Your trash can"
others: "%u%'s trash can"
item: //complete configuration for the trash-opening item
enabled: true //enables or disables the private trash can item
material: "CHEST"
name: "&rTrash can"
lore: "&rOpens the trash can"
crafting:
slot1: "AIR"
slot2: "AIR"
slot3: "AIR"
slot4: "AIR" // 1|2|3
slot5: "CHEST" // 4|5|6
slot6: "AIR" // 7|8|9
slot7: "AIR"
slot8: "AIR"
slot9: "AIR"
sign: //configuration for the trash can sign
enabled: true //enables or disables the trash can sign
line1: ""
line2: "[Trash can]"
line3: ""
line4: ""
container:
inv: //names and size for the public continer
name: "Public container"
size: 27
item: //complete configuration for the trash-opening item
enabled: true //enables or disables the container item
material: "TRAPPED_CHEST"
name: "&rContainer"
lore: "&rOpens the container"
crafting:
slot1: "AIR"
slot2: "AIR"
slot3: "AIR"
slot4: "AIR" // 1|2|3
slot5: "TRAPPED_CHEST" // 4|5|6
slot6: "AIR" // 7|8|9
slot7: "AIR"
slot8: "AIR"
slot9: "AIR"
sign: //configuration for the container sign
enabled: true //enables or disables the container sign
line1: ""
line2: "[Container]"
line3: ""
line4: ""
truck:
time: 0 //time that has to pass for the truck to clean up
message: true //enables or disables the truck message
trash: true //decides if the truck will clean up trash cans
container: true //decides if the truck will clean up the container
trash:
invname: //names for the personal cans, %u% will be replaced by the users name
own: "Your trash can"
others: "%u%'s trash can"
item: //complete configuration for the trash-opening item
enabled: true //enables or disables the private trash can item
material: "CHEST"
name: "&rTrash can"
lore: "&rOpens the trash can"
crafting:
slot1: "AIR"
slot2: "AIR"
slot3: "AIR"
slot4: "AIR" // 1|2|3
slot5: "CHEST" // 4|5|6
slot6: "AIR" // 7|8|9
slot7: "AIR"
slot8: "AIR"
slot9: "AIR"
sign: //configuration for the trash can sign
enabled: true //enables or disables the trash can sign
line1: ""
line2: "[Trash can]"
line3: ""
line4: ""
container:
inv: //names and size for the public continer
name: "Public container"
size: 27
item: //complete configuration for the trash-opening item
enabled: true //enables or disables the container item
material: "TRAPPED_CHEST"
name: "&rContainer"
lore: "&rOpens the container"
crafting:
slot1: "AIR"
slot2: "AIR"
slot3: "AIR"
slot4: "AIR" // 1|2|3
slot5: "TRAPPED_CHEST" // 4|5|6
slot6: "AIR" // 7|8|9
slot7: "AIR"
slot8: "AIR"
slot9: "AIR"
sign: //configuration for the container sign
enabled: true //enables or disables the container sign
line1: ""
line2: "[Container]"
line3: ""
line4: ""
truck:
time: 0 //time that has to pass for the truck to clean up
message: true //enables or disables the truck message
trash: true //decides if the truck will clean up trash cans
container: true //decides if the truck will clean up the container
Spoiler: messages.yml
Code (Text):
plugin:
prefix: "&9[&bnTrash&9]&r"
enable: "%p% &fPlugin enabled"
disable: "%p% &fPlugin disabled"
onlyusers: "%p% &fOnly users can use the command &7%c%"
updater:
available: "%p% &fNew version is available at Spigot: &7%v%"
updated: "%p% &fThe plugin is up to date"
error: "%p% &fUnabled to access Spigot"
noperm:
command: "%p% &fYou don't have permission for using the command &7%c%"
sign:
trash:
create: "%p% &fYou don't have permission for creating trash signs"
delete: "%p% &fYou don't have permission for deleting trash signs"
use: "%p% &fYou don't have permission for using a trash sign"
container:
create: "%p% &fYou don't have permission for creating container signs"
delete: "%p% &fYou don't have permission for deleting container signs"
use: "%p% &fYou don't have permission for using a trash sign"
item:
trash: "%p% &fYou don't have permission for using the trash item"
container: "%p% &fYou don't have permission for using the container item"
usage: "%p% &fYou didn't use the command &7%c% &fproperly"
sign:
trash:
created: "%p% &fTrash sign has been created"
deleted: "%p% &fTrash sign has been deleted"
container:
created: "%p% &fContainer sign has been created"
deleted: "%p% &fContainer sign has been deleted"
trash:
noown: "%p% &fYou don't have a trash can"
noothers: "%p% &7%u% &fdoesn't have a trash can"
truck:
nooption: "%p% &fNo proper option was introduced"
force:
all: "%p% &fThe truck cleaned up early everything!"
trash: "%p% &fThe truck cleaned up early the trash cans"
container: "%p% &fThe truck cleaned up early the container"
clean:
all: "%p% &fThe truck cleaned up everything"
trash: "%p% &fThe truck cleaned up the trash cans"
container: "%p% &fThe truck cleaned up the container"
message:
enable: "%p% &fThe truck will display a message"
disable: "%p% &fThe truck won't display a message"
timer:
set: "%p% &fThe timer has been set for &7%t%"
get:
time: "%p% &fTime left for the truck: &7%t%"
notruck: "%p% &fThere is no truck!"
state:
all: "%p% &fThe truck will clean both trash cans and the container"
trash: "%p% &fThe truck will only clean the trash cans"
container: "%p% &fThe truck will only clean the container"
none: "%p% &fThe truck won't clean anything"
block:
trash:
enable: "%p% &fThe trash is now enabled in the world &7%w%"
disable: "%p% &fThe trash is now disabled in the world &7%w%"
container:
enable: "%p% &fThe container is now enabled in the world &7%w%"
disable: "%p% &fThe container is now disabled in the world &7%w%"
all:
enable: "%p% &fEverything is now enabled in the world &7%w%"
disable: "%p% &fEverything is now disabled in the world &7%w%"
prefix: "&9[&bnTrash&9]&r"
enable: "%p% &fPlugin enabled"
disable: "%p% &fPlugin disabled"
onlyusers: "%p% &fOnly users can use the command &7%c%"
updater:
available: "%p% &fNew version is available at Spigot: &7%v%"
updated: "%p% &fThe plugin is up to date"
error: "%p% &fUnabled to access Spigot"
noperm:
command: "%p% &fYou don't have permission for using the command &7%c%"
sign:
trash:
create: "%p% &fYou don't have permission for creating trash signs"
delete: "%p% &fYou don't have permission for deleting trash signs"
use: "%p% &fYou don't have permission for using a trash sign"
container:
create: "%p% &fYou don't have permission for creating container signs"
delete: "%p% &fYou don't have permission for deleting container signs"
use: "%p% &fYou don't have permission for using a trash sign"
item:
trash: "%p% &fYou don't have permission for using the trash item"
container: "%p% &fYou don't have permission for using the container item"
usage: "%p% &fYou didn't use the command &7%c% &fproperly"
sign:
trash:
created: "%p% &fTrash sign has been created"
deleted: "%p% &fTrash sign has been deleted"
container:
created: "%p% &fContainer sign has been created"
deleted: "%p% &fContainer sign has been deleted"
trash:
noown: "%p% &fYou don't have a trash can"
noothers: "%p% &7%u% &fdoesn't have a trash can"
truck:
nooption: "%p% &fNo proper option was introduced"
force:
all: "%p% &fThe truck cleaned up early everything!"
trash: "%p% &fThe truck cleaned up early the trash cans"
container: "%p% &fThe truck cleaned up early the container"
clean:
all: "%p% &fThe truck cleaned up everything"
trash: "%p% &fThe truck cleaned up the trash cans"
container: "%p% &fThe truck cleaned up the container"
message:
enable: "%p% &fThe truck will display a message"
disable: "%p% &fThe truck won't display a message"
timer:
set: "%p% &fThe timer has been set for &7%t%"
get:
time: "%p% &fTime left for the truck: &7%t%"
notruck: "%p% &fThere is no truck!"
state:
all: "%p% &fThe truck will clean both trash cans and the container"
trash: "%p% &fThe truck will only clean the trash cans"
container: "%p% &fThe truck will only clean the container"
none: "%p% &fThe truck won't clean anything"
block:
trash:
enable: "%p% &fThe trash is now enabled in the world &7%w%"
disable: "%p% &fThe trash is now disabled in the world &7%w%"
container:
enable: "%p% &fThe container is now enabled in the world &7%w%"
disable: "%p% &fThe container is now disabled in the world &7%w%"
all:
enable: "%p% &fEverything is now enabled in the world &7%w%"
disable: "%p% &fEverything is now disabled in the world &7%w%"
Spoiler: uuids.yml
Code (Text):
uuids: [] //you should't touch this file, it is for internal plugin functionality
This is what I'm planning on doing:
- Multiserver bins
Thank you for using my plugin! It means a lot for me to know that people enjoy and use my plugins. Please leave a rating if you like it!
Note: I'm spanish, so sorry if you don't understand something, and please, notice me for correcting it
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.12
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
nTrash is a free Minecraft Java mod. Compatible with Minecraft 1.12. Downloaded 715 times (via Spigot). Download it and open it directly in the game.