summaryrefslogtreecommitdiff
path: root/NET/worlds/network/appInitCmd.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-03 16:38:41 -0700
committerFuwn <[email protected]>2021-05-03 16:38:41 -0700
commite1e781bb2135ef78592226f1a3eaba4925702f1f (patch)
tree8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/network/appInitCmd.java
downloadworlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz
worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip
:star:HEADmain
Diffstat (limited to 'NET/worlds/network/appInitCmd.java')
-rw-r--r--NET/worlds/network/appInitCmd.java81
1 files changed, 81 insertions, 0 deletions
diff --git a/NET/worlds/network/appInitCmd.java b/NET/worlds/network/appInitCmd.java
new file mode 100644
index 0000000..60b4eb3
--- /dev/null
+++ b/NET/worlds/network/appInitCmd.java
@@ -0,0 +1,81 @@
+/* */ 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
+ */ \ No newline at end of file