How do I make an overlay GUI?

Discussion in 'Plugin Development' started by BlockMaster047, Feb 27, 2025.

  1. Offline

    BlockMaster047

    So I want to display player stats on a players screen and no I am not talking about an inventory I am talking about the kind of thing they do in Hypixel Skyblock to display player health, defense, mana, etc. How would I add something like that to my plugin?
     

    Attached Files:

  2. Offline

    KarimAKL

    @BlockMaster047 That's the "action bar". There should be plenty of resources online about it.

    Assuming Spigot (or forks thereof) server software, here are a few links that you might find useful:
    Javadocs for sending such a message: Player.Spigot#sendMessage(ChatMessageType, BaseComponent)
    Javadocs for the ChatMessageType enum: ChatMessageType
    Javadocs for the BaseComponent: BaseComponent (Check out TextComponent as well)
    Wiki for the API: The Chat Component API
    Example usage: How do you send an action bar?
     

Share This Page