mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 00:58:50 +01:00
Fix shout/local chat not sending with certain formats (#5719)
This commit is contained in:
parent
622c8147a9
commit
993d7ede56
@ -218,7 +218,7 @@ public abstract class AbstractChatHandler {
|
||||
|
||||
// Strip local chat prefix to preserve API behaviour
|
||||
final String localPrefix = AdventureUtil.miniToLegacy(tlLiteral("chatTypeLocal"));
|
||||
String baseFormat = event.getFormat();
|
||||
String baseFormat = AdventureUtil.legacyToMini(event.getFormat());
|
||||
if (event.getFormat().startsWith(localPrefix)) {
|
||||
baseFormat = baseFormat.substring(localPrefix.length());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user