Admin Shop

Everything you need to know about Admin Shops

About

Admin Shops are "server owned" shops. These shops can not be bought or managed by normal players, and requires the permission node villagermarket.admin to edit. A storage menu is absent because the Admin Shops have an infinite item supply, and you can't sell/abandon the shop.

Pro tip: Sell Villager Shop eggs from your Admin Shops!

Creating an Admin Shop

To create a new Admin Shop, use the following command:

/vm create admin <shopsize>

Click here for more details

Limits

With admin shops, you can set per-player or server-wide limits, as well as cooldowns. Right click the player head in the item editor to cycle between player and server-limit, and left click to set the limit amount.

You can also set limit cooldowns, which will reset the limit counter automatically. Click the clock, and type in the amount of time for cooldown in the chat, using the following format:

<amount><unit>
E.g: 1h

Available units are:

  • m (minutes)

  • h (hours)

  • d (days)

Sell commands

You can also sell commands using admin shops. Just open the item editor and cycle the item mode to "command". Then you can click the command block to set the command to execute.

  • Use %player% as the playername placeholder, and remember

  • Do not use a slash (/) in front of the command

If you wish to show info about the command to your players through item name or lore, you'll have to edit the name/lore before adding the item to the shop. Many plugins offer item editing, such as ItemEdit.

Automatic discounts

With Admin Shops, you can configure automatic random discounts. To get started, open the config.yml and scroll down to to the discount section:

#-------------------- Discount settings --------------------#

#Auto discounts will add random discounts to random items
#at a set interval and duration.
auto_discount:
enable: true
announce: true
discount:
min: 10
max: 20
#Duration of discount
duration: 1h
#How often new discounts should be added
interval: 12h
#Amount of items which should have discounts
item_amount: 3
#Amount of random shops which should have discounts applied
shop_amount: 1
#List the admin shop IDs which should use auto discounts here
admin_shops:
- "shop_id"

Last updated