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
|
@Override
|
||||||
|
@SuppressWarnings({"deprecation", "RedundantSuppression"})
|
||||||
public void sendMessage(String message) {
|
public void sendMessage(String message) {
|
||||||
CallOriginal.call(message);
|
CallOriginal.call(message);
|
||||||
forwardComponent(LegacyComponentSerializer.legacySection().deserialize(message));
|
forwardComponent(LegacyComponentSerializer.legacySection().deserialize(message));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressWarnings({"deprecation", "RedundantSuppression"})
|
||||||
public void sendMessages(String... messages) {
|
public void sendMessages(String... messages) {
|
||||||
CallOriginal.call((Object) messages);
|
CallOriginal.call((Object) messages);
|
||||||
forwardComponent(LegacyComponentSerializer.legacySection().deserialize(String.join("\n", messages)));
|
forwardComponent(LegacyComponentSerializer.legacySection().deserialize(String.join("\n", messages)));
|
||||||
|
Loading…
Reference in New Issue
Block a user