Spigot: Use most compatible signature for CommandSender#sendMessage

This commit is contained in:
Camotoy 2022-08-29 12:29:45 -04:00
parent 8e47a9f5e9
commit 94d56f04bb
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F

View file

@ -73,7 +73,8 @@ public class SpigotCommandSender implements CommandSender {
return; return;
} }
handle.sendMessage(BungeeComponentSerializer.get().serialize(message)); // CommandSender#sendMessage(BaseComponent[]) is Paper-only
handle.spigot().sendMessage(BungeeComponentSerializer.get().serialize(message));
} }
@Override @Override