Skip to content

Commit 0417624

Browse files
authored
Fix local chat spy formatting (#6226)
Fixes #5828
1 parent 9ef4fc3 commit 0417624

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

EssentialsChat/src/main/java/com/earth2me/essentials/chat/processing/AbstractChatHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ protected void handleChatRecipients(AbstractChatEvent event) {
214214
}
215215

216216
// Strip local chat prefix to preserve API behaviour
217-
final String localPrefix = AdventureUtil.miniToLegacy(tlLiteral("chatTypeLocal"));
217+
final String localPrefix = tlLiteral("chatTypeLocal");
218218
String baseFormat = AdventureUtil.legacyToMini(event.getFormat());
219-
if (event.getFormat().startsWith(localPrefix)) {
219+
if (baseFormat.startsWith(localPrefix)) {
220220
baseFormat = baseFormat.substring(localPrefix.length());
221221
}
222222

0 commit comments

Comments
 (0)