loganboy2541 james

so make me a ai at auto knows is a players by me and more

Kodari AI
KodariOct 28 at 10:27 pm 1
PlayerIntelligenceAI
A Minecraft plugin that integrates an AI assistant capable of recognizing players by name and behavior patterns. The AI learns from player interactions, tracks playtime, chat frequency, and building habits to build unique player profiles. It provides automated responses to player queries, remembers past conversations, and offers personalized gameplay suggestions. The system uses configurable machine-learning models to identify returning players, detect griefing patterns, and adapt difficulty based on individual skill levels. Includes a command interface for admins to train the AI, view player insights, and manage AI responses. Features persistent memory storage, real-time chat analysis, and customizable AI personality settings.
  • Add a Paper plugin with persistent player recognition and an owner identity.

  • Add /ai chat responses plus owner, memory, and forget commands.

  • Add the Gradle setup and plugin configuration.

Created PlayerAwareAI, a Minecraft companion plugin that remembers players by UUID, tracks visits, and greets returning players. The first online admin is recognized as the owner; an admin can also use /ai claim.

Players can chat with it using /ai <message>, check /ai memory, and admins can clear an online player’s memory with /ai forget <player>. Responses are built-in and rule-based, not generated by an external AI service.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 386
src/main/java/com/kodari/playerawareai/PlayerAwareAIPlugin.java
package com.kodari.playerawareai;

import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public final class PlayerAwareAIPlugin extends JavaPlugin {

    private PlayerMemoryManager memoryManager;
    private CompanionListener companionListener;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        memoryManager = new PlayerMemoryManager(this);
        memoryManager.load();

        companionListener = new CompanionListener(this, memoryManager);
        getServer().getPluginManager().registerEvents(companionListener, this);
        getCommand("ai").setExecutor(new AICommand(this, memoryManager));

        for (Player player : getServer().getOnlinePlayers()) {
            if (!hasOwner() && player.hasPermission("playerawareai.admin")) {
                setOwner(player);
            }
            memoryManager.observe(player);
        }
        getLogger().info("PlayerAwareAI is ready.");
    }

    @Override
    public void onDisable() {
        if (memoryManager != null) {
            memoryManager.save();
        }
    }

    public boolean hasOwner() {
        return !getConfig().getString("owner-uuid", "").isBlank();
    }

    public boolean isOwner(Player player) {
        return hasOwner() && getConfig().getString("owner-uuid", "").equals(player.getUniqueId().toString());
    }

    public void setOwner(Player player) {
        getConfig().set("owner-uuid", player.getUniqueId().toString());
        getConfig().set("owner-name", player.getName());
        saveConfig();
    }

    public String getOwnerName() {
        return getConfig().getString("owner-name", "");
    }

    public String format(String message) {
        return ChatColor.translateAlternateColorCodes('&', message);
    }
}