mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-11-18 19:14:18 +01:00
parent
9ef4fc34c3
commit
0417624bda
@ -214,9 +214,9 @@ public abstract class AbstractChatHandler {
|
||||
}
|
||||
|
||||
// Strip local chat prefix to preserve API behaviour
|
||||
final String localPrefix = AdventureUtil.miniToLegacy(tlLiteral("chatTypeLocal"));
|
||||
final String localPrefix = tlLiteral("chatTypeLocal");
|
||||
String baseFormat = AdventureUtil.legacyToMini(event.getFormat());
|
||||
if (event.getFormat().startsWith(localPrefix)) {
|
||||
if (baseFormat.startsWith(localPrefix)) {
|
||||
baseFormat = baseFormat.substring(localPrefix.length());
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user