mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-10-31 08:32:18 +01:00
Fix deprecation warnings in BungeeCommandExecutorProxyTemplate
This commit is contained in:
parent
fa14eef773
commit
88fd6f4d5d
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user