diff --git a/src/main/java/net/minestom/server/bossbar/BossBar.java b/src/main/java/net/minestom/server/bossbar/BossBar.java index 288d89d8e..5129c148a 100644 --- a/src/main/java/net/minestom/server/bossbar/BossBar.java +++ b/src/main/java/net/minestom/server/bossbar/BossBar.java @@ -65,7 +65,7 @@ public class BossBar implements Viewable { if (playerBossBars != null && playerBossBars.size() >= MAX_BOSSBAR) { return false; } - // Add to the map + addToPlayer(player); return viewers.add(player); } diff --git a/src/main/java/net/minestom/server/chat/JsonMessage.java b/src/main/java/net/minestom/server/chat/JsonMessage.java index 867ba3ceb..766b1adc7 100644 --- a/src/main/java/net/minestom/server/chat/JsonMessage.java +++ b/src/main/java/net/minestom/server/chat/JsonMessage.java @@ -22,6 +22,7 @@ public abstract class JsonMessage { * Sent directly to the client. * * @return the json representation of the message + * @see #toString() */ public abstract JsonObject getJsonObject(); @@ -35,9 +36,12 @@ public abstract class JsonMessage { /** * Gets the Json representation. *
- * Used to send messages. + * Will check of the current cached compiled json is up-to-date in order to prevent + * re-parsing the message every time. * * @return the string json representation + * @see #getJsonObject() + * @see #refreshUpdate() */ @Override public String toString() {