I’m trying to set the server’s motd through the plugin. Is there a way to manipulate any information relating to the server?
I tried:
Sponge.getServer().getMotd().equals(Text.of("This is my server"));
I’m trying to set the server’s motd through the plugin. Is there a way to manipulate any information relating to the server?
I tried:
Sponge.getServer().getMotd().equals(Text.of("This is my server"));
@Listener
public void onPing(ClientPingServerEvent e) {
e.getResponse().setDescription(Text.of("Take that, server.properties!"));
}
Thank you. I’m assuming this needs to be under the event listener "ClientPingServerEvent ".
yup