Miscellaneous
Miscellaneous but useful methods and functions.
Methods
parseAddress()
parseAddress()
This method will parse the host and port out of an address string. For example, parsing play.hypixel.net
will return { host: 'play.hypixel.net', port: 25565 }
. The default port is configurable by the second parameter, which may be adjusted if parsing the address for anything other than a Java Edition Minecraft server.
Last updated