The Chest Shop Plugin for Spigot allows players to create and manage their own shops easily. Players can buy and sell items using signs linked to chests, facilitating a user-friendly marketplace experience.
Features
- Sign Creation: Easily create shop signs that players can interact with.
- Shop Management: Owners can manage their shops, including setting prices and removing items.
- Economy Integration: Works seamlessly with various economy plugins for in-game currency transactions.
- Customizable Messages: Modify all messages and GUI titles to fit your server's theme.
Configuration
General Settings
Code (YAML):
general:
sign-creation-message
:
"[shop]"
# Message shown when a shop is successfully created
sign-creation-success
:
"&1[shop]"
sign-creation-success-line2
:
"&7Right click"
sign-creation-success-line3
:
"&7to interact"
sign-creation-success-line4
:
""
sign-creation-error
:
"&c[shop]"
sign-creation-error-line2
:
"&7<invalid>"
sign-creation-error-line3
:
""
sign-creation-error-line4
:
""
GUI Settings
Code (YAML):
gui:
chest-shop-player:
size
: 3
title
:
"%player%'s Chest Shop"
items:
transaction:
slots
: 0-26
name
:
"%item%"
# The name of the item for sale
lore
:
-
"%player% is %mode% this item"
- "&7Price
:
&b%price%"
- "&7&oStock
:
&b%price%"
item
:
"%item%"
# Item representing the transaction in the chest shop GUI
cmd
: 100
#CustomModelData
chest-shop-owner:
size
: 3
title
:
"Your Chest Shop"
items:
transaction:
slots
: 0-26
name
:
"%item%"
# The name of the item in the owner's inventory
lore:
- "&7Price
:
&b%price%"
- "&7&oStock
:
&b%stock%"
-
"&7You are &b%type%ing &7this item"
-
"&cClick to change the item's price."
item
:
"%item%"
# Item representing the transaction in the owner's GUI
cmd
: 101
#CustomModelData
Confirmation GUIs
Code (YAML):
remove-item-confirmation:
size
: 3
title
:
"Confirm Item Removal"
items:
confirm:
slot
: 0
name
:
"&a&lCONFIRM"
lore
:
-
"&fClick to confirm"
item
:
"LIME_WOOL"
# The item used for confirmation
cmd
: 102
#CustomModelData
deny:
slot
: 1
name
:
"&c&lCANCEL"
lore
:
-
"&fClick to cancel"
item
:
"RED_WOOL"
# The item used for cancellation
cmd
: 103
#CustomModelData
purchase-item-confirmation:
size
: 3
title
:
"Confirm Purchase"
items:
add-1:
slot
: 10
name
:
"&a&lADD 1"
item
:
"LIME_STAINED_GLASS_PANE"
stack
: 1
# Add 1 item to the purchase stack
cmd
: 104
#CustomModelData
add-10:
slot
: 11
name
:
"&a&lADD 10"
item
:
"LIME_STAINED_GLASS_PANE"
stack
: 10
# Add 10 items to the purchase stack
cmd
: 105
#CustomModelData
set-64:
slot
: 12
name
:
"&a&lSET TO 64"
item
:
"LIME_STAINED_GLASS_PANE"
stack
: 64
# Set the purchase stack to 64
cmd
: 106
#CustomModelData
item:
slot
: 13
name
:
"%item%"
# Dynamic name of the selected item
item
:
"%item%"
# Actual item in the purchase process
stack
:
"%stack%"
# Selected stack size (updates as items are added/removed)
lore:
- "&7Price
:
&b%price%"
cmd
: 107
#CustomModelData
take-1:
slot
: 14
name
:
"&c&lTAKE 1"
item
:
"RED_STAINED_GLASS_PANE"
stack
: 1
# Remove 1 item from the purchase stack
cmd
: 108
#CustomModelData
take-10:
slot
: 15
name
:
"&c&lTAKE 10"
item
:
"RED_STAINED_GLASS_PANE"
stack
: 10
# Remove 10 items from the purchase stack
cmd
: 109
#CustomModelData
set-1:
slot
: 16
name
:
"&c&lSET TO 1"
item
:
"RED_STAINED_GLASS_PANE"
stack
: 1
# Set the purchase stack to 1
cmd
: 110
#CustomModelData
Messages
Code (YAML):
messages:
prefix
:
"&7[ChestShop] "
sign-created
:
"Shop sign created successfully!"
no-chest-nearby
:
"No chest nearby to link the shop."
double-chest-not-allowed
:
"You cannot create a shop with a double chest!"
price-prompt
:
"Please type the price for the selected item."
item-added-for-sale
:
"Item added for sale with a price of %price%!"
invalid-price
:
"Invalid price entered. Please enter a valid number."
shop-deleted
:
"Shop has been successfully deleted."
not-owner
:
"You are not the owner of this shop!."
shop-does-not-exist
:
"This shop does not exist."
no-permission
:
"You do not have permission to perform this action."
reload-success
:
"Configuration reloaded successfully."
reload-failed
:
"Failed to reload the configuration."
max-shops-reached
:
"&cYou can only have %amount% shops created at once."
item-purchased
:
"Item purchased successfully for %price%$!"
not-enough-money
:
"You don't have enough money to purchase this item!"
owner-not-enough-money
:
"The owner of this shop doesn't have enough money to purchase this item! The max you can sell is %max%"
item-sold
:
"Your %item% item has been sold for %price%!"
item-bought
:
"Someone sold their %item% to you!"
player-no-stock
:
"&cYou don't have enough of this item in your inventory!"
shop-no-stock
:
"&cThere is not enough item on stock to buy! Max items to buy is %max%!"
shop-not-enough-space
:
"&cThere is no more space to sell items! Max items to sell is %max%!"
remove-item-cancel
:
"&cCancelled!"
remove-item-removed
:
"&aRemoved %item% from the shop!"
# Messages can be disabled by setting them to an empty string
disabled-message
:
""
# Example of how to disable a message