N

File jar đâu rồi

Kodari AI
KodariJul 19 at 4:55 pm 1

Chưa có JAR nào được build cả — chỉ có source code thôi. Để tôi build nó

Maven không được cài đặt trên môi trường này, nên không thể chạy mvn package để build JAR.

Cấu trúc hiện tại:

  • /home/user/pom.xml — cấu hình Maven

  • /home/user/src/ — source code

  • Không có thư mục target/ — chưa từng được build

Để build, bạn cần copy toàn bộ thư mục này về máy local có Maven, rồi chạy:

Shell
mvn clean package

JAR sẽ ở

target/RTPQueue-1.0.0.jar.

Bạn có muốn mình check nội dung source code để đảm bảo project sẵn sàng build không?

N

Có như https://mcmodels.net/vendors/148/spectra-studios?srsltid=AfmBOoo8oSSzMVG9YRw82xvSthEiETi3Tn72GTbeszC0qkdgnsnl3jMi&page=2 không vậy

Kodari AI
KodariJul 19 at 4:56 pm 1

I’ll create a random teleport queue plugin with Spectra Studio-style custom GUI.

RTPQueuePlugin
A random teleport queue management plugin with custom Spectra Studio-inspired GUI. Players can queue for random teleportation, view queue status and positions, and manage their queue entry. Features include configurable cooldowns, permission-based priority, animated GUI with player heads, auto-refresh, and safe location detection. Commands include /rtpqueue and /rtpq.

Let me design the full architecture first, then create every file.

Architecture:

  • RTPQueuePlugin — main class, boots managers/commands/tasks

  • ConfigManager — loads config.yml (delay, cooldown, radius, world)

  • QueueManager — queue logic (add/remove/process/cooldown)

  • RTPQueueGUI — Spectra Studio-style GUI (54 slots, purple gradient, player heads, action buttons)

  • RTPQueueCommand — /rtpqueue and /rtpq command handler

  • TeleportTask — periodic task that processes the queue

  • MessageUtil — color & message formatting

  • ItemBuilder — item/head creation with display names & lore

Creating all files now:

I’ll create a premium RTP Queue plugin with Spectra Studio-style custom GUI.

RTPQueue
Một plugin random teleport hàng đợi với giao diện GUI tùy chỉnh phong cách Spectra Studio. Người chơi xếp hàng chờ được dịch chuyển ngẫu nhiên, theo thứ tự ưu tiên. Hỗ trợ cooldown, cấu hình bán kính và thế giới, GUI gradient tím với đầu người chơi, nút làm mới và rời hàng đợi. Xử lý tự động qua task scheduler.
N

Có như https://mcmodels.net/vendors/148/spectra-studios?srsltid=AfmBOoo8oSSzMVG9YRw82xvSthEiETi3Tn72GTbeszC0qkdgnsnl3jMi&page=2 không vậy

Kodari AI
KodariJul 19 at 4:57 pm 1

Không. Plugin hiện tại của bạn đơn giản hơn nhiều so với sản phẩm của Spectra Studios.

Spectra Studios “Animated Random teleport RTP GUI” (~$20–$33):

  • GUI có animation (hiệu ứng chuyển động)

  • Tích hợp Nexo (custom items/furniture)

  • GUI chuyên nghiệp, nhiều hiệu ứng visual

  • Đã bán 44+ đánh giá rất tích cực

Plugin RTPQueue hiện tại của bạn:

  • GUI tĩnh (static inventory, 54 slots, không animation)

  • Chỉ có chức năng cơ bản: queue FIFO, teleport random, cooldown

  • Không có Nexo, không animation

  • Lưu trữ in-memory (mất data khi restart)

  • Code đơn giản, chưa được polish

Tóm lại: Cùng concept RTP queue + GUI, nhưng bản hiện tại là phiên bản thô sơ, thiếu animation, thiếu tích hợp Nexo, và chưa có các hiệu ứng visual như bên Spectra Studios.

Bạn có muốn mình nâng cấp GUI lên có animation, thêm hiệu ứng, hoặc tích hợp Nexo/Oraxen/ItemsAdder để bắt kịp không?

N

Tao có nexo mà tùy làm sao siêu đẹp như người ta là được

Kodari AI
KodariJul 19 at 5:00 pm 2

Now let me fetch the Nexo API documentation since you have it on your server.

Now I have the full Nexo API docs. Let me plan the upgrade:

Plan:

  1. pom.xml + plugin.yml — add Nexo repository/dependency/softdepend

  2. Nexo items config — nexo-items/rtpqueue_items.yml (custom GUI items)

  3. NexoHook.java — get Nexo items with fallback to vanilla

  4. GUIAnimator.java — animated gradient border cycling every 10 ticks

  5. RTPQueueGUI.java — complete rewrite: animated gradient, sound effects, Nexo items

  6. RTPQueuePlugin.java — register animator, handle inventory close

  7. config.yml — more options

Let me start

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
11 843
src/main/java/com/rtpqueue/RTPQueuePlugin.java
package com.rtpqueue;

import com.rtpqueue.command.RTPQueueCommand;
import com.rtpqueue.gui.RTPQueueGUI;
import com.rtpqueue.manager.ConfigManager;
import com.rtpqueue.manager.QueueManager;
import com.rtpqueue.task.TeleportTask;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.plugin.java.JavaPlugin;

public class RTPQueuePlugin extends JavaPlugin implements Listener {

    private static RTPQueuePlugin instance;
    private ConfigManager configManager;
    private QueueManager queueManager;
    private TeleportTask teleportTask;

    @Override
    public void onEnable() {
        instance = this;

        saveDefaultConfig();

        this.configManager = new ConfigManager(this);
        this.queueManager = new QueueManager(this);
        this.teleportTask = new TeleportTask(this);

        // Register command
        getCommand("rtpqueue").setExecutor(new RTPQueueCommand(this));

        // Register click listener
        Bukkit.getPluginManager().registerEvents(this, this);

        // Start teleport task
        int delayTicks = configManager.getQueueDelay() * 20;
        getServer().getScheduler().runTaskTimer(this, teleportTask, delayTicks, delayTicks);

        getLogger().info("RTPQueue has been enabled!");
    }

    @Override
    public void onDisable() {
        if (queueManager != null) {
            queueManager.clear();
        }
        getLogger().info("RTPQueue has been disabled!");
    }

    @EventHandler
    public void onInventoryClick(InventoryClickEvent event) {
        RTPQueueGUI.handleClick(event);
    }

    public static RTPQueuePlugin getInstance() {
        return instance;
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public QueueManager getQueueManager() {
        return queueManager;
    }
}