Matthew Baker

make a smp plugin where players get abilitys

Kodari AI
KodariSep 12 at 1:01 am 1
PlayerAbilitiesSMP
A Minecraft SMP plugin granting players unique abilities. Each player receives a random or chosen ability on join, such as super speed, jump boost, strength, or fire resistance. Abilities are activated with a configurable hotkey, have cooldowns, and display particle effects. Includes admin commands to assign, remove, or list abilities, plus a GUI to browse available powers. Permissions control ability usage and admin management. Configurable messages and cooldown durations via YAML configuration.

I’ll create a Paper SMP abilities plugin with:

  1. Six selectable abilities: four passive effects plus Dash and Heal actives.

  2. /ability commands for listing, selecting, toggling, status, and activation.

  3. Sneak + right-click activation for active abilities, with cooldowns.

  4. YAML persistence for each player’s selected ability and enabled state.

  5. Gradle build metadata and plugin resources.

Created a complete Paper SMP abilities plugin from scratch.

Included:

  • Passive abilities: Speed, Fire Resistance, Night Vision, Jump Boost

  • Active abilities: Dash and Heal

  • /ability commands:

    • list

    • select <ability>

    • toggle

    • status

    • use

  • Sneak + right-click activation for active abilities

  • Ability cooldowns

  • Player ability persistence in players.yml

  • Configurable default ability

  • Gradle build setup and plugin.yml configuration

Matthew Baker

make a freeze ability with the down fall of permeant slowness 1. also make an ability that is you can heal yourself or others that you are looking at gets back to full health and saturation but you take 10% more damage. make one where you can get strength 3 but you can only where prot 3 armor. make one where you go back to where you where after activating you ability but when you do you take 3 hearts of damage. also make a 90 second cool down for all the abilities and make it so they need to craft a semi expensive item to reroll there ability. don't use the abilities that you had come up with

Kodari AI
KodariSep 12 at 1:17 am 1
  1. Replace the previous ability set with Freeze, Medic, Strength, and Recall.

  2. Add the requested drawbacks and enforce a 90-second cooldown for every ability.

  3. Add a semi-expensive reroll item recipe and reroll command flow.

  4. Update persistence, commands, listeners, and configuration to match the new abilities.

I’m treating Freeze as an active targeted freeze with permanent Slowness I as its drawback, Strength as a passive ability with Protection IV+ reduced to Protection III, Heal as a targeted full heal, and Recall as a delayed return to the activation location.

  1. Replaced the old abilities with:

    • Freeze: Freezes the player you are looking at and gives you permanent Slowness I.

    • Heal: Fully restores your health and saturation, including a targeted player, but you take 10% more damage.

    • Strength: Grants Strength III and limits equipped Protection armor to Protection III.

    • Recall: Returns you to your activation location after 5 seconds and deals 3 hearts of damage.

  2. Added a 90-second cooldown to all active abilities.

  3. Added a semi-expensive Ability Reroll Token recipe:

    • 4 Diamonds

    • 4 Emerald Blocks

    • 1 Nether Star

  4. Added /ability reroll, which consumes a token and randomly assigns a different ability.

  5. Updated ability persistence, passive effects, armor enforcement, damage drawbacks, configuration, commands, and help text.

Matthew Baker

finish

Kodari AI
KodariSep 12 at 1:30 am 1
  1. Make passive effects truly persistent and remove them when abilities are disabled or changed.

  2. Ensure cooldown and activation behavior are consistent, including targeted Freeze/Heal and Recall damage.

  3. Improve reroll/selection state handling and prevent stale effects or cooldown state.

  4. Clean up command/listener behavior and finalize the plugin configuration.

Finished the SMP ability system:

  • Replaced the old abilities with:

    • Freeze: Freezes the targeted entity and permanently gives the user Slowness I.

    • Heal: Fully restores your or a targeted player’s health and saturation; user takes 10% extra damage.

    • Strength: Grants Strength III and limits Protection armor to Protection III.

    • Recall: Returns you to your activation location after 5 seconds and deals 3 hearts of damage.

  • Added a 90-second cooldown for active abilities.

  • Added the expensive Ability Reroll Token recipe:

    • 4 Diamonds

    • 4 Emerald Blocks

    • 1 Nether Star

  • Added /ability reroll.

  • Removed direct ability selection so players must use reroll tokens.

  • Passive effects now correctly apply permanently and clear when disabled or changed.

  • Updated command help, tab completion, interaction handling, and plugin configuration.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
9 585
src/main/java/com/kodari/smpabilities/SmpAbilitiesPlugin.java
package com.kodari.smpabilities;

import com.kodari.smpabilities.command.AbilityCommand;
import com.kodari.smpabilities.listener.AbilityListener;
import com.kodari.smpabilities.manager.AbilityManager;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.Objects;

public final class SmpAbilitiesPlugin extends JavaPlugin {

    private AbilityManager abilityManager;

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

        abilityManager = new AbilityManager(this);
        abilityManager.load();
        abilityManager.registerRerollRecipe();

        getServer().getPluginManager().registerEvents(new AbilityListener(abilityManager), this);

        AbilityCommand abilityCommand = new AbilityCommand(abilityManager);
        PluginCommand command = Objects.requireNonNull(getCommand("ability"));
        command.setExecutor(abilityCommand);
        command.setTabCompleter(abilityCommand);

        Bukkit.getScheduler().runTaskTimer(this, () ->
                Bukkit.getOnlinePlayers().forEach(player -> {
                    abilityManager.applyPassiveAbility(player);
                    abilityManager.enforceArmorLimit(player);
                }), 20L, 40L);
    }

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