lowpass.dll
📎 1 file 2,663 chars
📄
pasted-code-1775550349245.txt
txt 90 lines
▶
Create a Minecraft Paper/Spigot plugin named "ClassicSMP-TAB".

The plugin should replicate the functionality of the TAB plugin and include a fully customizable tab list, scoreboard system, and LuckPerms group integration.

CORE FEATURES:

1. TAB LIST SYSTEM:
- Custom header and footer (multi-line support)
- Support PlaceholderAPI placeholders
- Animated text support (color transitions, scrolling text)
- Display player information such as:
  - Player name
  - Ping
  - TPS
  - World
  - Balance (Vault)
- RGB / HEX color support

2. LUCKPERMS GROUP INTEGRATION:
- Fully integrate with LuckPerms
- Display group prefixes and suffixes in TAB list
- Sort players based on groups (example: admin > mod > player)
- Use LuckPerms meta:
  - %luckperms_prefix%
  - %luckperms_suffix%
- Automatically update when player's group changes

3. PLAYER NAME FORMATTING:
- Format player names in tab like:
  [PREFIX] PlayerName
- Support team-based sorting using groups
- Allow custom formatting per group

4. SCOREBOARD SYSTEM:
- Sidebar scoreboard (toggleable)
- Fully configurable in a separate file (scoreboard.yml)
- Animated scoreboard title
- Dynamic lines using PlaceholderAPI
- Example lines:
  - Player name
  - Rank (LuckPerms)
  - Balance (Vault)
  - Ping
- Per-world scoreboard support

5. CONFIGURATION SYSTEM:
- Main config.yml
- tab.yml for tab list settings
- scoreboard.yml for scoreboard layout
- groups.yml for group sorting and formatting
- Everything must be editable without coding

6. COMPATIBILITY:
- Minecraft Paper/Spigot 1.20+
- PlaceholderAPI (required)
- Vault (for economy)
- LuckPerms (for permissions and groups)

7. COMMANDS:
- /classictab reload → reload all configs
- /classictab toggle → enable/disable scoreboard for player

8. PERMISSIONS:
- classictab.admin → access to reload command
- classictab.toggle → toggle scoreboard

9. PERFORMANCE:
- Optimized for large servers (100+ players)
- Async updates where possible
- No flickering scoreboard

10. EXTRA FEATURES:
- Per-group tab header/footer
- Per-group scoreboard layouts
- Custom symbols/icons support
- Anti-conflict system (disable other scoreboard plugins automatically)
- Indian-style formatting (₹ currency support)

EXAMPLE BEHAVIOR:

- Admins appear at the top of the tab list with red prefix
- Mods appear below admins
- Players appear at the bottom
- Scoreboard shows:
  Name, Rank, Money, Ping
- Tab header displays:
  "Classic SMP"
- Footer shows TPS and Ping

The plugin should behave almost identical to the TAB plugin but branded and customized specifically for "Classic SMP".
Kodari AI
KodariApr 7 at 8:28 am 16,813 (v2)

I’ll create a comprehensive TAB plugin alternative with full LuckPerms integration, animated scoreboards, and PlaceholderAPI support.

ClassicSMPTab
A comprehensive TAB plugin alternative for Classic SMP featuring fully customizable tab lists, animated scoreboards, LuckPerms group integration, PlaceholderAPI support, and per-group customization. Includes player sorting, RGB color support, Vault economy integration, and optimized async updates for large servers with 100+ players.

All files created successfully! The ClassicSMPTab plugin is now ready with:

✅ Full TAB list system with animated headers/footers, PlaceholderAPI support, and RGB colors ✅ LuckPerms integration with automatic group sorting and prefix/suffix display ✅ Scoreboard system with animated titles, per-world support, and toggleable display ✅ Configuration files (config.yml, tab.yml, scoreboard.yml, groups.yml) for complete customization ✅ Commands (/classictab reload, /classictab toggle) with permissions ✅ Vault economy support with Indian currency formatting (₹) ✅ Optimized async updates for 100+ player servers with no flickering ✅ Per-group customization for headers, footers, and scoreboard layouts

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
20 1,318
src/main/java/com/classicsmp/tab/ClassicSMPTab.java
package com.classicsmp.tab;

import com.classicsmp.tab.command.TabCommand;
import com.classicsmp.tab.listener.LuckPermsListener;
import com.classicsmp.tab.listener.PlayerListener;
import com.classicsmp.tab.manager.*;
import lombok.Getter;
import net.luckperms.api.LuckPerms;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class ClassicSMPTab extends JavaPlugin {
    private ConfigManager configManager;
    private GroupManager groupManager;
    private PlaceholderManager placeholderManager;
    private AnimationManager animationManager;
    private TabManager tabManager;
    private ScoreboardManager scoreboardManager;
    
    @Override
    public void onEnable() {
        if (!checkDependencies()) {
            getLogger().severe("Missing required dependencies! Disabling plugin...");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }
        
        configManager = new ConfigManager(this);
        groupManager = new GroupManager(this);
        placeholderManager = new PlaceholderManager(this);
        animationManager = new AnimationManager(this);
        tabManager = new TabManager(this);
        scoreboardManager = new ScoreboardManager(this);
        
        registerListeners();
        registerCommands();
        
        getLogger().info("ClassicSMPTab has been enabled!");
        getLogger().info("Version: 1.0.0");
        getLogger().info("Author: ClassicSMP");
    }
    
    @Override
    public void onDisable() {
        if (animationManager != null) {
            animationManager.shutdown();
        }
        if (tabManager != null) {
            tabManager.shutdown();
        }
        if (scoreboardManager != null) {
            scoreboardManager.shutdown();
        }
        
        getLogger().info("ClassicSMPTab has been disabled!");
    }
    
    private boolean checkDependencies() {
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") == null) {
            getLogger().severe("PlaceholderAPI not found! This plugin is required.");
            return false;
        }
        
        if (Bukkit.getPluginManager().getPlugin("LuckPerms") == null) {
            getLogger().severe("LuckPerms not found! This plugin is required.");
            return false;
        }
        
        if (Bukkit.getPluginManager().getPlugin("Vault") == null) {
            getLogger().warning("Vault not found! Economy features will be disabled.");
        }
        
        return true;
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
        
        RegisteredServiceProvider<LuckPerms> provider = Bukkit.getServicesManager().getRegistration(LuckPerms.class);
        if (provider != null) {
            new LuckPermsListener(this, provider.getProvider());
        }
    }
    
    private void registerCommands() {
        TabCommand tabCommand = new TabCommand(this);
        PluginCommand command = getCommand("classictab");
        if (command != null) {
            command.setExecutor(tabCommand);
            command.setTabCompleter(tabCommand);
        }
    }
    
    public void reload() {
        configManager.reload();
        groupManager.loadGroups();
        animationManager.loadAnimations();
        animationManager.startUpdateTask();
        tabManager.startUpdateTask();
        scoreboardManager.startUpdateTask();
        
        tabManager.updateAllTabs();
    }
}