Hi there, how would i make a auto changing motd? like when u hit refresh the msg of the day changes? any help will be awesome! thanks
XxZHALO13Xx you will need to create a Random() int on the ServerListPingEvent Code:java @EventHandlerpublic void serverListPing(ServerListPingEvet e){} When you have the event created then the random motd code : Code:java Random rand = new Random();int random = rand.nextInt(2); if(random == 0){e.setMotd("Hello and this is MOTD 1");} else if(random == 1){e.setMotd("Hello and this is MOTD 2");} else if(random == 2){e.setMotd("Hello and this is MOTD 3");} /* Remember that 0 = 1, 1 = 2, 2 = 3* you put this on ServerListPingEvent*/
Haha thats so awesome, my server does that! I fill it with stupid random messages / movie references. Kinda like the Minecraft MOTD on the title screen