Explanation
Marketplace work for player without admin shop or admin market. Like in game MMORPG, player can open their own stall to sell some stuff everywhere.
Requirement
- Vault plugin needed for this plugin
Flow of the plugin
1. Player open the stall
2. Player set command to store item to the stall
3. Player still connected and waiting for buyer
4. When the owner of stall is disconnected, the stall will be close and gone and the item will be hold. Can be claimed when the owner back if the server not reloaded or restart.
Feature
- player can set their own title
- player can move freely around the stall, but can't leave to far
- Worldguard can't stop opening the stall, except disabling command
- open stall everywhere as long as player online
- claiming stuff in stall when player suddenly disconected
Weakness
For this free version there are some weakness for this plugin
- When server shutdown or restart or reload when player opening stall, item inside will be gone.
- Player can only sell 2 slot
- Amount of every slot or Stock of the item just set by in main hand of player, maximum 1 stack of every type item. like Dirt is 64 and sword just 1
Demo Video
-=Soon=-
Installation
- Drop the plugin jar file in your server folder /plugins/ and run once.
- After the plugin folder and default config.yml is generated.
- Start to set your own config withing config.yml and reload your server.
Commands
/mp help - Shows the help command
/mp reload - Reload config
/mp open - Open the stall
/mp set - Set item's stock and @ price in player's main hand
/mp close - Close the stall and return the rest item
/mp claim - return the rest item when the player disconnect
Permissions
mp.use - Allows to use the commands
mp.use.reload - Allow to use reload command
Config
prefix: "&b[&aMarkeplace&b]"
##Gui Configuration
stallName: "&4{player}&f's &bStall"
addButon: "&l&aAdd"
buyButton: "&l&2Buy"
##Item List
nameItem: "&6{name}"
##Lore text
priceItem: "&l&fPrice &r&f: &a{price}"
stockItem: "&l&fStock &r&f: &a{stock}"
##End GUI Config===========================
##prevent player to break the block around the stall
breakRadius: 4
##Message Config
##--------------
##Message on and after command
open:
titleLength: 34
textLimit: "&cTitle must be less than {titleLength} characters"
cmd: "&a/mp open <title> &f: Open stall with title hologram"
##error when player already open the stall
error: "&cYou already open the stall"
##success when player successfully open the stall
success: "&bSuccess open the stall"
stallNotOpen: "&cYou must open your stall"
set:
cmd: "&a/mp set <stock> <@price> &f: set price and quantity in your hand to sell"
noItem: "&cNo item in your hand"
lessItem: "&cLack of item in your hand"
success: "{item} add to stall"
##Message on close the stall
close:
closing: "&cClosing Stall"
listStuff: " &b- &a{item} &f[&b{quantity}&f] &creturned"
##Message on leave area stall
leaveMessage: "&cDon't leave your stall"
##help message when command /mp execute
helpMessage:
- "&8===== &7Marketplace &8====="
- "&a/mp help: &fShows this help message"
- "&a/mp open: &fOpen the stall"
- "&a/mp set <stock> <@price>: &fSet item's price and stock in your hand to sell"
- "&a/mp close: &fClose and return the rest item"
- "&a/mp claim: &freturn the rest item when you disconnected"
- "&a/mp reload: &fReloads the plugin's config"
##Message on Player interaction
##Player interaction on GUI marketplace
ownerBuy: "&cYou can't buy your own stuff"
outOfStock: "&cOut of Stock"
noMoney: "&cNot enough money"
##On buy Success
buyerMessage: "&bSuccessful &apurchase &2{item} &f[&b{quantity}&f] (&b{price}&f)"
ownerMessage: "&bSuccessful sale &2{item} &f[&b{quantity}&f] (&b{price}&f)"
##On break player stall
breakStall: "&cPlayer stall can't broken"
##End Message Config==============Feel free to give me feedback, tell me if you found some bug, i will fix it as soon as possible
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta
