addictedtovibes

Make me a plugin to count killstreak deaths and kills and kdr with placeholders for scoreboard

Kodari AI
KodariMay 24 at 2:56 pm 7,092 (v2)

I’ll create a killstreak statistics plugin with kill/death tracking, KDR calculation, and PlaceholderAPI support for scoreboards.

KillstreakStats
A comprehensive player statistics plugin that tracks kills, deaths, and killstreaks with real-time K/D ratio calculation. Features automatic stat persistence, PlaceholderAPI integration for scoreboard displays, and player stat viewing commands. Killstreaks reset on death, and all statistics are saved persistently. Perfect for PvP servers wanting detailed combat statistics and leaderboard integration.

Now I’ll create the plugin structure:

Done! Created a complete killstreak statistics plugin with the following features:

Core Features:

  • Tracks kills, deaths, and current killstreak per player

  • Automatically calculates K/D ratio

  • Killstreak resets on death

  • Data persistence with auto-save every 5 minutes

  • Broadcast messages at configurable killstreak milestones (5, 10, 15, etc.)

Commands:

  • /stats [player] - View statistics for yourself or another player

PlaceholderAPI Integration:

  • %killstreakstats_kills% - Total kills

  • %killstreakstats_deaths% - Total deaths

  • %killstreakstats_kdr% - Kill/Death ratio

  • %killstreakstats_killstreak% - Current killstreak

Configuration: All messages are customizable in config.yml, including stat display format, killstreak broadcast messages, and milestone thresholds.

addictedtovibes

add rewarding system custom kill message ( customizeable ) leaderboards make the plugin give stone sword and 16aqua wools and a shear with leather helmett and chestplate light blue colored and chainmail leggings and boots ( make it customizeable ) make if the player gets voided the voider is the killer make everything customizable in config.yml its for 1.8.9

Kodari AI
KodariMay 24 at 3:05 pm 37,915 (v2)

I’ll expand the plugin with rewards, custom kill messages, leaderboards, starting kit, void kill detection, and full config customization for 1.8.9.

Now I’ll update the existing files:

Done! I’ve expanded the plugin with all the requested features:

New Features Added:

  1. Reward System - Configurable rewards for kills and killstreak milestones (money via Vault, commands)

  2. Custom Kill Messages - Fully customizable death messages with placeholders

  3. Leaderboards - /leaderboard command showing top 10 players by kills, deaths, KDR, or killstreak

  4. Starting Kit - Players spawn with stone sword, 16 light blue wool, shears, leather helmet/chestplate (light blue), chainmail leggings/boots

  5. Void Kill Detection - If a player is damaged then falls into void, the damager gets credit for the kill

  6. Full Config Customization - Everything is configurable in config.yml including kit items, colors, rewards, messages

Configuration includes:

  • Starting kit (all items, amounts, colors customizable)

  • Kill rewards (money + commands per kill)

  • Killstreak milestone rewards

  • Custom death messages

  • Leaderboard formatting

  • All messages with color codes

Updated for 1.8.9:

  • Changed API version and Spigot dependency to 1.8.8

  • Added XSeries for cross-version material/color compatibility

  • Java 8 toolchain

addictedtovibes

make it give 8 wools every kill not money 8 wools every 1 kill a gapple every 2 kill a working fireball with customizable knockback every 5 kills make the armors and sword enchanted on higher streaks like make sword sharpnessed 1 : 20 kill streak make armors protectioned 1 : 30 kill streak make it customizable

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
13 1,006
src/main/java/com/killstreakstats/KillstreakStats.java
package com.killstreakstats;

import com.killstreakstats.command.LeaderboardCommand;
import com.killstreakstats.command.StatsCommand;
import com.killstreakstats.listener.KillListener;
import com.killstreakstats.listener.StartingKitListener;
import com.killstreakstats.manager.KitManager;
import com.killstreakstats.manager.PlayerStatsManager;
import com.killstreakstats.manager.RewardManager;
import com.killstreakstats.placeholder.StatsPlaceholder;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class KillstreakStats extends JavaPlugin {
    
    @Getter
    private PlayerStatsManager statsManager;
    @Getter
    private RewardManager rewardManager;
    @Getter
    private KitManager kitManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.statsManager = new PlayerStatsManager(this);
        this.rewardManager = new RewardManager(this);
        this.kitManager = new KitManager(this);
        
        statsManager.loadStats();
        
        getServer().getPluginManager().registerEvents(new KillListener(this), this);
        getServer().getPluginManager().registerEvents(new StartingKitListener(this), this);
        
        getCommand("stats").setExecutor(new StatsCommand(this));
        getCommand("leaderboard").setExecutor(new LeaderboardCommand(this));
        
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
            new StatsPlaceholder(this).register();
            getLogger().info("PlaceholderAPI hooked successfully!");
        }
        
        int interval = getConfig().getInt("auto-save-interval", 6000);
        Bukkit.getScheduler().runTaskTimerAsynchronously(this, () -> {
            statsManager.saveStats();
        }, interval, interval);
        
        getLogger().info("KillstreakStats has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (statsManager != null) {
            statsManager.saveStats();
        }
        getLogger().info("KillstreakStats has been disabled!");
    }
}