Joel

🔥 Rage SMP — Taking damage fills a Rage Meter. At 100%, you enter a temporary powered-up state. Killing someone while enraged steals part of their max Rage.

Kodari AI
KodariSep 12 at 9:34 am 1
RageSMP
A Minecraft plugin that introduces a Rage Meter for players. Taking damage fills the meter; at 100%, the player enters a temporary powered-up state with enhanced abilities. Killing another player while enraged steals a portion of their maximum Rage capacity, creating a competitive risk-reward system. Includes configurable rage gain rates, power-up duration, stat boosts, and steal percentages via a YAML configuration file.
  1. Create the Gradle/Paper plugin scaffold and plugin metadata.

  2. Implement persistent Rage data, configurable charging, enrage activation, combat modifiers, and max-Rage stealing.

  3. Add /rage info/reload commands plus lifecycle, action-bar, and death handling.

Implemented the Rage SMP plugin from scratch.

  • Damage charges each player’s Rage Meter.

  • Full meter activates a temporary enraged state.

  • Enraged players deal bonus damage and receive damage reduction.

  • Enraged kills steal part of the victim’s maximum Rage.

  • Rage data persists in data.yml.

  • Added configurable values and messages.

  • Added /rage info and /rage reload.

  • Added action-bar status display and plugin lifecycle handling.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Rage SMP
settings.gradle
Code
11 1,862
src/main/java/com/kodari/ragesmp/RageSMPPlugin.java
package com.kodari.ragesmp;

import java.util.Map;
import org.bukkit.command.CommandSender;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class RageSMPPlugin extends JavaPlugin {

    private RageManager rageManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        rageManager = new RageManager(this);
        rageManager.load();

        getServer().getPluginManager().registerEvents(new RageListener(this, rageManager), this);

        RageCommand rageCommand = new RageCommand(this, rageManager);
        PluginCommand command = getCommand("rage");
        if (command != null) {
            command.setExecutor(rageCommand);
            command.setTabCompleter(rageCommand);
        }

        getServer().getScheduler().runTaskTimer(this, rageManager::tick, 20L, 20L);
    }

    @Override
    public void onDisable() {
        if (rageManager != null) {
            rageManager.save();
        }
    }

    public RageManager getRageManager() {
        return rageManager;
    }

    public String message(String path, Map<String, ?> replacements) {
        String template = getConfig().getString(path, path);
        return MessageUtil.format(template, replacements);
    }

    public void sendMessage(CommandSender sender, String path, Map<String, ?> replacements) {
        sender.sendMessage(message(path, replacements));
    }
}