String getServer();
When join the server right after startup
return IP:Port (Example: mc.hypixel.net:25565)
but
join server 2nd time
return IP (Example: mc.hypixel.net)
The getServer() method is just a wrapper method of a minecraft method, and it returns whatever the internal minecraft method returns to it. So this is most likely a Minecraft bug.
String getServer(); When join the server right after startup return IP:Port (Example: mc.hypixel.net:25565) but join server 2nd time return IP (Example: mc.hypixel.net)