carvey_xd.yml

give me FuryXcombat updated file jar file plugin

Kodari AI
KodariSep 26 at 6:08 pm 1
FuryXCombat
FuryXCombat is a comprehensive Minecraft PvP combat plugin that enhances player-versus-player encounters with advanced mechanics. It introduces a customizable combat system featuring hit registration improvements, damage indicators, combo tracking, and kill streaks. The plugin includes configurable combat tags that prevent teleportation and logout during battles, plus a unique fury meter that builds with consecutive hits and unlocks special abilities when full. Additional features include death messages, scoreboard integration, particle effects on critical hits, sound effects, and an extensive configuration system allowing server administrators to fine-tune every combat aspect. The plugin supports multiple damage calculation modes, armor penetration, and cooldown management for abilities, providing an immersive and competitive PvP experience for Minecraft servers.
  1. Create a Paper plugin named FuryXcombat with configurable combat tagging.

  2. Add command restrictions, combat-logout handling, and Gradle build files for the plugin JAR.

Created FuryXcombat with player combat tagging, configurable blocked commands, combat-logout handling, and /furyxcombat reload.

Build the JAR with gradle build; it will be at build/libs/FuryXcombat-1.0.0.jar. Targets Paper 1.21.4 and Java 21.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
6 244
src/main/java/com/furyxcombat/FuryXCombatPlugin.java
package com.furyxcombat;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;

public final class FuryXCombatPlugin extends JavaPlugin {
    private CombatListener combatListener;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        combatListener = new CombatListener(this);
        getServer().getPluginManager().registerEvents(combatListener, this);
        getServer().getScheduler().runTaskTimer(this, combatListener::expireTags, 20L, 20L);
    }

    @Override
    public void onDisable() {
        if (combatListener != null) {
            combatListener.clearTags();
        }
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (!command.getName().equalsIgnoreCase("furyxcombat")) {
            return false;
        }
        if (args.length == 1 && args[0].equalsIgnoreCase("reload")) {
            if (!sender.hasPermission("furyxcombat.admin")) {
                sender.sendMessage(color("&cYou do not have permission to do that."));
                return true;
            }
            reloadConfig();
            sender.sendMessage(color(getConfig().getString("messages.reloaded", "&aConfiguration reloaded.")));
            return true;
        }
        sender.sendMessage(color("&eUsage: /furyxcombat reload"));
        return true;
    }

    static String color(String message) {
        return ChatColor.translateAlternateColorCodes('&', message);
    }
}