kyroxsenpai

I want to make a Minecraft plugin like tokensmp or Glory smp with costume tokens and costume abilities and glory plugin costume sword and op abilities of each weapon

Kodari AI
KodariJan 3 at 8:58 pm 11,605 (v2)

I’ll create a custom token and ability weapon plugin inspired by TokenSMP and GlorySMP.

GloryAbilities
A comprehensive token and weapon ability system inspired by TokenSMP and GlorySMP. Features custom tokens as currency, OP custom weapons with unique abilities, token-based upgrades, and special powers. Includes multiple weapon types (swords, axes, bows) each with their own devastating abilities like lightning strikes, explosive attacks, healing, and area damage. Players earn tokens to unlock and upgrade powerful weapons with cooldown-based abilities.

Your GloryAbilities plugin is complete! Here’s what I’ve created:

Features:

  • 6 OP Custom Weapons with unique abilities

  • Token System (earn from kills, lose on death)

  • Weapon Shop GUI to purchase weapons with tokens

  • Cooldown System for balanced gameplay

Weapons & Abilities:

  1. Lightning Blade - Strike nearby enemies with lightning

  2. Flame Destroyer - Create massive explosions

  3. Frost Reaper - Freeze enemies in place

  4. Void Annihilator - Deal AoE damage in large radius

  5. Life Stealer - Heal yourself and lifesteal on hit

  6. Explosive Bow - Arrows explode on impact

Commands:

  • /glory shop - Open weapon shop

  • /glory tokens - Check your tokens

  • /tokens [player] - Check tokens

  • /givetoken <player> <amount> - Admin only

Usage:

  • Right-click with Glory weapons to activate abilities

  • Kill players to earn tokens (configurable rewards)

  • All weapons have cooldowns and custom damage

  • Fully configurable in config.yml

Build with gradle build and drop the JAR into your plugins folder!

kyroxsenpai

And plugin name Terror TokenXGlory Plugin and made by Terror

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
15 993
src/main/java/com/gloryabilities/GloryAbilities.java
package com.gloryabilities;

import com.gloryabilities.commands.GloryCommand;
import com.gloryabilities.commands.TokensCommand;
import com.gloryabilities.commands.GiveTokenCommand;
import com.gloryabilities.listeners.WeaponAbilityListener;
import com.gloryabilities.listeners.PlayerListener;
import com.gloryabilities.managers.TokenManager;
import com.gloryabilities.managers.WeaponManager;
import com.gloryabilities.managers.CooldownManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class GloryAbilities extends JavaPlugin {
    
    private TokenManager tokenManager;
    private WeaponManager weaponManager;
    private CooldownManager cooldownManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.tokenManager = new TokenManager(this);
        this.weaponManager = new WeaponManager(this);
        this.cooldownManager = new CooldownManager(this);
        
        registerCommands();
        registerListeners();
        
        getLogger().info("GloryAbilities has been enabled!");
    }
    
    @Override
    public void onDisable() {
        tokenManager.saveAll();
        getLogger().info("GloryAbilities has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("glory").setExecutor(new GloryCommand(this));
        getCommand("tokens").setExecutor(new TokensCommand(this));
        getCommand("givetoken").setExecutor(new GiveTokenCommand(this));
    }
    
    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new WeaponAbilityListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
    }
    
    public String getMessage(String path) {
        return getConfig().getString("messages." + path, "&cMessage not found: " + path)
                .replace("&", "§");
    }
    
    public String getPrefix() {
        return getConfig().getString("prefix", "&6&l[Glory] &r").replace("&", "§");
    }
}