saianshsharma80-prog

none of the sins have EFFECTS none of them still randomly getting slowness make everything better make the bosses a tadbit easier

Kodari AI
KodariJul 6 at 1:13 pm 54

I found the actual issues: ENVY and GLUTTONY boss sins only buff the boss itself and never actually affect players (so it “feels” like they have no effect), and the LUST/SLOTH player passives in PassiveTickTask apply slowness constantly/randomly without any real trigger — that’s your “random slowness” bug. I’ll fix both and tune boss difficulty down.

Now fixing the “random slowness” bug — SLOTH’s passive was slowing the player themselves for just standing still (feels like a random bug), and LUST’s passive fires every 0.3s constantly. Both get gated properly, and I’m giving ENVY its own actual passive (it had none):

Fixed:

  • ENVY & GLUTTONY boss sins previously only self-buffed the boss — they never actually affected players, which is why those two “had no effect.” Now ENVY inflicts Weakness and GLUTTONY inflicts Hunger on nearby players.

  • ENVY player passive didn’t exist at all — added one (mirrors nearby players’ active potion effects).

  • Random slowness bug: SLOTH’s passive was slowing the player themselves just for standing still, and LUST’s passive fired every 0.3s on anyone nearby regardless of combat — both felt like unexplained random slowness. SLOTH no longer self-slows (keeps regen), and LUST’s aura now only triggers in combat, once every 2s instead of every 0.3s.

  • Bosses tuned easier: health 200→150, attack damage 12→8, speed bonus +20%→+10%, enrage bonus +50%→+30%/+25%, skill cooldown 18s→22s, and all unique-skill damage/slowness/duration values reduced (Inferno Slam, Seismic Slam, Heart’s Snare, Ravenous Maw).

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
26 2,600
src/main/java/com/kodari/sevendeadlysins/SevenDeadlySinsPlugin.java
package com.kodari.sevendeadlysins;

import com.kodari.sevendeadlysins.abilities.AbilityManager;
import com.kodari.sevendeadlysins.commands.SinCommand;
import com.kodari.sevendeadlysins.data.SinDataManager;
import com.kodari.sevendeadlysins.listeners.BossListener;
import com.kodari.sevendeadlysins.listeners.CombatListener;
import com.kodari.sevendeadlysins.listeners.CommandmentListener;
import com.kodari.sevendeadlysins.listeners.GUIListener;
import com.kodari.sevendeadlysins.listeners.PlayerListener;
import com.kodari.sevendeadlysins.managers.BossManager;
import com.kodari.sevendeadlysins.managers.CommandmentManager;
import com.kodari.sevendeadlysins.managers.CooldownManager;
import com.kodari.sevendeadlysins.managers.DemonMarkManager;
import com.kodari.sevendeadlysins.managers.SacredTreasureManager;
import com.kodari.sevendeadlysins.tasks.PassiveTickTask;
import com.kodari.sevendeadlysins.tasks.WorldEventTask;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SevenDeadlySinsPlugin extends JavaPlugin {

    private SinDataManager sinDataManager;
    private CooldownManager cooldownManager;
    private SacredTreasureManager sacredTreasureManager;
    private DemonMarkManager demonMarkManager;
    private CommandmentManager commandmentManager;
    private BossManager bossManager;
    private AbilityManager abilityManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        this.sinDataManager = new SinDataManager(this);
        this.cooldownManager = new CooldownManager();
        this.sacredTreasureManager = new SacredTreasureManager(this);
        this.demonMarkManager = new DemonMarkManager(this);
        this.commandmentManager = new CommandmentManager();
        this.bossManager = new BossManager(this);
        this.abilityManager = new AbilityManager(this);

        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CommandmentListener(this), this);
        Bukkit.getPluginManager().registerEvents(new BossListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(this), this);

        SinCommand sinCommand = new SinCommand(this);
        org.bukkit.command.PluginCommand sinCmd = getCommand("sin");
        if (sinCmd != null) {
            sinCmd.setExecutor(sinCommand);
            sinCmd.setTabCompleter(sinCommand);
        } else {
            getLogger().warning("Could not register /sin command — check plugin.yml");
        }

        new PassiveTickTask(this).runTaskTimer(this, 20L, 20L);
        new WorldEventTask(this).runTaskTimer(this, 100L, 100L);
        Bukkit.getScheduler().runTaskTimer(this, () -> demonMarkManager.tickParticles(), 20L, 20L);
        Bukkit.getScheduler().runTaskTimer(this, () -> sinDataManager.saveAll(), 6000L, 6000L);
        Bukkit.getScheduler().runTaskTimer(this, () -> bossManager.tickBossAI(), 60L, 60L);

        getLogger().info("Seven Deadly Sins SMP has awakened.");
    }

    @Override
    public void onDisable() {
        if (sinDataManager != null) {
            sinDataManager.saveAll();
        }
        getLogger().info("Seven Deadly Sins SMP slumbers once more.");
    }
}