priyanshu_2010
📎 1 file 6,495 chars
📄
pasted-code-1790253425052.txt
txt 424 lines
▶
ZENITH MC PERSONAL SCOREBOARD

Add a personal right-side scoreboard that works for both:

Java Edition players
Bedrock Edition players through GeyserMC + Floodgate

The scoreboard must use the standard Minecraft scoreboard system and must NOT contain any rankings or leaderboards.

Scoreboard Header

The very top of the scoreboard must display:

ZENITH MC

with a fancy/bold Minecraft-supported style.

The colors must be:

ZENITH = RED
MC     = BLUE

Use a bold/fancy style such as:

&c&lZENITH &9&lMC

Do not use a player ranking, leaderboard, Top 10, or other ranking information on this scoreboard.

Scoreboard Layout

The scoreboard should display only the current player's personal information.

Example:

&c&lZENITH &9&lMC

Username
%player_name%

$ Money
$%vault_eco_balance%

◆ Shards
%shards%

⌚ Playtime
%playtime%

⚿ Keyall
%keyall%

A clean example in-game:

       ZENITH MC

Username
Steve

$ Money
$125,000

◆ Shards
8,500

⌚ Playtime
12h 45m

⚿ Keyall
59m 42s
Required Information

The scoreboard MUST show these five pieces of personal information:

Username
Money
Shards
Playtime
Keyall countdown
Username

Display the current player's username.

Example:

Username
Steve

Use the actual Bukkit/Paper player name.

Money

Display the player's current Vault balance.

Example:

$ Money
$125,000

The $ symbol must be visible.

Use Vault-compatible economy.

Do not display another player's balance.

Shards

Display the current player's shards.

Example:

◆ Shards
8,500

Use the server's configured shard source.

If PlaceholderAPI is being used, support:

%shards%

Make the shard placeholder configurable.

Playtime

Display the current player's total playtime.

Example:

⌚ Playtime
12h 45m

Format playtime in a readable way.

Examples:

5m
1h 24m
12h 45m
3d 8h

Do not query the database every second.

Cache/update the value efficiently.

Keyall

Display the countdown until the next Keyall.

Example:

⚿ Keyall
59m 42s

The default Keyall interval must be:

keyall:
  enabled: true
  interval: 1h

If the Keyall system is handled by another plugin, DO NOT give rewards from this scoreboard/plugin.

The scoreboard only displays the countdown.

When the countdown reaches zero, correctly reset it for the next configured interval.

Example:

⚿ Keyall
1h 00m 00s

then:

⚿ Keyall
59m 59s

and so on.

NO PLAYER RANKING

This is extremely important.

The normal Zenith MC scoreboard must NEVER show:

Money rank
Shard rank
Kill rank
Death rank
Top players
Leaderboards
Player rankings
#1
#2
#3
Any Top 10 information

For example, this must NOT appear:

#1 Steve
$500,000

#2 Alex
$450,000

The scoreboard is strictly personal.

Only the current player's information should appear.

If rankings are implemented elsewhere in the plugin, they must only appear inside the /stats GUI.

Stats GUI Separation

The /stats GUI may contain:

Top 10 Money
Top 10 Shards
Top 10 Kills
Top 10 Deaths

But the normal scoreboard must never display those rankings.

The two systems must remain completely separate.

Scoreboard Updates

Update the scoreboard efficiently.

Do NOT create a separate repeating task for every player.

Use a centralized scheduler.

Do not perform database queries every tick.

Suggested update behavior:

Username: update when player joins/name changes
Money: update periodically or when economy balance changes
Shards: update periodically or when shards change
Playtime: update periodically
Keyall: update once per second if needed
Scoreboard structure: cache it

Avoid unnecessary scoreboard packet updates.

CombatLog Integration

If CombatLog has:

combatlog:
  scoreboard-line: false

then the normal scoreboard should remain unchanged during combat.

If:

combatlog:
  scoreboard-line: true

then add a combat line without replacing the Zenith MC scoreboard.

Example:

ZENITH MC

Username
Steve

$ Money
$125,000

◆ Shards
8,500

⌚ Playtime
12h 45m

⚿ Keyall
59m 42s

⚔ Combat
12s

When combat ends, immediately remove the Combat line.

Do NOT replace the entire scoreboard with a CombatLog scoreboard.

GeyserMC + Floodgate

The scoreboard MUST work for Bedrock players connected through:

Bedrock
   ↓
GeyserMC
   ↓
Floodgate
   ↓
Paper 1.21.11

Bedrock players must see the same personal scoreboard information as Java players.

The scoreboard must not rely on:

Java client mods
Resource packs
Bedrock addons
Custom clients

Use standard Minecraft scoreboard functionality supported by Geyser.

Bedrock Formatting

Make sure the scoreboard formatting is compatible with Geyser.

The following must render correctly where supported:

&c&lZENITH
&9&lMC
$
◆
⌚
⚿

If a particular Unicode symbol does not render correctly on a Bedrock client, provide configurable fallback symbols.

Example:

scoreboard:
  symbols:
    money: "$"
    shards: "◆"
    playtime: "⌚"
    keyall: "⚿"
    combat: "⚔"

Allow administrators to change these symbols without modifying Java code.

Configuration

Create/configure:

scoreboard:
  enabled: true

  title: "&c&lZENITH &9&lMC"

  update-interval: 20

  lines:
    username:
      enabled: true
      label: "Username"
    money:
      enabled: true
      label: "$ Money"
    shards:
      enabled: true
      label: "◆ Shards"
    playtime:
      enabled: true
      label: "⌚ Playtime"
    keyall:
      enabled: true
      label: "⚿ Keyall"

  symbols:
    money: "$"
    shards: "◆"
    playtime: "⌚"
    keyall: "⚿"
    combat: "⚔"

  combatlog:
    scoreboard-line: false
    label: "⚔ Combat"
Player Settings Integration

The /settings GUI must contain:

Scoreboard
Currently: ON
Click to disable.

If the player disables their scoreboard:

scoreboard = OFF

remove their personal scoreboard.

If they enable it again:

scoreboard = ON

restore the Zenith MC scoreboard immediately.

The setting must be stored permanently using the player's UUID.

Final Scoreboard Requirement

The final scoreboard must look conceptually like:

╔══════════════════╗
║ ZENITH MC        ║
║                  ║
║ Username         ║
║ Steve            ║
║                  ║
║ $ Money          ║
║ $125,000         ║
║                  ║
║ ◆ Shards         ║
║ 8,500            ║
║                  ║
║ ⌚ Playtime       ║
║ 12h 45m          ║
║                  ║
║ ⚿ Keyall         ║
║ 59m 42s          ║
╚══════════════════╝

ZENITH must be red and bold.

MC must be blue and bold.

There must be absolutely NO player rankings on this scoreboard.

It must work for both Java and Bedrock players through GeyserMC + Floodgate.
Kodari AI
KodariSep 24 at 12:41 pm 3
PersonalScoreboard
A Bukkit/Paper plugin that displays a personal right-side scoreboard for both Java and Bedrock (GeyserMC+Floodgate) players. Shows username, Vault money, shards, playtime, and Keyall countdown using standard scoreboard systems. Features configurable symbols, centralized scheduler, per-player toggle stored by UUID, optional CombatLog line, and strict separation from ranking systems. No leaderboards or player rankings appear on the scoreboard.
  1. Create the Paper plugin, configuration, and standard personal scoreboard.

  2. Add cached personal stats, PlaceholderAPI/Vault support, and a persistent Keyall countdown.

  3. Add the optional combat line and persistent /settings scoreboard toggle.

Created the Zenith personal scoreboard plugin with a personal-only sidebar, Vault balance, configurable PlaceholderAPI shard value, formatted playtime, and a persistent Keyall countdown. It uses one centralized updater and includes no rankings or leaderboard data.

Added /settings with a UUID-persistent scoreboard toggle, plus an optional combat countdown line that does not replace the main scoreboard. Keyall is display-only; this plugin does not grant rewards.

The build targets Paper 1.21.11. I did not run a build or compile check.

priyanshu_2010

make it attractive like this just check score board there attractive like that

1 image attached
Kodari AI
KodariSep 24 at 12:48 pm 1
  1. Replace the tall label/value blocks with compact, color-accented rows like the example.

  2. Keep the ZENITH MC header, personal-only fields, and configurable labels/symbols.

Updated the scoreboard to use compact, colorful single-line entries with accent-colored labels and values, matching the example’s cleaner style. The ZENITH MC header and personal-only fields remain; no rankings were added.

priyanshu_2010

new file

Kodari AI
KodariSep 24 at 12:50 pm 1

Do you mean you want the attractive scoreboard implemented in a separate new Java file, wired into the plugin, instead of changing the existing scoreboard manager?

priyanshu_2010

just update it and tell me how o download upd file

Kodari AI
KodariSep 24 at 12:50 pm 1

No new file was created—the existing scoreboard was updated. Download src/main/java/com/zenithmc/personalboard/PersonalScoreboardManager.java using its updated-file pill in the previous response. The config changes are in src/main/resources/config.yml.

priyanshu_2010

make zenith cherry red and space between username money shardplaytime andkey all make it vertivally little long and horizontyly less

Kodari AI
KodariSep 24 at 12:59 pm 1

Updated the scoreboard with a cherry-red ZENITH header (#DE3163) and a narrower, taller layout: each personal stat now has its own label and value rows, with spacing between sections.

Download the updated PersonalScoreboardManager.java and config.yml from the file pills, then rebuild and deploy the plugin.

priyanshu_2010

keep the money and the amount in the same line by increasing the horizontal length but it should look even

Kodari AI
KodariSep 24 at 1:05 pm 1
  1. Put the money label and balance together on one scoreboard row.

  2. Keep the other sections vertically spaced as they are, with a balanced inline separator.

The money label and balance now share one row—for example, $ Money » $125,000—while the other scoreboard sections stay vertically spaced. Updated files: PersonalScoreboardManager.java and config.yml.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 675
src/main/java/com/zenithmc/personalboard/ZenithPersonalScoreboardPlugin.java
package com.zenithmc.personalboard;

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.projectiles.ProjectileSource;
import org.bukkit.entity.Projectile;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;

public final class ZenithPersonalScoreboardPlugin extends JavaPlugin implements Listener, CommandExecutor {
    private PersonalScoreboardManager scoreboardManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        PlayerDataStore dataStore = new PlayerDataStore(this);
        scoreboardManager = new PersonalScoreboardManager(this, dataStore);
        Bukkit.getPluginManager().registerEvents(this, this);
        if (getCommand("settings") != null) {
            getCommand("settings").setExecutor(this);
        }
        scoreboardManager.start();
    }

    @Override
    public void onDisable() {
        if (scoreboardManager != null) {
            scoreboardManager.stop();
        }
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (!(sender instanceof Player player)) {
            sender.sendMessage("This command can only be used by a player.");
            return true;
        }
        new SettingsMenu(scoreboardManager).open(player);
        return true;
    }

    @EventHandler
    public void onJoin(PlayerJoinEvent event) {
        scoreboardManager.refreshPlayer(event.getPlayer());
    }

    @EventHandler
    public void onQuit(PlayerQuitEvent event) {
        scoreboardManager.removePlayer(event.getPlayer());
    }

    @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
    public void onCombatDamage(EntityDamageByEntityEvent event) {
        if (!(event.getEntity() instanceof Player victim)) {
            return;
        }
        Player attacker = null;
        if (event.getDamager() instanceof Player player) {
            attacker = player;
        } else if (event.getDamager() instanceof Projectile projectile) {
            ProjectileSource source = projectile.getShooter();
            if (source instanceof Player player) {
                attacker = player;
            }
        }
        if (attacker != null && attacker != victim) {
            scoreboardManager.tagCombat(attacker);
            scoreboardManager.tagCombat(victim);
        }
    }

    @EventHandler
    public void onSettingsClick(InventoryClickEvent event) {
        if (!(event.getView().getTopInventory().getHolder() instanceof SettingsMenu menu)) {
            return;
        }
        event.setCancelled(true);
        if (event.getClickedInventory() == event.getView().getTopInventory() && event.getRawSlot() == 13
                && event.getWhoClicked() instanceof Player player) {
            menu.getScoreboardManager().toggle(player);
            menu.refresh(player);
        }
    }
}