diff --git a/src/main/java/net/coreprotect/consumer/process/PlayerChatProcess.java b/src/main/java/net/coreprotect/consumer/process/PlayerChatProcess.java index aedffb7..f4b8629 100644 --- a/src/main/java/net/coreprotect/consumer/process/PlayerChatProcess.java +++ b/src/main/java/net/coreprotect/consumer/process/PlayerChatProcess.java @@ -11,7 +11,7 @@ import net.coreprotect.database.logger.ChatLogger; class PlayerChatProcess { static void process(PreparedStatement preparedStmt, int batchCount, int processId, int id, Object[] object, String user) { - if (object.length == 2 && object[1] instanceof Location) { + if (object[1] instanceof Location) { Map strings = Consumer.consumerStrings.get(processId); if (strings.get(id) != null) { String message = strings.get(id); diff --git a/src/main/java/net/coreprotect/consumer/process/PlayerCommandProcess.java b/src/main/java/net/coreprotect/consumer/process/PlayerCommandProcess.java index 88bd85c..69b1a1b 100644 --- a/src/main/java/net/coreprotect/consumer/process/PlayerCommandProcess.java +++ b/src/main/java/net/coreprotect/consumer/process/PlayerCommandProcess.java @@ -11,7 +11,7 @@ import net.coreprotect.database.logger.CommandLogger; class PlayerCommandProcess { static void process(PreparedStatement preparedStmt, int batchCount, int processId, int id, Object[] object, String user) { - if (object.length == 2 && object[1] instanceof Location) { + if (object[1] instanceof Location) { Map strings = Consumer.consumerStrings.get(processId); if (strings.get(id) != null) { String message = strings.get(id);