blob: 0b8f50bf186626266910a0e14bfb8f351ae23d1d (
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 appInitCmd extends propCmd {
public static final byte APPINITCMD = 8;
public appInitCmd() {
this._commandType = 8;
}
public appInitCmd(String s) {
this._commandType = 8;
this._propList.addProperty(new netProperty(1, s));
}
@Override
void process(WorldServer serv) throws Exception {
assert serv.getState() == 10;
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(11);
}
@Override
public String toString(WorldServer serv) {
return "APPINIT " + this._propList;
}
}
|