FazeDupo

make a pluggin that when you type /kit you get a selected kit

Kodari AI
KodariJun 9 at 3:33 am 5

I’ll create a kit management plugin that gives players predefined item kits.

KitPlugin
A simple kit management system that allows players to receive predefined item kits using commands. Administrators can configure multiple kits in the config file with custom items, amounts, and enchantments. Players use /kit to view available kits and /kit <name> to claim them. Supports cross-version compatibility and easy customization through YAML configuration.

Done! The plugin is ready with:

  • /kit - Shows available kits

  • /kit <name> - Gives the specified kit to the player

  • Pre-configured kits: starter, pvp, tools

  • Cross-version compatibility with XSeries

  • Customizable messages and kits in config.yml

  • Support for enchantments on items

Admins can easily add more kits by editing config.yml and defining materials, amounts, and enchantments for each kit.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
5 292
src/main/java/com/example/kitplugin/KitPlugin.java
package com.example.kitplugin;

import com.example.kitplugin.commands.KitCommand;
import org.bukkit.plugin.java.JavaPlugin;

public class KitPlugin extends JavaPlugin {
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        getCommand("kit").setExecutor(new KitCommand(this));
        
        getLogger().info("KitPlugin has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("KitPlugin has been disabled!");
    }
}