/** * Execute the disconnect message and send the decoded data to the rest of the client. * * @return true if the execution is done, false if it shall be called again */ @SuppressWarnings("nls") @Override public boolean executeUpdate() { BUILDER.setLength(0); BUILDER.append(Lang.getMsg("logout")); BUILDER.append("\n"); BUILDER.append(Lang.getMsg("logout.reason")); BUILDER.append(" "); if (reason < REASONS.length) { BUILDER.append(Lang.getMsg("logout." + REASONS[reason])); } else { BUILDER.append(Lang.getMsg("logout.unknown")); BUILDER.append(Integer.toHexString(reason)); } BUILDER.append("\n"); BUILDER.append(Lang.getMsg("logout.char")); BUILDER.append(" "); BUILDER.append(Game.getInstance().getLogin()); IllaClient.fallbackToLogin(BUILDER.toString()); return true; }