diff --git a/Changelog.txt b/Changelog.txt
index 8b9f0d1cb..4ae37c396 100644
--- a/Changelog.txt
+++ b/Changelog.txt
@@ -1,6 +1,7 @@
Version 2.2.008
Fixed alchemy potions not upgrading correctly (This will only affect new potions made, see notes)
Fixed a bug where alchemy potions had italicized names
+ Fixed a bug where messages were not being sent to the action bar in 1.20.6
Fixed some exceptions that could happen with parties disabled (thanks IAISI)
NOTES:
diff --git a/pom.xml b/pom.xml
index 99c18b60d..127b2d219 100644
--- a/pom.xml
+++ b/pom.xml
@@ -140,23 +140,22 @@
org.bstats:bstats-base
org.bstats:bstats-bukkit
net.kyori:adventure-api
- net.kyori:adventure-text-serializer-gson
- net.kyori:adventure-platform-bukkit
- net.kyori:adventure-platform-api
- net.kyori:adventure-platform-viaversion
- net.kyori:adventure-platform-facet
- net.kyori:adventure-nbt
net.kyori:adventure-key
+ net.kyori:adventure-nbt
+ net.kyori:adventure-platform-api
+ net.kyori:adventure-platform-bukkit
+ net.kyori:adventure-platform-facet
+ net.kyori:adventure-platform-viaversion
+ net.kyori:adventure-text-serializer-bungeecord
+ net.kyori:adventure-text-serializer-gson
+ net.kyori:adventure-text-serializer-gson-legacy-impl
+ net.kyori:adventure-text-serializer-json
+ net.kyori:adventure-text-serializer-json-legacy-impl
+ net.kyori:adventure-text-serializer-legacy
net.kyori:examination-api
net.kyori:examination-string
- net.kyori:adventure-text-serializer-legacy
- net.kyori:adventure-text-serializer-gson
- net.kyori:adventure-text-serializer-json
- net.kyori:adventure-text-serializer-bungeecord
- net.kyori:adventure-text-serializer-craftbukkit
- net.kyori:adventure-text-serializer-gson-legacy-impl
- net.kyori:adventure-text-serializer-json-legacy-impl
net.kyori:option
+ net.kyori:adventure-text-serializer-craftbukkit
co.aikar:acf-bukkit
com.tcoded:FoliaLib
@@ -344,7 +343,7 @@
net.kyori
adventure-platform-bukkit
- 4.3.2
+ LATEST
net.kyori
diff --git a/src/main/java/com/gmail/nossr50/util/player/NotificationManager.java b/src/main/java/com/gmail/nossr50/util/player/NotificationManager.java
index 615ae3fbb..f41d740b7 100644
--- a/src/main/java/com/gmail/nossr50/util/player/NotificationManager.java
+++ b/src/main/java/com/gmail/nossr50/util/player/NotificationManager.java
@@ -121,14 +121,13 @@ public class NotificationManager {
final Audience audience = mcMMO.getAudiences().player(player);
- //If the message is being sent to the action bar we need to check if the copy if a copy is sent to the chat system
+
Component notificationTextComponent = customEvent.getNotificationTextComponent();
- if(customEvent.getChatMessageType() == McMMOMessageType.ACTION_BAR)
- {
+ if(customEvent.getChatMessageType() == McMMOMessageType.ACTION_BAR) {
audience.sendActionBar(notificationTextComponent);
- if(customEvent.isMessageAlsoBeingSentToChat())
- {
+ // If the message is being sent to the action bar we need to check if a copy is also sent to the chat system
+ if(customEvent.isMessageAlsoBeingSentToChat()) {
//Send copy to chat system
audience.sendMessage(notificationTextComponent);
}