NPCShops
NPCShops is a plugin for creating your own shops on the server. In the shop you can sell, buy and buy back items that can be properly configured with the /npcshops command. The plugin has a lot of configuration options via the config.yml file.
Functions
Create an infinite number of shops
Advanced configuration
Possibility to edit each message
Editing items in the shop using the gui
Editing prices in the store using the gui
Advanced item creation system in config
Possibility to edit each gui in config
Advanced lore system when selling items
Custom items like Oraxen, ItemAdder, MMOitems etc. support
More in the screenshots below:
Screenshots
(The presented screenshots are made in Polish, therefore the names of the items may be different.)
Presentation
Commands & Permissions
/NPCShops
● Permission:
npcshops.admin
● Description: The main command of the plugin
/Shop
● Permission: npcshops.shopuse.<shop>
● Description: Open a specific shop.
Perm: npcshops.shopuse
● Description: Any shop can be opened.
Perm: npcshops.update-info
● Description: Displays update information.
Config
Code (YAML):
#
#███╗░░██╗██████╗░░█████╗░░██████╗██╗░░██╗░█████╗░██████╗░░██████╗
#████╗░██║██╔══██╗██╔══██╗██╔════╝██║░░██║██╔══██╗██╔══██╗██╔════╝
#██╔██╗██║██████╔╝██║░░╚═╝╚█████╗░███████║██║░░██║██████╔╝╚█████╗░
#██║╚████║██╔═══╝░██║░░██╗░╚═══██╗██╔══██║██║░░██║██╔═══╝░░╚═══██╗
#██║░╚███║██║░░░░░╚█████╔╝██████╔╝██║░░██║╚█████╔╝██║░░░░░██████╔╝
#╚═╝░░╚══╝╚═╝░░░░░░╚════╝░╚═════╝░╚═╝░░╚═╝░╚════╝░╚═╝░░░░░╚═════╝░
#Do not edit config version!
config-version
: 1.2.4
update-info
: true
messages :
shop-no-permission
:
" &4&l❌ &cYou do not have permission to use this command."
shop-no-choose
:
"&cChoose any shop."
shop-not-exist
:
"&cSuch a store does not exist"
shop-buy
:
"&aYou bought &r%item% &8x%amount%&a for &6$%price%"
shop-no-space
:
"&cYou don't have any inventory space!"
shop-no-money
:
"&cYou don't have enought money!"
shop-no-sell
:
"&cThat item cannot be sold!"
shop-sell
:
"&aYou sold &r%item% &8x%amount%&a for &6$%price%"
shop-buyback
:
"&aYou bought back &r%item% &8x%amount%&a for &6$%price%"
shop-forceopen
:
"&a%player% &7has opened a shop for you &a%shop%"
SignBuyValueEditor :
line1
:
"^^^^^^^^"
line2
:
"Enter price (Buy)"
line3
:
"e.g. 0.01, 20 etc."
SignSellValueEditor :
line1
:
"^^^^^^^^"
line2
:
"Enter price (Sell)"
line3
:
"e.g. 0.01, 20 etc."
ThisNotANumberError
:
"&cThe value %value% is not a number!"
PriceEditor :
separator
:
""
line1
:
"&7Buy price&8: &6$%price% &8(&7LMB&8)"
line2
:
"&7Sell price&8: &6$%price% &8(&7RMB&8)"
line3
:
"&7Multiple buy&8: &6%status% &8(&7MMB&8)"
line4
:
"&7Click with SHIFT to delete price"
shop-text :
buy
: -
""
-
"&7Cost"
-
"&6$%price%"
-
""
-
"&eClick to trade!"
multiple-buy
: -
""
-
"&7Cost"
-
"&6$%price%"
-
""
-
"&eClick to trade!"
-
"&eRight-Click for more trading"
-
"&eoptions!"
shop-trading-options
: -
""
-
"&7Cost"
-
"&6$%price%"
-
""
-
"&eClick to purchase!"
sell
: -
""
-
"&7Sell Price"
-
"&6$%price%"
-
""
-
"&eClick to sell!"
buyback
: -
""
-
"&7Cost"
-
"&6$%price%"
-
""
-
"&eClick to buyback!"
Security
:
# (Without this protection, it will be possible to own the named item.)
# Closes the player's shop gui when he takes damage.
close-on-damage
: true
# Restores base item names when server shuts down.
restore-on-plugin-close
: true
# If enabled, the player cannot pick up items while in the shop gui.
no-pickup-item
: true
# If this option is enabled, the player cannot drop items in the shop GUI.
no-drop-item
: true
#
# Simple gui item:
#
# material: BOOK <material> (https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html)
# amount: 1 <integer>
# name: "&aInfo" <string>
# lore: ["&7Sample item."] <list>
# enchantments: ["MENDING:1", "DURABILITY:3"] <enchant:integer> (https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html)
# flags: [HIDE_ENCHANTS, HIDE_ATTRIBUTES] <item flag> (https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/ItemFlag.html)
#
layout-config
:
# Remember to change the shop-layout value in the config when changing shop-size
shop-size
: 54
# [9, 18, 27, 36, 45, 54]
fill-background
: true
click-type
:
# Click type: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/inventory/ClickType.html
buy-item
: LEFT
trading-options
: RIGHT
background-item
:
# Item
material
: LIGHT_GRAY_STAINED_GLASS_PANE
name
:
"&0"
buyback :
reset-buyback-on-join
: true
default-item
:
# Item
material
: HOPPER
name
:
"&aSell Item"
lore
: -
"&7Click item in your inventory to"
-
"&7sell them to this Shop!"
trading-options :
shop-trade-title
:
"Shop Trading Options"
# Remember to change the trading-options-layout value in the config when changing shop-trade-size
shop-trade-size
: 54
# [9, 18, 27, 36, 45, 54]
fill-background
: true
back
:
# Item
material
: ARROW
name
:
"&aGo Back"
lore
: -
"&7To %shop%"
close
:
# Item
material
: BARRIER
name
:
"&cClose"
background-item
:
# Item
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
shop-layout
:
# Actions available: buyback
# (Empty slots turn into buy value)
0 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
1 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
2 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
3 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
4 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
5 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
6 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
7 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
8 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
9 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
17 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
18 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
26 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
27 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
35 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
36 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
44 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
45 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
46 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
47 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
48 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
49 :
action
: buyback
50 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
51 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
52 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
53 :
material
: BLACK_STAINED_GLASS_PANE
name
:
"&0"
trading-options-layout
:
# Actions available: back, close, buy
# (Empty slots turn into the background)
45 :
action
: back
49 :
action
: close
20 :
action
: buy
amount
: 1
21 :
action
: buy
amount
: 5
22 :
action
: buy
amount
: 10
23 :
action
: buy
amount
: 32
24 :
action
: buy
amount
: 64
Requirements
Vault + Economy plugin (e.g. Essentials)
Supporting
@oskarq_yt#7155 -
50 PLN
Spoiler: Ignore this [search tag]
npcshop
shop
shop plugin
npc plugin
npc shop plugin
citizens shop
skyblock shop
smp shop plugin
custom items
oraxen
itemadder
MMOitems
I used the translator to write this text so some things may be confusing.