voltik7

create me a plugin where when You spawn with 5 lives and when you lose all 5 lives you get banned for a day but when you get 1 kill your lives reset to 5. Also every kill you get will earn you some sort of perk, extra strength, speed, attack/mining speed, health, and knockback resistance (only plus 1 though). but when you die you lose all the perks you earned. You can also craft a custom perk which will give one of the 5 perks i said before. you can craft a revive to revive someone if you dont want to wait for them to get unbanned after the day. But theyre is also a perk sword, (the first person to achieve all 5 perks gets it), the perk sword pretty much allows you to blind a players health bar and boost your perks to +2 (if you get the kills)

Kodari AI
KodariAug 11 at 1:42 am 2
PerkLivesBattleground
Players spawn with 5 lives; losing all results in a 24-hour ban. Each kill resets lives to 5 and grants a random perk (strength, speed, mining speed, health, or knockback resistance) at +1, stacking up to +5 per perk. Death removes all earned perks. Players can craft custom perk items granting any of the five perks, and craft revive items to unban dead players instantly. The first player to achieve all five perks at +1 receives a special Perk Sword, which blinds opponents' health bars and boosts all perks to +2 with additional kills.
  1. Create the Gradle project and plugin metadata.

  2. Add persistent player profiles for lives, perks, and the first perk-sword owner.

  3. Implement perk effects, kill/death handling, one-day bans, crafted perk/revive items, and sword blindness.

  4. Register recipes, commands, listeners, and configuration defaults.

  1. Created the Gradle project and PerkLives plugin metadata.

  2. Added persistent five-life profiles with YAML storage.

  3. Implemented kill rewards, life resets, perk clearing on death, and 24-hour bans after all lives are lost.

  4. Added five perks: Strength, Speed, Mining Speed, Health, and Knockback Resistance.

  5. Added custom perk, revive, and Perk Sword items with crafting recipes.

  6. Added first-complete Perk Sword ownership, blindness effect, and level-two perk empowerment after additional kills.

  7. Added /perklives to display lives, perks, and sword status.

voltik7

no they only stack up to +1 though

Kodari AI
KodariAug 11 at 1:42 am 1
  1. Remove the level-two perk behavior so every perk remains capped at its single earned level.

  2. Keep the Perk Sword’s health-bar blindness and first-completion ownership mechanics unchanged.

Updated the plugin so perks never stack beyond +1:

  • Strength, Speed, and Mining Speed always apply at level 1.

  • Health always grants only the single perk bonus.

  • Knockback resistance always grants only the single perk bonus.

  • The Perk Sword no longer upgrades perks to +2.

  • The sword’s blindness ability and first-player achievement remain unchanged.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
13 645
src/main/java/com/kodari/perklives/PerkLivesPlugin.java
package com.kodari.perklives;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public class PerkLivesPlugin extends JavaPlugin {
    private ProfileManager profiles;
    private PerkManager perks;
    private ItemFactory items;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        items = new ItemFactory(this);
        profiles = new ProfileManager(this);
        perks = new PerkManager(this, profiles, items);
        new RecipeManager(this, items).register();
        getServer().getPluginManager().registerEvents(new GameListener(this, profiles, perks, items), this);

        PluginCommand command = getCommand("perklives");
        if (command != null) {
            PerkCommand perkCommand = new PerkCommand(profiles);
            command.setExecutor(perkCommand);
            command.setTabCompleter(perkCommand);
        }
    }

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