# 🔑Give Item Method

You can change give item method at `config.yml` file with below content:

```yaml
give-item:
  # Support value: BUKKIT, SMART
  # SMART will cost more server performance but will follow the vanilla max stack to give player item, also support check full.
  give-method: BUKKIT
  # Only support SMART give method.
  check-full: false
```

Here are 2 give item method in plugin.

## BUKKIT

The most stable way to give player item, but it will has problem when you buy more than the max stack amount of the item in once.

For example, you buy x64 ender peral, plugin will stack them in one slot which is not correct.

In this picture, the first slot shows you the problem.

<figure><img src="/files/0PI33FZCLIZZ1Ye9nNIC" alt=""><figcaption></figcaption></figure>

## SMART - Early Alpha

Smart method is provided by UltimateShop self, it will follow the vanilla max stack amount, for the same example, in this method, the item will be split into 4 stacks because the max stack limit for the Ender Pearl is 16 instead of 64. Also, this method support check inventory will full after buy.

This method will cost extra plugin performance, be careful to use if you are running large server and have much online players.

<figure><img src="/files/cvF7G5fETeM6eawqWjMR" alt=""><figcaption></figcaption></figure>

It is very difficult to attempt to restore the vanilla mechanism without contacting NMS, so this method may have a lot of problems and is still under testing.


---

# 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://ultimateshop.superiormc.cn/features/give-item-method.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.
