[8.0.0] Server.sendMessage()[Solved]

Hello Can someone explain the syntax of sending a message through the console? using the Sponge.server.sendMessage() which I’m assuming replaced Sponge.getServer()getBroadcastChannel.send()?

It’s not clear who you are trying to send a message to - but based on context, I guess the entire server? In which case, Server.sever().sendMessage(...) is what you need. You can create Components using the Component.text(...) and other methods from Adventure.

If you want to send a message to the console, you’ll need Server.systemSubject().sendMessage(...) instead.

1 Like