qbqmbiii

can you create me a plugin that goes on proxy and backend servers to see how many players are on each server ?

Kodari AI
KodariNov 23 at 10:19 am 5,443 (v2)

I’ll create a network-wide player tracking plugin that works on both proxy and backend servers.

NetworkPlayerTracker
A dual-component plugin system for proxy and backend servers that tracks and displays real-time player counts across the entire network. The proxy component monitors all connected servers while backend servers report their player counts. Features include live player count updates, server status monitoring, and admin commands to view detailed statistics across the network. Supports both BungeeCord and Velocity proxies with Spigot/Paper backends.

Created a complete network player tracking plugin with:

Proxy Component (BungeeCord & Velocity support):

  • Real-time tracking of all servers

  • /playercount command showing total and per-server counts

  • Color-coded status indicators (green/red)

Backend Component (Spigot/Paper):

  • Reports player counts to proxy every 5 seconds

  • /localplayers command for server-specific info

  • Configurable server names

Build with ./gradlew build - proxy jar goes on BungeeCord/Velocity, backend jar goes on each Spigot/Paper server.

qbqmbiii

can you also add placeholders like %survival_total% and %lifesteal_total% and %all_total_combined%

Kodari AI
KodariNov 23 at 10:21 am 5,532 (v2)

I’ll add PlaceholderAPI support to the backend with the requested placeholders:

  • %survival_total% - players on survival server

  • %lifesteal_total% - players on lifesteal server

  • %all_total_combined% - total players across all servers

Added PlaceholderAPI support with placeholders:

  • %networktracker_survival_total% - players on survival server

  • %networktracker_lifesteal_total% - players on lifesteal server

  • %networktracker_all_total_combined% - total players across all tracked servers

The proxy now broadcasts network-wide player counts to all backend servers every 5 seconds, and the backend receives these updates to populate the placeholders.

qbqmbiii

make it so it doesnt track NPC's

Kodari AI
KodariNov 23 at 10:25 am 4,065 (v2)

I’ll check the current implementation to add NPC filtering.

I’ll add NPC filtering to the backend plugin to exclude NPCs from player counts:

Updated the backend to filter out NPCs using the standard NPC metadata that most NPC plugins (Citizens, ZNPCs, etc.) use. Real players are now counted by excluding any entity with the “NPC” metadata tag.

qbqmbiii

can you create me a plugin like Nlogin Premium but make it so Cracked players eagler players and premium players can login from the same set ip as play.valoriamc.fun but make it that only Premium players can log in automatically and skip registration

Kodari AI
KodariNov 23 at 10:42 am 10,662 (v2)

I’ll create a premium authentication plugin that allows all player types to join but only auto-authenticates premium players.

Plan:

  • Create premium authentication plugin with auto-login for premium players

  • Implement Mojang API verification for premium status

  • Add password-based authentication for cracked/Eagler players

  • Store player data in SQLite database

  • Prevent movement/commands until authenticated

Plugin created successfully!

Premium authentication system features:

  • Premium players auto-login via Mojang API verification

  • Cracked/Eagler players use password authentication

  • SQLite database for player data storage

  • Movement/command/chat protection until authenticated

  • Commands: /login, /register, /changepassword

  • Fully configurable messages with color codes

qbqmbiii

no can you call it ValoriaAuth and not another plugin name

Kodari can make mistakes. Review important code before using.
Files
backend
proxy
src
build.gradle
README.md
settings.gradle
Code
26 1,272
src/main/java/com/valoriamc/premiumauth/PremiumAuth.java
package com.valoriamc.premiumauth;

import com.valoriamc.premiumauth.commands.ChangePasswordCommand;
import com.valoriamc.premiumauth.commands.LoginCommand;
import com.valoriamc.premiumauth.commands.RegisterCommand;
import com.valoriamc.premiumauth.database.DatabaseManager;
import com.valoriamc.premiumauth.listeners.PlayerConnectionListener;
import com.valoriamc.premiumauth.listeners.PlayerProtectionListener;
import com.valoriamc.premiumauth.managers.AuthManager;
import com.valoriamc.premiumauth.managers.SessionManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class PremiumAuth extends JavaPlugin {
    
    @Getter
    private static PremiumAuth instance;
    
    @Getter
    private DatabaseManager databaseManager;
    
    @Getter
    private AuthManager authManager;
    
    @Getter
    private SessionManager sessionManager;
    
    @Override
    public void onEnable() {
        instance = this;
        
        saveDefaultConfig();
        
        this.databaseManager = new DatabaseManager(this);
        this.databaseManager.initialize();
        
        this.sessionManager = new SessionManager();
        this.authManager = new AuthManager(this);
        
        getServer().getPluginManager().registerEvents(new PlayerConnectionListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerProtectionListener(this), this);
        
        getCommand("login").setExecutor(new LoginCommand(this));
        getCommand("register").setExecutor(new RegisterCommand(this));
        getCommand("changepassword").setExecutor(new ChangePasswordCommand(this));
        
        getLogger().info("PremiumAuth has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (databaseManager != null) {
            databaseManager.close();
        }
        getLogger().info("PremiumAuth has been disabled!");
    }
}