package eu.mrneznamy.mrultimatelibrary.utils;

import org.bukkit.plugin.java.JavaPlugin;
import java.util.ArrayList;
import java.util.List;

/**
 * Example plugin showing how to use MrLibHelper system
 * 
 * This is just an example - copy the code to your actual plugin's onEnable() method
 */
public class MrLibHelperExample extends JavaPlugin {

    @Override
    public void onEnable() {
        registerHelpCommands();
    }

    private void registerHelpCommands() {
        List<MrLibHelper.CommandInfo> commands = new ArrayList<>();
        
        
        commands.add(new MrLibHelper.CommandInfo(
            "/myplugin create <name>", 
            "Create a new item with specified name", 
            "/myplugin create MyAwesomeItem"
        ));
        
        commands.add(new MrLibHelper.CommandInfo(
            "/myplugin delete <id>", 
            "Delete item by ID", 
            "/myplugin delete 123"
        ));
        
        commands.add(new MrLibHelper.CommandInfo(
            "/myplugin list", 
            "List all items", 
            "/myplugin list"
        ));
        
        commands.add(new MrLibHelper.CommandInfo(
            "/myplugin edit <id> <name>", 
            "Edit item name", 
            "/myplugin edit 123 NewName"
        ));
        
        commands.add(new MrLibHelper.CommandInfo(
            "/myplugin reload", 
            "Reload plugin configuration", 
            "/myplugin reload"
        ));
        
        commands.add(new MrLibHelper.CommandInfo(
            "/myplugin version", 
            "Show plugin version", 
            "/myplugin version"
        ));
        
        
        
        MrLibHelper.registerPluginCommands(this, "MyPlugin", commands);
        
        getLogger().info("MyPlugin commands registered with MrLibHelper!");
    }
}
