> For the complete documentation index, see [llms.txt](https://minecraftman1013.gitbook.io/shop-skript/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://minecraftman1013.gitbook.io/shop-skript/old-shop-skript/basics/bug-fixes.md).

# Bug Fixes

## All bugs that are found are patched in the next update.&#x20;

### If you find a bug, please join my discord and open a ticket!

## Version 1.0.0

| Number | Bug                                                                                          | Fix                                                                                                                                                                                                                                                                                         |
| ------ | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1      | If a player didn't have permission, it wouldn't properly send them the No Permission Message | Go into all of your shop files and replace `{ShopOptions::NoPerm}` with `{ShopOptions::NoPermission}`                                                                                                                                                                                       |
| 2      | When you opened a Buy Preview of an item in a shop other than Blocks, it wouldn't work       | Go into all of your shop files and replace the line `buyPreview(player, event-block, {ShopAction::%uncolored name of event-inventory%::%index of event-slot%::Cost})` with `buyPreview(player, event-item, {ShopAction::%uncolored name of event-inventory%::%index of event-slot%::Cost})` |
| 3      | You can buy items with a full inventory                                                      | Update script (only simple way)                                                                                                                                                                                                                                                             |

## Version 1.0.1

| Number | Bug                                                                                   | Fix                              |
| ------ | ------------------------------------------------------------------------------------- | -------------------------------- |
| 1      | You can click items in your inventory and it will open the Buy Preview Shop sometimes | See 'Bug #1' Section below       |
| 2      | You couldn't buy things sometimes                                                     | Update script  (only simple way) |

**Bug #1:**\
Replace this code

```
on inventory click:
	if name of event-inventory is "{@Shop Name}":
		if {ShopOptions::CancelClick} is true:
			cancel event
		CustomShop_TestForAction(player, event-item, uncolored name of event-inventory, index of event-slot)
```

with this

```
on inventory click:
	if name of event-inventory is "{@Shop Name}":
		if {ShopOptions::CancelClick} is true:
			cancel event
		if event-inventory is not player's inventory:
			CustomShop_TestForAction(player, event-item, uncolored name of event-inventory, index of event-slot)
```

## Version 1.0.2

| Number | Bug         | Fix |
| ------ | ----------- | --- |
| -      | None yet :) | -   |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://minecraftman1013.gitbook.io/shop-skript/old-shop-skript/basics/bug-fixes.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.
