# Messagings

## BossBars

You can easily create bossbar, set color to it, bar style, title, and add players which will se this bossbar.

Example usage:

```java
HBossBar myBossBar = HCore.createBossBar("Title", HBarColor.WHITE, HBarStyle.SOLID); // creates bossbar with color white
myBossBar.setColor(HBarColor.RED); // changes it's color to red 
myBossBar.addPlayer(player); // allows player to see the bossbar
```

## Titles

You can easily send titles to player. Set animation speed for it, and change content for title.

Example usage:

```java
HTitle myTitle = new HTitle("Title", "Subtitle", 5, 3, 2); // created a title with title "Title" and subtitle "Subtitle" which appears in 3 ticks, disappears in 2 ticks so totally exists for 5 ticks
HCore.sendTitle(player, myTitle); // sent title to player
```

## Action Bars

You can also easily send action bars to player, and change content to it.

Example usage:

```java
HCore.sendActionBar(player, "Welcome back, " + player.getDisplayName()); // sent a simple actionbar to player with string "Welcome, playerName"
```

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hcore.gitbook.io/wiki/messaging/messagings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
