public void connected (Connection connection) {
}
public void received (Connection connection, Object object) {
if (object instanceof RegistrationRequired) {
Register register = new Register();
register.name = name;
register.otherStuff = ui.inputOtherStuff();
client.sendTCP(register);
}