Sell my junk allows players to create their own list of junks and sell them via a command or interacting with a sign.
Features:
- Sell junk with one command or click on a sign.
- Player can edit their junk list.
- Create a default junk list for players.
- Set the prices for junks.
- Auto correct for misspelling an item.
Dependencies:
- Vault (Click here)
- Any economy plugin that works with vault
Permissions:
- sellmyjunk.command.use - access the /smj command required for players if you want them to edit their junk list
- sellmyjunk.admin - Allow admins to create signs and set prices for junk items
Commands:
- /smj help - Show help message.
- /smj sell - Sell items from inventory that are in junk list.
- /smj add <item> - Add item to junk list. (for individual player)
- /smj remove <item> - Remove item from junk list. (for individual player)
- /smj price - Show the price of an item that you are holding.
- /smj price set <price> - set the price of an item. (require sellmyjunk.admin permission)
How to create a sell junk sign:
Place a sign then in the first line type [sellmyjunk] and the rest of lines can be anything you want, for example
[sellmyjunk]
Click here to sell
<Line 3>
<Line 4>
![[IMG]](/proxy/image?url=https%3A%2F%2Fi.imgur.com%2FEIoQ1Yv.png)
Once you get a success message any player interacts with the sign the plugin will sell their junk items from inventory.
You can remove the sign by breaking it.
How to set a price for an item:
using
/smj price set <price> you can set the price of an item in your hand. Since minecraft has a lot of item there is a default price which is 1. Any item that does not have a price the plugin will use the default price.
If you wish to change the default price you can edit in the plugin directory
(plugins/SellMyJunk/pricedata.json)
How to setup default junk list:
Any player who interacts with the plugin (ie. /smj or sign) for the first time the plugin will assign default junk list.
You can edit the default junk list in the plugins directory
(plugins/SellMyJunk/default_junk_data.json)
How to edit my junk list: (as a player)
Players can edit their list by typing
/smj <add/remove> <item>.
If you wish to see your list type
/smj list.
If you misspelled an item name, the plugin will recognize and print to you the correct name. For example, if you misspell bonemeal:
Permission: sellmyjunk.command.use
I hope you like this plugin and feel free for any suggestions.