Manipulating information on the 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!"));
}
1 Like

Thank you. I’m assuming this needs to be under the event listener "ClientPingServerEvent ". :stuck_out_tongue:

yup

1 Like