# v2.0

### 🏠 HomeExtraPlus v2.0 - Cập nhật Hệ thống Mua Slot Nhà

#### 🔧 **Tính năng mới:**

* **📦 Giao diện "Mua thêm nhà"**:
  * Người chơi có thể mở menu để **mua thêm slot nhà** một cách trực quan và dễ dàng.
  * Hiển thị các gói mua theo từng slot hoặc mua full giới hạn.
* **🛒 Gói Mua Slot**:
  * Mỗi gói có thể cấu hình:
    * Vị trí (`slot`) trong GUI
    * Vật phẩm hiển thị (`material`, `name`, `lore`, `custom-model-data`)
    * Giá (`price`) và số slot sẽ tăng (`add`)
  * Khi người chơi mua:
    * Hệ thống tự động kiểm tra số slot hiện có.
    * Cộng thêm quyền `homeextra.limit.X` tương ứng.
    * Tự động **xoá quyền cũ và thêm quyền mới** qua LuckPerms.
    * Trừ tiền bằng Vault.
* **⛔ Giới hạn 14 slot**:
  * Giới hạn tối đa số nhà là **14**.
  * Người chơi không thể mua vượt qua giới hạn này.
* **🌟 Nút "Mua Full"**:
  * Cho phép người chơi mua **ngay toàn bộ 14 slot nhà**.
  * Tính toán phần còn thiếu để cập nhật đúng số slot tối đa.
* **🎨 Hỗ trợ `CustomModelData`**:
  * Có thể tuỳ chỉnh texture của item trong GUI nếu dùng resource pack riêng.

#### 🗂 Cấu hình mới (`buyhome.yml`):

```yaml
title: "&6Mua thêm nhà"

size: 27
packages:
  slot1:
    slot: 11
    price: 10000
    add: 1
    display:
      material: "GOLD_INGOT"
      name: "&6+1 slot nhà"
      lore:
        - "&7Mua thêm 1 slot nhà"
        - "&fGiá: &a10000$"
      custom-model-data: 1

  full:
    slot: 22
    price: 50000
    add: 14
    display:
      material: "NETHER_STAR"
      name: "&cMua Full 14 Slot Nhà"
      lore:
        - "&7Mở khóa toàn bộ slot nhà"
        - "&fGiá: &c50000$"
      custom-model-data: 2
```

***

#### ✅ **Tổng kết:**

Bản cập nhật này tập trung nâng cao trải nghiệm người chơi trong việc **quản lý và mở rộng slot nhà**, đồng thời mang lại sự **tùy biến cao cho admin** thông qua file config. Đây là bước tiến lớn giúp plugin **HomeExtraPlus** trở nên chuyên nghiệp và dễ dùng hơn.\
\
phiên bản này hiện tại không miễn phí.

Tạo ticket trên discord để có thể mua\
Discord: [Kazami Studio/ticket](https://discord.com/channels/1362638278758502420/1376576158837248201)


---

# 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://kazamis.gitbook.io/kazami-studio/homeextra-wiki/homeextraplus-v2.0/version/v2.0.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.
