alexsus_real

Develop a Minecraft plugin that implements an AI chatbot accessible via the command /ai <question>, providing players with responses to their inquiries. Include a /settings command that allows users to select their preferred language, either English or Polish, with language-specific responses and support for customizable AI personality traits.

Kodari AI
KodariMar 24 at 5:43 pm 14,074 (v2)

I’ll create a comprehensive AI chatbot plugin with language selection and personality customization.

AIChatBot
An interactive AI chatbot plugin that responds to player questions via the /ai command. Features multi-language support (English and Polish), customizable AI personality traits (Helpful, Funny, Professional, Creative), and a user-friendly settings GUI. Players can personalize their experience by selecting their preferred language and AI personality style through an intuitive settings menu.

All files created successfully! The AIChatBot plugin is now complete with:

Core Features:

  • /ai <question> command for asking the AI questions with async processing

  • /settings command opening an interactive GUI

  • Multi-language support (English and Polish) with automatic switching

  • 4 AI personality types: Helpful, Funny, Professional, and Creative

AI Personalities:

  • Helpful: Standard friendly responses

  • Funny: Adds humor and emojis

  • Professional: Formal tone with proper structure

  • Creative: Unique responses with creative flair

GUI System:

  • Main settings menu with language and personality options

  • Separate selection menus for each setting

  • Visual feedback with sounds using XSeries

  • Persistent player preferences stored in YAML files

The plugin uses a mock AI response system (in AIManager) that you can easily extend with real AI API integration if needed. All player preferences are automatically saved to playerdata/ folder.

alexsus_real

can you make a cooldown of 1 minute (changable in the code) beafore uing it and a color selector in the settings that ai would use to type but when something is inportant i would bold it and make it red or when something is a warn of some type then make it yellow FOR EXAMPLE make more of those

Kodari AI
KodariMar 24 at 5:51 pm 35,666 (v2)

I’ll read the existing files to understand the structure and add the cooldown system and color selector.

I’ll add a cooldown system and color selector with special formatting for important/warning messages.


Added cooldown system and color selector with special formatting:

  • Cooldown: 60 seconds (configurable in config.yml), bypass with aichatbot.bypass.cooldown permission

  • Color Selector: 9 colors available in settings GUI (slot 13)

  • Special Formatting: AI automatically detects keywords and applies bold + colored formatting:

    • WARNING (yellow bold) - danger, warning, careful keywords

    • IMPORTANT (red bold) - important, critical, urgent keywords

    • ERROR (dark red bold) - error, problem, issue keywords

    • SUCCESS (green bold) - success, complete, done keywords

    • TIP (aqua bold) - tip, hint, advice keywords

    • NOTE (gray bold) - note, remember, info keywords

alexsus_real

make sound effects

Kodari AI
KodariMar 24 at 5:54 pm 31,466 (v2)

I need to read the existing files first to understand the plugin structure and where to integrate sound effects.

I’ll add a comprehensive sound effects system to the AI ChatBot plugin.

Sound effects system fully integrated with:

  • SoundManager with 10 different sound effects (thinking, response, error, success, click, GUI open/close, cooldown, warning, notification)

  • Per-player sound toggle in settings GUI

  • Sounds play on AI interactions, GUI navigation, and setting changes

  • Config option to globally enable/disable sounds

  • All sounds use XSound for cross-version compatibility

alexsus_real

it doesnt work it responds with "great question" i schould answer custon questions

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
19 1,370
src/main/java/com/aichatbot/AIChatBot.java
package com.aichatbot;

import com.aichatbot.command.AICommand;
import com.aichatbot.command.SettingsCommand;
import com.aichatbot.listener.SettingsGUIListener;
import com.aichatbot.manager.AIManager;
import com.aichatbot.manager.ConfigManager;
import com.aichatbot.manager.CooldownManager;
import com.aichatbot.manager.LanguageManager;
import com.aichatbot.manager.PlayerDataManager;
import com.aichatbot.manager.SoundManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class AIChatBot extends JavaPlugin {

    private ConfigManager configManager;
    private LanguageManager languageManager;
    private PlayerDataManager playerDataManager;
    private AIManager aiManager;
    private CooldownManager cooldownManager;
    private SoundManager soundManager;

    @Override
    public void onEnable() {
        configManager = new ConfigManager(this);
        languageManager = new LanguageManager(this);
        playerDataManager = new PlayerDataManager(this);
        aiManager = new AIManager(this);
        cooldownManager = new CooldownManager(this);
        soundManager = new SoundManager(this);

        registerCommands();
        registerListeners();

        getLogger().info("AIChatBot has been enabled!");
    }

    @Override
    public void onDisable() {
        if (playerDataManager != null) {
            playerDataManager.saveAllData();
        }
        getLogger().info("AIChatBot has been disabled!");
    }

    private void registerCommands() {
        getCommand("ai").setExecutor(new AICommand(this));
        getCommand("settings").setExecutor(new SettingsCommand(this));
    }

    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new SettingsGUIListener(this), this);
    }
}