M

Project Name: HoverHead Formatting: Legacy Color Codes ONLY (& and §).

Integration: Non-destructive layer (Compatible with EssentialsX Chat, LPC, DeluxeChat). ​1. Professional Out-of-the-Box Defaults ​Requirement: The plugin must work immediately upon installation with these pre-set defaults: ​Default Hover Content: ​&f&lMEMBER &f%player_name% ​&7&m----------------------- ​&c❤ &fHearts: &d%player_health% ​&a$ &fMoney: &a%vault_eco_balance_formatted% ​&e📶 &fPing: &b%player_ping%ms ​&7&m----------------------- ​&e&n➜ CLICK To Msg ​Default Click Action: /msg %player_name% ​Default Head Status: enable-player-head: false (Configurable to true). ​2. Full Customization via config.yml ​Editable Lines: Users must be able to add, remove, or modify any line in the hover tooltip. ​Command Control: The suggested click command must be an editable string in the config. ​PlaceholderAPI: All editable lines and commands must support % placeholders (PAPI). ​3. Dynamic 8x8 Skin Matrix (Character Sync) ​Placeholder: %hoverhead_chat_head%. ​Logic: Fetch the sender's actual current skin and convert the 8x8 head area into a 2D matrix of colored Unicode blocks (██). ​Usage: This must be a standalone placeholder usable in any chat plugin's format (LPC, DeluxeChat, etc.) to show the player's live head. ​4. Universal Hook & High Performance ​Priority: Use EventPriority.MONITOR to ensure compatibility. ​Non-Destructive: Do NOT use setFormat(). Identify the player's name in the final formatted string and inject the metadata. This prevents the "Default Chat" bug and keeps all your custom prefixes/suffixes intact. ​Zero Lag: Use Asynchronous skin fetching and Internal Caching for all 8x8 head matrices.

Kodari AI
KodariJan 29 at 5:47 pm 7,774 (v2)

I’ll create a professional hover tooltip plugin with dynamic skin head rendering and full PAPI integration.

HoverHead
A lightweight chat enhancement plugin that adds customizable hover tooltips and click actions to player names in chat. Features include PlaceholderAPI integration for dynamic content, asynchronous 8x8 skin head matrix rendering with caching, and non-destructive compatibility with popular chat plugins like EssentialsX Chat, LuckPerms Chat, and DeluxeChat. Uses legacy color codes and EventPriority.MONITOR to ensure seamless integration without overriding existing chat formats.

HoverHead is now fully configured!

Features implemented:

  • ✅ Professional out-of-the-box defaults with legacy color codes

  • ✅ Full PlaceholderAPI integration for dynamic content

  • ✅ Non-destructive EventPriority.MONITOR chat injection

  • ✅ Async 8x8 skin head matrix renderer with color matching

  • ✅ LRU caching system (30-minute default TTL)

  • ✅ %hoverhead_chat_head% placeholder for external chat plugins

  • ✅ Fully customizable hover lines and click commands

  • ✅ Compatible with EssentialsX, LuckPerms Chat, DeluxeChat

Commands:

  • /hoverhead reload - Reload configuration and clear cache

Config Options:

  • enable-player-head - Toggle 8x8 skin rendering (default: false)

  • hover-lines - List of hover tooltip lines with PAPI support

  • click-command - Suggest command on name click

  • head-cache-minutes - Cache duration for rendered heads

The plugin uses reflection to extract skin textures, converts them to 8x8 colored matrices using closest ChatColor matching, and injects hover/click events without destroying existing chat formats.

M

The compilation failed with this error:

code
Validation failed for compilation: Compilation failed with 1 error(s):

ERROR in src/main/java/com/hoverhead/skin/SkinHeadRenderer.java at line 56: cannot find symbol
            return textureProperty.getValue();
                                  ^
  symbol: method getValue()
  location: variable textureProperty of type Property


=== COMPILATION ERROR ANALYSIS ===

MISSING METHODS:
  - getValue()
ACTION: Check method names and signatures

FILES TO INVESTIGATE:
  - src/main/java/com/hoverhead/skin/SkinHeadRenderer.java
 exceeds maximum 

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariJan 29 at 5:48 pm 5,040 (v2)

I’ll read the problematic file to understand the issue and fix it.

The issue is that the Property class from Mojang’s authlib has different method names across Minecraft versions. I’ll fix this by using reflection to handle both getValue() (older versions) and value() (newer versions).

Fixed the compilation error by adding a getPropertyValue() method that uses reflection to handle both method names across Minecraft versions (tries value() first for newer versions, falls back to getValue() for older versions).

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
10 527
src/main/java/com/hoverhead/HoverHead.java
package com.hoverhead;

import com.hoverhead.config.ConfigManager;
import com.hoverhead.listener.ChatListener;
import com.hoverhead.placeholder.HoverHeadExpansion;
import com.hoverhead.skin.SkinCache;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;

public class HoverHead extends JavaPlugin {
    private ConfigManager configManager;
    private SkinCache skinCache;
    private HoverHeadExpansion placeholderExpansion;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.skinCache = new SkinCache(this);
        
        Bukkit.getPluginManager().registerEvents(new ChatListener(this), this);
        
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
            this.placeholderExpansion = new HoverHeadExpansion(this);
            this.placeholderExpansion.register();
            getLogger().info("PlaceholderAPI hook enabled");
        }
        
        getLogger().info("HoverHead enabled successfully");
    }

    @Override
    public void onDisable() {
        if (this.placeholderExpansion != null) {
            this.placeholderExpansion.unregister();
        }
        getLogger().info("HoverHead disabled");
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (command.getName().equalsIgnoreCase("hoverhead")) {
            if (!sender.hasPermission("hoverhead.admin")) {
                sender.sendMessage("§cYou don't have permission to use this command.");
                return true;
            }
            
            if (args.length == 0 || !args[0].equalsIgnoreCase("reload")) {
                sender.sendMessage("§eUsage: /hoverhead reload");
                return true;
            }
            
            reloadConfig();
            this.configManager.reload();
            this.skinCache.clearCache();
            sender.sendMessage("§aHoverHead configuration reloaded!");
            return true;
        }
        return false;
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public SkinCache getSkinCache() {
        return skinCache;
    }
}