chilltusharyt_og

he Overhead Text: When a player walks around, other players will see their name formatted like this: PlayerName [50 ⚡]. The suffix automatically updates whenever they complete an advancement or log back into the server.

Advancement Blocker: Inside the code, I added a filter recipes/. This ensures that players only get tokens for real in-game achievements (like going to the Nether, killing the Dragon, or mining diamonds) and not just for unlocking random crafting recipes And 📛 Plugin Details Plugin Name: VoltTokens

Token Name: Volt Tokens (Abbreviation: $VOLT)

💎 Key Features:

Starting Balance: New players receive 1 Volt Tokens upon their first join.

He Need To Do Some Custom Advancment To Get TokensEvery time a player joins the server, they get 1 Volt Token.

The Advancement Challenge: To get all the tokens or max out their balance, players must complete Minecraft advancements (you can configure how many tokens each advancement gives).

Overhead Display: The player's current token balance will be displayed directly above their Minecraft head (as a suffix/tag) so everyone on the server can see it.

Kodari AI
KodariJun 12 at 8:50 am 45

I’ll create a token system plugin that rewards players for completing advancements and displays their balance above their head.

VoltTokens
A token economy system where players earn Volt Tokens by completing Minecraft advancements. Features include automatic token rewards for achievements (filtering out recipe unlocks), persistent token storage, join bonuses, and real-time overhead display showing each player's token balance as a name tag suffix. Fully configurable advancement rewards with visual ⚡ indicator.
chilltusharyt_og

The compilation failed with this error:

code
Compilation failed with 11 error(s):

ERROR in src/main/java/com/volttokens/VoltTokens.java at line 3: package com.volttokens.listeners does not exist
import com.volttokens.listeners.AdvancementListener;
                               ^

ERROR in src/main/java/com/volttokens/VoltTokens.java at line 4: package com.volttokens.listeners does not exist
import com.volttokens.listeners.JoinListener;
                               ^

ERROR in src/main/java/com/volttokens/VoltTokens.java at line 5: package com.volttokens.managers does not exist
import com.volttokens.managers.ConfigManager;
                              ^

ERROR in src/main/java/com/volttokens/VoltTokens.java at line 6: package com.volttokens.managers does not exist
import com.volttokens.managers.NameTagManager;
                              ^

ERROR in src/main/java/com/volttokens/VoltTokens.java at line 7: package com.volttokens.managers does not exist
import com.volttokens.managers.TokenManager;
                              ^

ERROR in src/main/java/com/volttokens/VoltTokens.java at line 14: cannot find symbol
    private TokenManager tokenManager;
            ^
  symbol: class TokenManager
  location: class VoltTokens

ERROR in src/main/java/com/volttokens/VoltTokens.java at line 15: cannot find symbol
    private ConfigManager configManager;
            ^
  symbol: class ConfigManager
  location: class VoltTokens

ERROR in src/main/java/com/volttokens/VoltTokens.java at line 16: cannot find symbol
    private NameTagManager nameTagManager;
            ^
  symbol: class NameTagManager
  location: class VoltTokens

ERROR in src/main/java/com/volttokens/VoltTokens.java at line 14: cannot find symbol
    private TokenManager tokenManager;
                         ^
  symbol: class TokenManager
  location: class VoltTokens

ERROR in src/main/java/com/volttokens/VoltTokens.java at line 15: cannot find symbol
    private ConfigManager configManager;
                          ^
  symbol: class ConfigManager
  location: class VoltTokens

ERROR in src/main/java/com/volttokens/VoltTokens.java at line 16: cannot find symbol
    private NameTagManager nameTagManager;
                           ^
  symbol: class NameTagManager
  location: class VoltTokens


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - TokenManager
  - ConfigManager
  - NameTagManager
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/volttokens/VoltTokens.java

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

Kodari AI
KodariJun 12 at 8:51 am 10

I need to see what files were created and fix the package/class name mismatches.

I’ll fix the package imports and create the missing ConfigManager class.

chilltusharyt_og

how to dowload

Kodari AI
KodariJun 12 at 8:52 am 2

To download and use the VoltTokens plugin:

📥 Download Steps

  1. Wait for compilation to complete successfully (you should see “Compilation successful” message)

  2. Download the JAR file that appears in the build output

  3. Place it in your server’s plugins/ folder

  4. Restart your server

🚀 Setup

After the server starts, VoltTokens will create a config.yml where you can configure:

  • Join bonus: Tokens given when players join (default: 1)

  • First join bonus: Tokens for new players (default: 1)

  • Advancement rewards: How many tokens each advancement gives (default: 5 for all real achievements)

🎮 Commands

  • /volt - Check your token balance

  • /volt <player> - Check another player’s balance

  • /volt add <player> <amount> - Give tokens (requires permission: volttokens.admin)

  • /volt remove <player> <amount> - Remove tokens (requires permission: volttokens.admin)

  • /volt set <player> <amount> - Set tokens (requires permission: volttokens.admin)

✨ Features

  • Automatic overhead display: Shows PlayerName [50 ⚡] above each player

  • Filters recipe advancements: Only real achievements count (Nether, End, diamonds, etc.)

  • Persistent storage: Tokens saved in data.yml

  • Auto-updates: Name tags refresh on advancement completion and join

The plugin is ready to use once compilation succeeds!

chilltusharyt_og

make a plugin

Kodari AI
KodariJun 12 at 8:54 am 12

I’ll create the complete VoltTokens plugin with all the necessary files:

I can see all the files, but I need to make a few fixes:

  1. Register the command handler in the main class

  2. Fix config.yml placeholders

  3. Fix starting-tokens config key

✅ VoltTokens Plugin Created Successfully!

📦 What’s Included

Main Features:

  • ✅ Players get 1 Volt Token on first join

  • ✅ Players get 1 Volt Token every time they join

  • ✅ Players earn tokens by completing Minecraft advancements (filters out recipes/)

  • ✅ Token balance displays above player heads: PlayerName [50 ⚡]

  • ✅ Name tag auto-updates on advancement completion and login

  • ✅ Persistent storage in tokens.yml

🎮 Commands

Command
Description
Permission
/volt
Check your balance
volttokens.use
/volt balance [player]
Check balance
volttokens.use
/volt give <player> <amount>
Give tokens
volttokens.admin
/volt take <player> <amount>
Remove tokens
volttokens.admin
/volt set <player> <amount>
Set tokens
volttokens.admin
/volt reload
Reload config
volttokens.admin

⚙️ Configuration

The config.yml includes:

  • Starting tokens: 1 (given to new players)

  • Join bonus: 1 (given every login)

  • 100+ advancement rewards pre-configured:

    • Mining diamond: 100 tokens

    • Enter Nether: 150 tokens

    • Enter End: 250 tokens

    • Kill Dragon: 1000 tokens

    • Full Beacon: 750 tokens

    • Kill all mobs: 1500 tokens

    • Default: 20 tokens (for unlisted advancements)

🔥 Recipe Filter

The plugin automatically blocks recipes/ advancements so players only earn tokens from real achievements, not crafting unlocks!

The plugin is ready to download once compilation finishes!

chilltusharyt_og

dowload it]

Kodari AI
KodariJun 12 at 8:56 am 2

📥 Download Instructions

The plugin has been created! To download it:

  1. Look for the download button that should appear above (usually shows “Download VoltTokens-1.0.jar” or similar)

  2. Click the download button to get the .jar file

  3. Place the JAR in your server’s plugins/ folder

  4. Start/restart your Minecraft server

📁 After Installation

When the server starts, the plugin will create:

  • plugins/VoltTokens/config.yml - Configure token rewards

  • plugins/VoltTokens/tokens.yml - Player token balances (auto-managed)

✅ Quick Test

  1. Join your server

  2. You should see tokens above your name: YourName [1 ⚡]

  3. Complete an advancement (like mining diamond)

  4. Your overhead display updates automatically!

Note: If you don’t see a download button yet, the system may still be compiling. Wait a moment for the build to complete, then the download option will appear.

chilltusharyt_og

how to dowload i cant see dowload button

chilltusharyt_og

3 2 2 22 2 2 2 2 2 22 22 2 22

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
10 788
src/main/java/com/volttokens/VoltTokens.java
package com.volttokens;

import com.volttokens.listener.AdvancementListener;
import com.volttokens.listener.PlayerListener;
import com.volttokens.manager.ConfigManager;
import com.volttokens.manager.DisplayManager;
import com.volttokens.manager.TokenManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class VoltTokens extends JavaPlugin {
    
    private TokenManager tokenManager;
    private ConfigManager configManager;
    private DisplayManager displayManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.tokenManager = new TokenManager(this);
        this.displayManager = new DisplayManager(this);
        
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
        getServer().getPluginManager().registerEvents(new AdvancementListener(this), this);
        
        getCommand("volttokens").setExecutor(new com.volttokens.command.VoltCommand(this));
        
        getCommand("volttokens").setExecutor(new com.volttokens.command.VoltCommand(this));
        
        getLogger().info("VoltTokens enabled successfully!");
    }
    
    @Override
    public void onDisable() {
        if (tokenManager != null) {
            tokenManager.saveData();
        }
        if (displayManager != null) {
            displayManager.updateAllDisplays();
        }
        getLogger().info("VoltTokens disabled successfully!");
    }
}