pythonguylol

Develop a custom tablist plugin for the Johnny SMP server that replaces the default tablist with a visually enhanced version displaying the server name, online player count, and TPS (ticks per second). Include options for color customization, dynamic updates, and support for player-specific information such as ranks or status effects to enhance the player experience.

Kodari AI
KodariJan 28 at 6:35 am 9,431 (v2)

I’ll create a custom tablist plugin for the Johnny SMP server with dynamic updates, TPS monitoring, and customization options.

JohnnySMPTablist
A feature-rich custom tablist plugin for the Johnny SMP server. Displays server branding, real-time player count, and TPS monitoring in an enhanced tablist format. Features include customizable colors, dynamic updates, player rank display, status effect indicators, and full admin configuration. Supports both header and footer customization with placeholder support for personalized player information.

Perfect! I’ve created a comprehensive custom tablist plugin for the Johnny SMP server. Here’s what has been implemented:

Core Features:

  • ✅ Custom header/footer with multiple configurable lines

  • ✅ Real-time TPS monitoring with color-coded status (green/yellow/orange/red)

  • ✅ Online player count display

  • ✅ Dynamic update system (configurable interval)

  • ✅ Player rank display with permission-based detection

  • ✅ Status effect indicators showing active potion effects

  • ✅ Ping display for individual players

  • ✅ Full color customization including hex color support

Technical Highlights:

  • Uses Lombok for clean code

  • TPS tracker with 10-tick rolling average for accuracy

  • PlaceholderAPI integration for enhanced placeholders

  • Efficient update task system

  • NMS reflection for ping calculation (cross-version compatible)

Admin Commands:

  • /tablist reload - Reload configuration

  • /tablist toggle - Enable/disable tablist

  • /tablist update - Force immediate update

  • /tablist info - View plugin stats and TPS

Customization: All colors, formats, ranks, and update intervals are fully configurable in config.yml. The plugin supports both legacy color codes (&a, &c) and modern hex colors (&#FF5733).

Ready to compile and deploy!

pythonguylol

make the default tablist for it include the server name which is Johnny SMP, and make it look better

Kodari AI
KodariJan 28 at 6:36 am 3,044 (v2)

I’ll update the config.yml to make the default tablist look better with a more prominent “Johnny SMP” branding and improved visual design.

Updated the tablist with:

  • Prominent “JOHNNY SMP” branding in gold and yellow

  • 4-line header and footer for better visual balance

  • TPS moved to header for quick server health visibility

  • Cleaner layout with decorative borders

  • Website displayed in bold for emphasis

pythonguylol

The compilation failed with this error:

code
Validation failed for compilation: Compilation failed with 2 error(s):

ERROR in src/main/java/com/johnnysmp/tablist/managers/TablistManager.java at line 124: cannot find symbol
        double tps = plugin.getTpsTracker().getTPS();
                                           ^
  symbol: method getTPS()
  location: class TPSTracker

ERROR in src/main/java/com/johnnysmp/tablist/commands/TablistCommand.java at line 100: cannot find symbol
        double tps = plugin.getTpsTracker().getTPS();
                                           ^
  symbol: method getTPS()
  location: class TPSTracker


=== COMPILATION ERROR ANALYSIS ===

MISSING METHODS:
  - getTPS()
ACTION: Check method names and signatures

FILES TO INVESTIGATE:
  - src/main/java/com/johnnysmp/tablist/managers/TablistManager.java
  - src/main/java/com/johnnysmp/tablist/commands/TablistCommand.java
 exceeds maximum 

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariJan 28 at 6:37 am 8,481 (v2)

I’ll analyze the error and read the relevant files to fix the method name mismatch.

I can see the issue. The TPSTracker class has a field tps with a Lombok @Getter annotation, which generates a getTps() method (lowercase ‘s’), but the code is calling getTPS() (uppercase ‘PS’). I need to fix the method calls to match the generated getter name.

Fixed the compilation errors by changing getTPS() to getTps() in both files to match the Lombok-generated getter method name.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
Code
10 690
src/main/java/com/johnnysmp/tablist/JohnnySMPTablist.java
package com.johnnysmp.tablist;

import com.johnnysmp.tablist.commands.TablistCommand;
import com.johnnysmp.tablist.listeners.PlayerListener;
import com.johnnysmp.tablist.managers.TablistManager;
import com.johnnysmp.tablist.utils.TPSTracker;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class JohnnySMPTablist extends JavaPlugin {
    
    private TablistManager tablistManager;
    private TPSTracker tpsTracker;
    private boolean placeholderAPIEnabled;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.placeholderAPIEnabled = Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null;
        if (placeholderAPIEnabled) {
            getLogger().info("PlaceholderAPI found! Enhanced placeholder support enabled.");
        }
        
        this.tpsTracker = new TPSTracker(this);
        this.tablistManager = new TablistManager(this);
        
        registerCommands();
        registerListeners();
        
        tablistManager.startUpdateTask();
        
        getLogger().info("JohnnySMP Tablist has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (tablistManager != null) {
            tablistManager.stopUpdateTask();
        }
        
        getLogger().info("JohnnySMP Tablist has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("tablist").setExecutor(new TablistCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
    }
    
    public void reload() {
        reloadConfig();
        if (tablistManager != null) {
            tablistManager.stopUpdateTask();
            tablistManager.startUpdateTask();
            tablistManager.updateAll();
        }
    }
}