From e1e781bb2135ef78592226f1a3eaba4925702f1f Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 3 May 2021 16:38:41 -0700 Subject: :star: --- NET/worlds/network/UserServer.java | 154 +++++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 NET/worlds/network/UserServer.java (limited to 'NET/worlds/network/UserServer.java') diff --git a/NET/worlds/network/UserServer.java b/NET/worlds/network/UserServer.java new file mode 100644 index 0000000..caaf1d2 --- /dev/null +++ b/NET/worlds/network/UserServer.java @@ -0,0 +1,154 @@ +/* */ package NET.worlds.network; +/* */ +/* */ import NET.worlds.console.Console; +/* */ import java.io.PrintStream; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class UserServer +/* */ extends AnonUserServer +/* */ { +/* */ protected sessionInitCmd buildSessionInitCmd() +/* */ { +/* 52 */ OldPropertyList props = new OldPropertyList(); +/* */ +/* 54 */ String name = this._galaxy.getChatname(); +/* 55 */ this._galaxy.setChatname(Console.parseUnicode(name)); +/* */ +/* */ +/* 58 */ props.addProperty(new netProperty(3, +/* 59 */ String.valueOf(getVersion()))); +/* 60 */ props.addProperty(new netProperty(9, +/* 61 */ String.valueOf(this._clientVersion))); +/* */ +/* 63 */ this._firstLogon = this._galaxy.addPendingServer(this); +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* 75 */ switch (getGalaxy().getLoginMode()) { +/* */ case 3: +/* 77 */ assert (this._galaxy.getGuestExpiration() != null); +/* 78 */ props.addProperty(new netProperty(14, this._galaxy +/* 79 */ .getGuestExpiration())); +/* 80 */ if (this._firstLogon) +/* 81 */ props.addProperty(new netProperty(12, "1")); +/* 82 */ break; +/* */ +/* */ +/* */ case 1: +/* */ case 2: +/* 87 */ assert (this._galaxy.getChatname() != null); +/* */ +/* */ +/* 90 */ regShortID(1, +/* 91 */ Console.parseUnicode(this._galaxy.getChatname())); +/* */ +/* 93 */ props.addProperty(new netProperty(2, +/* 94 */ Console.parseUnicode(this._galaxy.getChatname()))); +/* */ +/* */ +/* 97 */ if (this._galaxy.getNewChatname() != null) { +/* 98 */ props.addProperty(new netProperty(28, +/* 99 */ this._galaxy.getNewChatname())); +/* */ } +/* 101 */ if (this._galaxy.getPassword() != null) { +/* 102 */ props.addProperty(new netProperty(6, +/* 103 */ this._galaxy.getPassword())); +/* */ } +/* */ +/* 106 */ if (this._galaxy.getNewPassword() != null) { +/* 107 */ props.addProperty(new netProperty(20, +/* 108 */ this._galaxy.getNewPassword())); +/* */ } +/* 110 */ if (this._galaxy.getLoginMode() == 1) +/* */ { +/* 112 */ if (this._galaxy.getSerialNum() != null) { +/* 113 */ props.addProperty(new netProperty(10, +/* 114 */ this._galaxy.getSerialNum())); +/* */ } +/* 116 */ } else if (this._firstLogon) { +/* 117 */ props.addProperty(new netProperty(12, +/* 118 */ "1")); +/* */ } +/* 120 */ break; +/* */ default: +/* 122 */ if (!$assertionsDisabled) { throw new AssertionError(); +/* */ } +/* */ break; +/* */ } +/* */ +/* 127 */ if ((getDebugLevel() & 0x4) > 0) { +/* 128 */ synchronized (System.out) { +/* 129 */ System.out.println(this._serverURL.getHost() + +/* 130 */ ": sending sessionInit."); +/* 131 */ System.out.println(" username = \"" + +/* 132 */ this._galaxy.getChatname() + "\""); +/* 133 */ if (this._galaxy.getPassword() != null) +/* 134 */ System.out.println(" password = " + +/* 135 */ this._galaxy.getPassword()); +/* 136 */ if ((this._galaxy.getLoginMode() == 1) && +/* 137 */ (this._galaxy.getSerialNum() != null)) { +/* 138 */ System.out.println(" serial # = " + +/* 139 */ this._galaxy.getSerialNum()); +/* */ } +/* 141 */ if (this._galaxy.getLoginMode() == 3) { +/* 142 */ System.out.println(" VAR_GUEST"); +/* */ } +/* */ } +/* */ } +/* 146 */ return new sessionInitCmd(props); +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\network\UserServer.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */ \ No newline at end of file -- cgit v1.2.3