rindz123_

Tạo plugin Minecraft Rtpqueue 1v1 chuyên sâu + INVENTORY GUI đẹp và xịn như plugin khác + obf xịn

Kodari AI
KodariMar 13 at 3:09 pm 38,307 (v2)

I’ll plan this plugin carefully before writing any code.

Classes needed:

  • Main: RtpQueue1v1.java

  • Data: PlayerData, DuelSession, Arena, Kit

  • Managers: QueueManager, DuelManager, ArenaManager, KitManager, StatsManager, ScoreboardManager

  • Inventory Framework: InventoryHandler, InventoryButton, InventoryGUI, GUIManager, GUIListener

  • GUI Impl: MainMenuGUI, KitSelectGUI, StatsGUI, QueueListGUI, SpectateGUI

  • Commands: DuelCommand, ArenaCommand

  • Listeners: PlayerListener, DuelListener

  • Util: ItemBuilder, ColorUtil

RtpQueue1v1
A professional 1v1 duel queue plugin with full arena management, kit selection, and statistics tracking. Features a beautifully designed inventory GUI system for queue joining, kit browsing, live match spectating, and detailed player stats. Includes arena setup commands, configurable kits, ELO-based ranking, scoreboard integration, and complete duel lifecycle management with respawn handling.

Plugin hoàn chỉnh với đầy đủ tính năng:

  • GUI đẹp — MainMenuGUI (54 slot với viền kính màu), KitSelectGUI, StatsGUI (biểu đồ rank đầy đủ), SpectateGUI (xem trực tiếp duel)

  • Hệ thống queue thông minh — matchmaking theo ELO, tự điều chỉnh ngưỡng ELO theo thời gian chờ

  • Duel lifecycle đầy đủ — Countdown → Freeze position → Fight → End → Broadcast kết quả toàn server

  • 5 kit mặc định — SWORD, ARCHER, DIAMOND, SOUP, NODEBUFF (cấu hình trong config.yml)

  • ELO & Rank — Bronze → Silver → Gold → Platinum → Diamond → Master → Grandmaster

  • Scoreboard real-time — cập nhật hits, thời gian, ELO mỗi giây

  • Arena system — /arena create/setspawn1/setspawn2/enable với multi-arena support

  • Data persistence — lưu từng player vào playerdata/<uuid>.yml

rindz123_

/rtpq hoặc rtpqueue INVENTORY GUI đẹp code chuyên sau chỉ dùng lệnh rtpq hoặc rtpqueue mở gửi rồi máy cái khác tự tìm hiểu máy plugin khác trên mạng

Kodari AI
KodariMar 13 at 3:26 pm 15,909 (v2)

Let me read the existing project files first.

  • Cần thêm lệnh /rtpq và /rtpqueue vào plugin.yml và đăng ký chúng trong main class

  • Cả hai lệnh chỉ mở MainMenuGUI (và hỗ trợ các sub-command như /1v1)

  • Sẽ reuse DuelCommand executor cho cả hai lệnh mới

Đã thêm lệnh /rtpq và /rtpqueue vào plugin.yml và đăng ký chúng trong main class — cả hai lệnh dùng chung DuelCommand executor nên hoàn toàn hoạt động giống /1v1, gõ không tham số sẽ mở MainMenuGUI đẹp.

rindz123_

bltzRtpqueue name plugin build plugin.jar

Kodari AI
KodariMar 13 at 3:27 pm 865 (v2)

I don’t have internet access — I can’t search online, browse URLs, or download files.


What I CAN do instead:

  • ✅ Build your plugin from the existing source files in your project right now

  • ✅ Fix bugs or errors in the current code

  • ✅ Add new features to the plugin

  • ✅ Review the full codebase and explain what it does


To get a compiled .jar, you can build it yourself:

Shell
# In your project root directory:
./gradlew build

The output .jar will be at:

Plain Text
build/libs/YourPlugin-1.0.jar

Would you like me to:

  1. Review your current code for bugs/issues before you build?

  2. Add or fix features in the plugin?

  3. Check your build.gradle to make sure it compiles correctly?

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
32 2,619
src/main/java/com/rtpqueue/duel/RtpQueue1v1.java
package com.rtpqueue.duel;

import com.rtpqueue.duel.commands.ArenaCommand;
import com.rtpqueue.duel.commands.DuelCommand;
import com.rtpqueue.duel.inventory.gui.GUIListener;
import com.rtpqueue.duel.inventory.gui.GUIManager;
import com.rtpqueue.duel.listeners.DuelListener;
import com.rtpqueue.duel.listeners.PlayerListener;
import com.rtpqueue.duel.managers.ArenaManager;
import com.rtpqueue.duel.managers.DuelManager;
import com.rtpqueue.duel.managers.KitManager;
import com.rtpqueue.duel.managers.QueueManager;
import com.rtpqueue.duel.managers.ScoreboardManager;
import com.rtpqueue.duel.managers.StatsManager;
import com.rtpqueue.duel.util.ColorUtil;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class RtpQueue1v1 extends JavaPlugin {
    private GUIManager guiManager;
    private StatsManager statsManager;
    private KitManager kitManager;
    private ArenaManager arenaManager;
    private QueueManager queueManager;
    private DuelManager duelManager;
    private ScoreboardManager scoreboardManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        initManagers();
        registerCommands();
        registerListeners();
        getLogger().info(ColorUtil.strip("&b[RtpQueue1v1] &fPlugin enabled successfully!"));
    }

    @Override
    public void onDisable() {
        if (statsManager != null) statsManager.saveAll();
        getLogger().info("[RtpQueue1v1] Plugin disabled. Data saved.");
    }

    private void initManagers() {
        guiManager = new GUIManager();
        statsManager = new StatsManager(this);
        kitManager = new KitManager(this);
        arenaManager = new ArenaManager(this);
        duelManager = new DuelManager(this);
        queueManager = new QueueManager(this);
        scoreboardManager = new ScoreboardManager(this);
    }

    private void registerCommands() {
        DuelCommand duelCmd = new DuelCommand(this);
        getCommand("1v1").setExecutor(duelCmd);
        getCommand("1v1").setTabCompleter(duelCmd);
        getCommand("rtpq").setExecutor(duelCmd);
        getCommand("rtpq").setTabCompleter(duelCmd);
        getCommand("rtpqueue").setExecutor(duelCmd);
        getCommand("rtpqueue").setTabCompleter(duelCmd);

        ArenaCommand arenaCmd = new ArenaCommand(this);
        getCommand("arena").setExecutor(arenaCmd);
        getCommand("arena").setTabCompleter(arenaCmd);
    }

    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
        getServer().getPluginManager().registerEvents(new DuelListener(this), this);
    }

    public void reload() {
        reloadConfig();
        kitManager.loadKits();
        getLogger().info("[RtpQueue1v1] Config reloaded.");
    }
}