sunnydewdylan

Làm plugin ZenaRTPQ đầy đủ tính năng có INVENTORY GUI hud,… xịn và màu chủ đạo là &#55B3FF

Kodari AI
KodariMar 16 at 9:01 am 25,191 (v2)

I’ll create a full-featured Random Teleport Queue plugin with inventory GUIs, HUD display, and the #55B3FF color theme.

ZenaRTPQ
Advanced random teleportation system with queue management, interactive inventory GUIs, real-time HUD displays, teleport history tracking, warmup timers, cooldown system, safe location detection, economy integration, particle effects, and comprehensive statistics. Features include customizable boundaries, biome filtering, teleport queue system, and admin controls with a sleek cyan-blue interface theme.

Perfect! I’ve created ZenaRTPQ - a comprehensive Random Teleport Queue plugin with:

Core Features:

  • Advanced RTP System with safe location detection, warmup timers, cooldowns, and economy integration

  • Interactive GUI System with 3 beautiful menus (Main, History, Settings) using the #55B3FF color theme

  • Real-time HUD showing cooldown/warmup status via action bar

  • Teleport History tracking last 10 locations per player

  • Smart Safety Checks avoiding lava, water, fire, unsafe blocks with configurable radius

  • Warmup System with movement/damage cancellation

  • Vault Economy support with configurable costs

  • Particle & Sound Effects on teleportation

  • Comprehensive Statistics tracking total teleports per player

  • Admin Commands for reload, stats viewing, and data reset

  • Configurable Boundaries for X/Y/Z limits

Commands:

  • /rtp [player] - Teleport yourself or others

  • /rtpq - Open the sleek GUI menu

  • /rtpadmin <reload|stats|reset> - Admin controls

GUIs:

  1. Main Menu - Quick RTP, History access, Settings

  2. History Menu - View last 10 teleport locations with coordinates

  3. Settings Menu - Display all plugin settings and personal stats

All with the cyan-blue (#55B3FF) color theme throughout!

sunnydewdylan

Việt hoá plugin và thêm chú thích cho config

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
22 1,577
src/main/java/com/zena/rtpq/ZenaRTPQ.java
package com.zena.rtpq;

import com.zena.rtpq.command.RTPAdminCommand;
import com.zena.rtpq.command.RTPCommand;
import com.zena.rtpq.command.RTPQCommand;
import com.zena.rtpq.inventory.gui.GUIListener;
import com.zena.rtpq.inventory.gui.GUIManager;
import com.zena.rtpq.listener.TeleportListener;
import com.zena.rtpq.manager.DataManager;
import com.zena.rtpq.manager.HUDManager;
import com.zena.rtpq.manager.RTPManager;
import lombok.Getter;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class ZenaRTPQ extends JavaPlugin {
    
    private RTPManager rtpManager;
    private DataManager dataManager;
    private GUIManager guiManager;
    private HUDManager hudManager;
    private Economy economy;
    private boolean economyEnabled = false;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        if (setupEconomy()) {
            getLogger().info("Vault economy hooked successfully!");
            economyEnabled = true;
        } else {
            getLogger().warning("Vault not found - economy features disabled.");
        }
        
        this.dataManager = new DataManager(this);
        this.rtpManager = new RTPManager(this);
        this.guiManager = new GUIManager();
        this.hudManager = new HUDManager(this);
        
        registerCommands();
        registerListeners();
        
        hudManager.startHUDTask();
        
        getLogger().info("ZenaRTPQ has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (hudManager != null) {
            hudManager.stopHUDTask();
        }
        
        if (dataManager != null) {
            dataManager.saveAllData();
        }
        
        getLogger().info("ZenaRTPQ has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("rtp").setExecutor(new RTPCommand(this));
        getCommand("rtpq").setExecutor(new RTPQCommand(this));
        getCommand("rtpadmin").setExecutor(new RTPAdminCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new TeleportListener(this), this);
    }
    
    private boolean setupEconomy() {
        if (Bukkit.getPluginManager().getPlugin("Vault") == null) {
            return false;
        }
        RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);
        if (rsp == null) {
            return false;
        }
        economy = rsp.getProvider();
        return economy != null;
    }
    
    public void reloadPlugin() {
        reloadConfig();
        dataManager.saveAllData();
        getLogger().info("Configuration reloaded!");
    }
}