/* */ package NET.worlds.network; /* */ /* */ import java.io.PrintStream; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class appInitCmd /* */ extends propCmd /* */ { /* */ public static final byte APPINITCMD = 8; /* */ /* */ public appInitCmd() /* */ { /* 46 */ this._commandType = 8; /* */ } /* */ /* */ public appInitCmd(String s) /* */ { /* 51 */ this._commandType = 8; /* 52 */ this._propList.addProperty(new netProperty(1, s)); /* */ } /* */ /* */ void process(WorldServer serv) throws Exception /* */ { /* 57 */ assert (serv.getState() == 10); /* 58 */ netProperty _error = this._propList.elementAt(0); /* */ try { /* 60 */ int errorval = Integer.parseInt(_error.value()); /* 61 */ if (errorval != 0) /* 62 */ throw new VarErrorException(errorval); /* */ } catch (NumberFormatException e) { /* 64 */ System.err.println("appInitCmd: couldn't parse VAR_ERROR = " + /* 65 */ _error.value()); /* */ /* 67 */ serv.setState(11); /* */ } /* */ } /* */ /* */ public String toString(WorldServer serv) /* */ { /* 73 */ return "APPINIT " + this._propList; /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\network\appInitCmd.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */