1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-19 14:59:27 +00:00

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

View File

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