Examples of use

This page show examples of uses of the EasyComponent library.

Example 1 - Simple TextComponent

TextComponent component = new EasyComponent()
                .setText("Hey ! Hover me to see a message !")
                .showText("&bHello !")
                .setColor(ChatColor.AQUA)
                .getAsTextComponent();

Result

Example 2 - Run a command

Result

Example 3 - Suggest a command

Result

Example 4 - Open an URL

Result

Example 5 - Placeholder replacement

Result

Last updated

Was this helpful?