diff --git a/client/src/main/java/com/collarmc/client/api/messaging/MessagingApi.java b/client/src/main/java/com/collarmc/client/api/messaging/MessagingApi.java
index 43800ef8..c20d4e29 100644
--- a/client/src/main/java/com/collarmc/client/api/messaging/MessagingApi.java
+++ b/client/src/main/java/com/collarmc/client/api/messaging/MessagingApi.java
@@ -1,6 +1,7 @@
package com.collarmc.client.api.messaging;
import com.collarmc.api.groups.Group;
+import com.collarmc.api.identity.ClientIdentity;
import com.collarmc.api.messaging.Message;
import com.collarmc.api.session.Player;
import com.collarmc.client.Collar;
@@ -95,14 +96,14 @@ public boolean handleResponse(ProtocolResponse resp) {
try {
byte[] contents = groupSession.decrypt(response.message, response.sender);
message = Utils.messagePackMapper().readValue(contents, Message.class);
- } catch (IOException | CipherException e) {
- // We don't throw an exception here in case someone is doing something naughty to disrupt the group and cause the client to exit
- LOGGER.error(collar.identity() + "could not read group message from group " + group.id, e);
- message = null;
- }
- if (message != null) {
- collar.configuration.eventBus.dispatch(new GroupMessageReceivedEvent(collar, group, response.player, message));
- }});
+ } catch (IOException | CipherException e) {
+ // We don't throw an exception here in case someone is doing something naughty to disrupt the group and cause the client to exit
+ LOGGER.error(collar.identity() + "could not read group message from group " + group.id, e);
+ message = null;
+ }
+ if (message != null) {
+ collar.configuration.eventBus.dispatch(new GroupMessageReceivedEvent(collar, group, new Player((ClientIdentity)response.sender, null), message));
+ }});
});
} else if (response.sender != null) {
Message message;
diff --git a/client/src/main/java/com/collarmc/client/api/messaging/events/UntrustedPrivateMessageReceivedEvent.java b/client/src/main/java/com/collarmc/client/api/messaging/events/UntrustedPrivateMessageReceivedEvent.java
index 7f2d2fb9..a141c03b 100644
--- a/client/src/main/java/com/collarmc/client/api/messaging/events/UntrustedPrivateMessageReceivedEvent.java
+++ b/client/src/main/java/com/collarmc/client/api/messaging/events/UntrustedPrivateMessageReceivedEvent.java
@@ -6,7 +6,7 @@
import com.collarmc.api.minecraft.MinecraftPlayer;
/**
- * Fired when a private message was attempted with another player but there was not sufficent trust to deliver
+ * Fired when a private message was attempted with another player but there was not sufficient trust to deliver
*/
public final class UntrustedPrivateMessageReceivedEvent extends AbstractCollarEvent {
public final MinecraftPlayer player;
diff --git a/pom.xml b/pom.xml
index 812692e6..bc36b459 100644
--- a/pom.xml
+++ b/pom.xml
@@ -112,7 +112,7 @@
org.apache.maven.plugins
maven-surefire-plugin
- 3.0.0
+ 3.1.0
org.apache.maven.plugins
@@ -179,7 +179,7 @@
com.google.guava
guava
- 32.0.0-jre
+ 31.1-jre