disconnect

fun disconnect()

Quits the client back to the main menu. This acts just like clicking the "Disconnect" or "Save and quit to title" button.

Sources

Link copied to clipboard