Fix MiniMessage Support

This commit is contained in:
RayzsYT committed 2024-05-11 16:01:36 +02:00
1 parent 598187af7d
commit c83f0e66c3
3 files changed
+3 -3

No files matched your search

@@ -39,8 +39,7 @@ public class MessageTranslator {
support = Reflection.getMinor() == 16 && Reflection.getRelease() == 5
|| Reflection.getMinor() >= 17
|| Reflection.isVelocityServer()
|| Reflection.getVersionName().contains("Paper");
|| Reflection.isProxyServer();
if(support)
translator = Reflection.isVelocityServer() ? new VelocityMessageTranslator()
@@ -20,6 +20,7 @@ public class BungeeMessageTranslator implements Translator {
@Override
public void send(Object target, String text) {
System.out.println("Penis");
Audience audience = target instanceof ProxiedPlayer ? audiences.player((ProxiedPlayer) target) : audiences.sender((CommandSender) target);
audience.sendMessage(miniMessage.deserialize(MessageTranslator.translateLegacy(text)));
}