agonid.

add randomizer to power when player joins the server, add animations to lootboxes, make 150 powers, every power has something uniqe and can have debuffs, some powers can give custamizable weapons, armors, some can give hearts, some can give strenght, uniqe abbilities, summoning something and many more, make a power INVENTORY GUI at command, /power which will show players how much powers they have and so on

📎 1 file 6,593 chars
📄
pasted-code-1785357345855.txt
txt 536 lines
▶
# PowerSMP 1:1 Recreation Specification

Your task is to recreate this plugin as close to **1:1** as possible. Do **not** redesign, simplify, or reinterpret any systems. The goal is to reproduce the feel, mechanics, GUIs, progression, commands, and architecture of the original plugin while improving code quality, performance, and maintainability.

## General Requirements

* Java 21
* Paper 1.21.x
* Maven or Gradle
* Clean OOP architecture
* Fully modular
* Async database operations
* No memory leaks
* Optimized for 100+ players
* SQLite by default
* Optional MySQL support
* Every feature configurable
* Reloadable configs where possible

---

# Plugin Architecture

Use independent modules:

```
core
database
commands
listeners
INVENTORY GUI
powers
economy
auctionhouse
homes
warps
teleport
clans
titles
kits
utils
config
storage
api
```

Every module should communicate through services/interfaces instead of directly accessing implementation classes.

---

# Main Feature: Powers

The entire plugin revolves around collectible powers.

Each player owns powers.

Each power has:

* unique ID
* name
* description
* rarity
* level
* XP
* cooldown
* passive abilities
* active abilities
* configurable damage
* configurable particles
* configurable sounds
* configurable potion effects
* configurable activation conditions
* upgrade path

Every power should be completely configurable through YAML files.

Support:

* passive powers
* active powers
* combat powers
* utility powers
* movement powers

---

# Power Progression

Every power can level independently.

Store:

* current level
* XP
* unlocked abilities
* statistics

Power levels increase effectiveness.

Examples:

* more damage
* shorter cooldown
* larger radius
* longer effects

Everything configurable.

---

# Power INVENTORY GUI

Command:

```
/power
```

Professional INVENTORY GUI showing:

* equipped power
* unlocked powers
* rarity
* cooldown
* level
* XP progress
* description
* statistics
* fragments owned

Animated inventory updates.

Decorative glass panes.

Custom icons.

---

# Power Fragments

Players can convert powers into items.

Commands:

```
/withdraw
/withdrawpower
```

Fragment stores:

* power ID
* rarity
* level
* metadata

Players can:

* trade
* sell
* store
* use
* buy

Using the fragment grants the power.

---

# Power Shop

Command:

```
/powershop
```

INVENTORY GUI shop.

Features:

* categories
* search
* rarity colors
* configurable prices
* purchase confirmation
* pagination

Supports economy.

---

# Economy

Commands:

```
/balance
/bal
/pay
/baltop
```

Features:

* player balances
* transactions
* leaderboard
* configurable currency
* admin controls
* Vault support
* internal economy support

Persistent database storage.

---

# Auction House

Commands:

```
/ah
/list
```

INVENTORY GUI marketplace.

Features:

* item listings
* search
* filters
* categories
* taxes
* expiration
* seller history
* instant purchase
* cancel listing
* pagination

Database persistence.

---

# Homes

Commands:

```
/sethome
/home
/delhome
```

Features:

* multiple homes
* configurable limits
* teleport delay
* movement cancellation
* cooldowns
* permissions

---

# Warps

Commands:

```
/warp
/warps
```

Player-created public warps.

Each warp has:

* icon
* owner
* description
* category
* teleport cost
* visit count
* favorite count
* rating

INVENTORY GUI browser.

---

# Teleport Requests

Commands:

```
/tpa
/tpahere
/tpaaccept
/tpadeny
```

Features:

* countdown
* timeout
* movement cancellation
* clickable messages
* sounds
* titles
* particles

---

# Clans

Command:

```
/clan
```

Include:

* create
* delete
* invite
* accept
* leave
* kick
* promote
* demote
* ownership transfer
* clan chat
* clan home
* clan bank
* clan level
* statistics
* MOTD
* permissions

INVENTORY GUI management.

---

# Titles

Command:

```
/title
```

Players unlock cosmetic titles.

Display titles:

* chat
* tab list
* nametag
* profile INVENTORY GUI

Examples:

Champion

Hunter

Legend

Immortal

Guardian

Everything configurable.

---

# Starter Kits

Command:

```
/kit
```

Configurable:

* cooldown
* permission
* armor
* tools
* food
* custom items

---

# Admin Panel

Command:

```
/powersmp
```

INVENTORY GUI.

Include:

* reload plugin
* manage powers
* inspect player
* edit balances
* give fragments
* remove powers
* edit cooldowns
* edit rarity
* open player profile
* database tools
* debug mode

---

# Configurations

Everything must be configurable.

Examples:

```
messages.yml
powers.yml
INVENTORY GUI.yml
economy.yml
titles.yml
rarities.yml
shop.yml
cooldowns.yml
database.yml
kits.yml
warps.yml
homes.yml
clans.yml
```

No hardcoded values.

---

# INVENTORY GUI Design

Every INVENTORY GUI should look polished.

Requirements:

* decorative glass panes
* custom icons
* rarity colors
* gradients
* sounds
* click animations
* confirmation menus
* pagination
* intuitive navigation

---

# Database

Store:

* player data
* powers
* balances
* cooldowns
* homes
* warps
* clans
* auction house
* titles
* statistics

Support:

* SQLite
* MySQL

All database operations should be asynchronous.

---

# Performance

Optimize for large servers.

Requirements:

* async saving
* cache frequently accessed data
* avoid unnecessary inventory refreshes
* no synchronous SQL
* efficient listeners
* minimal allocations
* thread-safe services

---

# Permissions

Every command and feature should have dedicated permissions.

Support admin bypass permissions.

---

# Code Quality

Use:

* dependency injection where appropriate
* services
* repositories
* managers
* interfaces
* enums
* builder pattern for GUIs
* reusable utilities

Avoid duplicated code.

---

# Final Goal

The finished plugin should feel almost identical to the original PowerSMP plugin in gameplay, progression, commands, INVENTORY GUI design, and user experience while having cleaner, faster, and more maintainable code. Prioritize recreating behavior over inventing new mechanics, and ensure every system integrates seamlessly with the others.
Kodari AI
KodariJul 29 at 8:41 pm 7
PowerSMP
PowerSMP is a configurable Paper 1.21 power-collection plugin. Players receive a randomized power when they first join, collect and level powers independently, activate unique abilities, equip passive powers, and browse their collection through the /power inventory GUI. It includes animated lootboxes, 150 configurable powers with buffs and debuffs, custom weapons and armor, heart upgrades, summons, cooldowns, fragments, SQLite persistence, asynchronous saves, rarity progression, and administrator reload controls.
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
19 1,276
src/main/java/com/kodari/powersmp/PowerSMPPlugin.java
package com.kodari.powersmp;

import com.kodari.powersmp.command.PowerCommand;
import com.kodari.powersmp.command.PowerSmpCommand;
import com.kodari.powersmp.listener.PowerListener;
import com.kodari.powersmp.power.PowerService;
import com.kodari.powersmp.storage.PowerRepository;
import com.kodari.powersmp.lootbox.LootboxService;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class PowerSMPPlugin extends JavaPlugin {
    private PowerRepository repository;
    private PowerService powerService;
    private LootboxService lootboxService;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("powers.yml", false);
        saveResource("messages.yml", false);
        saveResource("database.yml", false);

        repository = new PowerRepository(this);
        repository.initialize();

        powerService = new PowerService(this, repository);
        powerService.loadDefinitions();

        lootboxService = new LootboxService(this, powerService);

        Bukkit.getPluginManager().registerEvents(new PowerListener(this, powerService, lootboxService), this);

        PowerCommand powerCommand = new PowerCommand(this, powerService, lootboxService);
        getCommand("power").setExecutor(powerCommand);
        getCommand("power").setTabCompleter(powerCommand);
        getCommand("powersmp").setExecutor(new PowerSmpCommand(this, powerService));

        Bukkit.getScheduler().runTaskTimerAsynchronously(this, powerService::saveAll, 20L * 60L, 20L * 60L);
    }

    @Override
    public void onDisable() {
        if (powerService != null) {
            powerService.saveAll();
        }
        if (repository != null) {
            repository.close();
        }
    }

    public void reloadPlugin() {
        reloadConfig();
        powerService.loadDefinitions();
    }

    public String message(String key) {
        String value = getConfig().getString("messages." + key, key);
        return value.replace('&', '§');
    }

    public String prefix() {
        return message("prefix");
    }

    public PowerRepository getRepository() {
        return repository;
    }

    public PowerService getPowerService() {
        return powerService;
    }
}