blob: 0caf0365d62da82d20054735f618ae0a91f084a6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
package NET.worlds.network;
public class sessionExitCmd extends propCmd {
public static final byte SESSIONEXITCMD = 7;
public sessionExitCmd() {
this._commandType = 7;
}
public sessionExitCmd(OldPropertyList propList) {
this._commandType = 7;
this._propList = propList;
}
@Override
void process(WorldServer serv) throws Exception {
assert serv.getState() == 16;
netProperty _error = this._propList.elementAt(0);
try {
int errorval = Integer.parseInt(_error.value());
if (errorval != 0) {
throw new VarErrorException(errorval);
}
} catch (NumberFormatException var4) {
System.err.println("appInitCmd: couldn't parse VAR_ERROR = " + _error.value());
}
serv.setState(17);
}
@Override
public String toString(WorldServer serv) {
return "SESSEXIT " + this._propList;
}
}
|