Skip to content

Commit c1bc0f1

Browse files
Added optional page number to category commands and shop links (#14)
* Added optional page number to category commands * Added new shop link format
1 parent eaf74c8 commit c1bc0f1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/shopgui/commands-permissions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
| /sell all | Sell all items from your inventory | shopguiplus.sell.all |
1414
| /shop reload | Reload the configuration | shopguiplus.reload |
1515
| /shop check | Get information on the item held in hand | shopguiplus.check |
16-
| /shop [shop name] | Directly open the specified shop | shopguiplus.shops.SHOP_ID (see **Permissions** paragraph) |
16+
| /shop [shop name] [page] | Directly open the specified shop | shopguiplus.shops.SHOP_ID (see **Permissions** paragraph) |
1717
| /shop [player] | Directly open the main menu for the player | shopguiplus.others |
18-
| /shop [player] [shop name] | Open the specified shop to the specified player | shopguiplus.others |
18+
| /shop [player] [shop name] [page] | Open the specified shop to the specified player | shopguiplus.others |
1919
| /shop addmodifier item \<player\> \<shop\> \<item\> \<value\> [buy\|sell] | Add item-specific price modifier | shopguiplus.shop.addmodifier |
2020
| /shop addmodifier shop \<player\> \<shop\> \<value\> [buy\|sell] | Add shop-specific price modifier | shopguiplus.shop.addmodifier |
2121
| /shop addmodifier global \<player\> \<value\> [buy\|sell] | Add global price modifier | shopguiplus.shop.addmodifier |

docs/shopgui/shops-items-setup.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,9 @@ Example:
717717
```yaml
718718
1:
719719
type: shop_link
720-
shop: "blocks"
720+
link:
721+
shop: "blocks"
722+
page: 2 # <--- Optional, defaults to page 1 if not set.
721723
item:
722724
material: STONE
723725
quantity: 1

0 commit comments

Comments
 (0)