# Commands & Permissions

## Create Villager Shop

Creates a new Villager Shop of specified type

```
/vm create <type> <shopsize> {storagesize} {price} [time]
<> = required
{} = required for Player Shops
[] = optional
```

* `<shopsize>`: Number of vertical rows for the Shop Front menu (1-6)
* `<storagesize>`: Number of vertical rows for the Storage menu (1-6)
* `<price>`: The amount of money required for players to buy/rent the Shop
* `[time]`: Rent time ([Renting a Player Shop](https://vebjorn-elvekrok.gitbook.io/villager-market/renting-shops)), default = infinite

```
Permission: villagermarket.create
```

## Give Shop spawn egg

Gives specified player a new Villager Shop spawn egg

```
/vm item give <player> <shopsize> <storagesize> [amount]
<> = required
[] = optional
```

* `<player>`: The player which should recieve the item(s)
* `<shopsize>`: Number of vertical rows for the Shop Front menu (1-6)
* `<storagesize>`: Number of vertical rows for the Storage menu (1-6)
* `[amount]`: Amount of items (1 - 64), default 1

```
Permission: villagermarket.item.give
```

## Remove Villager Shop

Click on a Villager Shop after entering this command in order to remove it

```
/vm remove
```

```
Permission: villagermarket.remove
```

## Move Villager Shop

Click on a Villager Shop after entering this command to move it to a new location

```
/vm move
```

```
Permission: villagermarket.move
```

## Get Shop statistics

Get quick statistics about a Villager Shop

```
/vm stats
```

```
villagermarket.stats
```

## Add/remove trusted

```
/vm trusted <add/remove> <player>
```

* `<add/remove>`: Either "add" or "remove"
* `<player>`: Player to add/remove

## Reload config

Reloads the plugin config values ([Configuration](https://vebjorn-elvekrok.gitbook.io/villager-market/configuration))

```
/vm reload
```

```
Permission: villagermarket.reload
```

## Exired storage

Opens the player's expired storage.

```
/vm expiredstorage
```

```
Permission: None
```

## Additional Permissions

### Buy shop

If buy\_shop\_permission is enabled in the config, players need the following permission

```
villagermarket.buy_shop_permission
```

### Edit Admin Shops

Let's you open the editor for all [Admin Shops](https://vebjorn-elvekrok.gitbook.io/villager-market/shop-types/admin-shop)

```
villagermarket.adminshops
```

### See other's Stats and Storage

Open other players' storage with shift + left click, and see stats for all Villager Shops

```
villagermarket.spy
```

### Use Spawn Egg

Use the [shop spawn egg](https://vebjorn-elvekrok.gitbook.io/villager-market/villager-shop-egg)

```
villagermarket.use_spawn_item
```

### Change name

Change shop name

```
villagermarket.change_name
```

### Max shops

You can use villagermarket.max\_shops.\<amount> to limit a player's max shops. You can use villagermarket.unlimited\_shops to give a player unlimited shops.

```
villagermarket.max_shops.<amount>
```

### Bypass limit

Let's you bypass item limits.

```
villagermarket.bypass_limit
```

### Bypass price

Let's you bypass max item price.

```
villagermarket.bypass_price
```

### Use Citizens

Let's you turn shops into Citizen NPCs.

```
villagermarket.use_citizens
```

### Unlimited shops

Let's you have unlimited amount of shops, bypassing all restrictions.

```
villagermarket.unlimited_shops
```

### Admin

Grants all VillagerMarket permissions

```
villagermarket.admin
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://vebjorn-elvekrok.gitbook.io/villager-market/commands-and-permissions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
