Fix deprecation warnings in BungeeCommandExecutorProxyTemplate

This commit is contained in:
Vankka 2022-09-15 23:26:53 +03:00
parent fa14eef773
commit 88fd6f4d5d
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -58,12 +58,14 @@ public abstract class BungeeCommandExecutorProxyTemplate implements CommandSende
}
@Override
@SuppressWarnings({"deprecation", "RedundantSuppression"})
public void sendMessage(String message) {
CallOriginal.call(message);
forwardComponent(LegacyComponentSerializer.legacySection().deserialize(message));
}
@Override
@SuppressWarnings({"deprecation", "RedundantSuppression"})
public void sendMessages(String... messages) {
CallOriginal.call((Object) messages);
forwardComponent(LegacyComponentSerializer.legacySection().deserialize(String.join("\n", messages)));