mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 06:57:39 +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
|
// Strip local chat prefix to preserve API behaviour
|
||||||
final String localPrefix = AdventureUtil.miniToLegacy(tlLiteral("chatTypeLocal"));
|
final String localPrefix = AdventureUtil.miniToLegacy(tlLiteral("chatTypeLocal"));
|
||||||
String baseFormat = event.getFormat();
|
String baseFormat = AdventureUtil.legacyToMini(event.getFormat());
|
||||||
if (event.getFormat().startsWith(localPrefix)) {
|
if (event.getFormat().startsWith(localPrefix)) {
|
||||||
baseFormat = baseFormat.substring(localPrefix.length());
|
baseFormat = baseFormat.substring(localPrefix.length());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user