slay_playz
📎 1 file 3,951 chars
📄
pasted-code-1775378405501.txt
txt 195 lines
▶
**Professional Prompt — ReaverSMP Plugin With Passive Abilities**

Create a professional **Minecraft Paper/Spigot plugin** called **ReaverSMP** designed for a PvP-focused SMP server. The plugin introduces a **Reaver Power System** where each player can obtain a unique elemental power called a *Reaver*. Every Reaver grants both **Active Abilities** and **Passive Abilities** that affect combat and gameplay.

### 1. Reaver System

Players can obtain a Reaver through a rolling system using the `/roll` command.
There are **10 Reaver types**:

Flame
Ocean
Ice
Thunder
Wind
Earth
Magma
Shadow
Light
Void

Each player can only have **one Reaver at a time**.

---

### 2. Active Ability System

Each Reaver has one **active ability** triggered using:

SHIFT + F

When activated:

* The ability performs its special effect.
* A **cooldown timer** begins.
* A **BossBar cooldown bar** appears on the screen.

Example active abilities:

Flame → Fire burst damaging and burning nearby enemies
Ocean → Water wave that pushes enemies back
Ice → Freeze enemies with strong slowness
Thunder → Lightning strike attack
Wind → Dash forward quickly
Earth → Ground smash knocking enemies upward
Magma → Lava explosion that burns enemies
Shadow → Short distance teleport ability
Light → Healing and regeneration ability
Void → Pull enemies toward the player in a vortex

---

### 3. Passive Ability System

Each Reaver must also grant a **passive ability** that is always active while the player has that Reaver.

Example passive abilities:

Flame Reaver
• Fire resistance
• Slight bonus damage with melee attacks

Ocean Reaver
• Faster swimming
• Water breathing

Ice Reaver
• Slows enemies slightly when hitting them

Thunder Reaver
• Chance to strike lightning on hit

Wind Reaver
• Increased movement speed

Earth Reaver
• Extra knockback resistance

Magma Reaver
• Immunity to lava damage

Shadow Reaver
• Night vision in dark areas

Light Reaver
• Slow health regeneration over time

Void Reaver
• Chance to apply weakness to enemies

Passive abilities should run through listeners such as:

* combat events
* movement events
* environmental events

---

### 4. Reaver Rarity System

Each Reaver has a rarity tier that affects roll chances.

Common
Rare
Epic
Legendary
Mythic

Example distribution:

Flame → Common
Ocean → Common
Ice → Rare
Wind → Rare
Earth → Rare
Thunder → Epic
Magma → Epic
Shadow → Legendary
Light → Legendary
Void → Mythic

The rolling INVENTORY GUI should visually display rarity using colors.

---

### 5. Leveling System

Players gain **Reaver XP** through combat.

Examples:
• Hit player → +5 XP
• Kill player → +20 XP

As players level up:
• Ability strength can improve
• Passive bonuses may increase

---

### 6. Level Up Announcement

When a player levels up:
• A **server broadcast message** appears
• The player sees a **title animation**

Example:

⚡ REAVER LEVEL UP
PlayerName has reached Level 5

---

### 7. INVENTORY GUI System

Custom INVENTORY GUI menus should exist for:

`/roll` → opens rolling menu
`/reaver abilities` → shows ability information
`/reaver level details` → shows XP and level progress

---

### 8. Admin Commands

Admins must be able to manage powers:

`/reaver give  `
`/reaver remove `
`/reaver setlevel  `

---

### 9. Visual Effects

Each Reaver ability should include:

• custom particles
• sound effects
• visual combat feedback

---

### 10. Plugin Architecture

The plugin should follow a clean modular architecture including:

commands
listeners
managers
abilities
INVENTORY GUI classes
Reaver enums
rarity enums

The plugin must be optimized for **Paper/Spigot servers**, designed for **PvP SMP gameplay**, and written in a scalable and maintainable structure.
Kodari AI
KodariApr 5 at 8:46 am 27,407 (v2)

I’ll create a comprehensive Reaver Power System plugin with active/passive abilities, leveling, and GUI-based rolling.

ReaverSMP
A PvP-focused SMP plugin featuring an elemental Reaver power system. Players can roll for 10 unique Reavers (Flame, Ocean, Ice, Thunder, Wind, Earth, Magma, Shadow, Light, Void), each with active abilities (SHIFT+F), passive bonuses, and rarity tiers. Includes XP leveling through combat, boss bar cooldowns, GUI-based rolling system, visual effects, and admin management commands.

All files created! ReaverSMP is now complete with:

  • 10 unique Reavers with active abilities (SHIFT+F trigger) and passive bonuses

  • Rarity-based rolling system with visual GUI

  • Combat XP and leveling with server broadcasts

  • Boss bar cooldown displays

  • Admin management commands

  • Full GUI framework for rolling, abilities, and level tracking

  • Particle and sound effects for all abilities

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
35 2,155
src/main/java/com/reaversmp/ReaverSMP.java
package com.reaversmp;

import com.reaversmp.commands.ReaverCommand;
import com.reaversmp.commands.RollCommand;
import com.reaversmp.inventory.gui.GUIListener;
import com.reaversmp.inventory.gui.GUIManager;
import com.reaversmp.listeners.AbilityListener;
import com.reaversmp.listeners.CombatListener;
import com.reaversmp.listeners.PassiveListener;
import com.reaversmp.managers.AbilityManager;
import com.reaversmp.managers.LevelManager;
import com.reaversmp.managers.ReaverManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class ReaverSMP extends JavaPlugin {
    private ReaverManager reaverManager;
    private AbilityManager abilityManager;
    private LevelManager levelManager;
    private GUIManager guiManager;
    private FileConfiguration config;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        this.config = getConfig();

        this.reaverManager = new ReaverManager(this);
        this.abilityManager = new AbilityManager(this);
        this.levelManager = new LevelManager(this);
        this.guiManager = new GUIManager();

        registerCommands();
        registerListeners();

        Bukkit.getScheduler().runTaskTimer(this, () -> {
            reaverManager.saveAllData();
        }, 20L * config.getInt("settings.save-interval", 300), 20L * config.getInt("settings.save-interval", 300));

        getLogger().info("ReaverSMP has been enabled!");
    }

    @Override
    public void onDisable() {
        if (reaverManager != null) {
            reaverManager.saveAllData();
        }
        getLogger().info("ReaverSMP has been disabled!");
    }

    private void registerCommands() {
        getCommand("roll").setExecutor(new RollCommand(this));
        getCommand("reaver").setExecutor(new ReaverCommand(this));
    }

    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new AbilityListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PassiveListener(this), this);
    }
}