PlayerHeadAPI 1.0.0

API to print the players head in Chat

  1. Primax
    Tested Minecraft Versions:
    • 1.8
    Languages Supported:
    English, German
    PlayerHeadAPI

    API to print a Players head in Chat.

    Code (Text):
    1. Add the Library to your project
    2. Put the API on the server in the plugins folder
    3. Use it just like the Code below

    Usage:
    Code (Text):
    try{
                BufferedImage imageToSend = ImageIO.read(new URL("https://crafatar.com/avatars/" + e.getPlayer().getUniqueId().toString()));
                new ImageMessage(
                        imageToSend,
                        8,
                        ImageChar.BLOCK.getChar()
                ).appendCenteredText(
                        "1",
                        "22",
                        "333",
                        "4444",
                        "55555",
                        "666666"
                ).sendToPlayer(e.getPlayer());
            } catch (Exception exception) {
                System.out.println("[Player-Head] Kopf konnte nicht geladen werden.");
            }
    [​IMG]

    Images

    1. 2020-11-30_17.18.58.png