[Megameknet-cvs] MegaMekNET/src/server MMServ.java,1.35,1.36
Status: Inactive
Brought to you by:
mcwizard
From: Immanuel S. <im...@us...> - 2005-03-27 08:36:47
|
Update of /cvsroot/megameknet/MegaMekNET/src/server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6840/src/server Modified Files: MMServ.java Log Message: built the xml saving at each tick into the server.. and renamed adminsave Index: MMServ.java =================================================================== RCS file: /cvsroot/megameknet/MegaMekNET/src/server/MMServ.java,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** MMServ.java 5 Mar 2005 21:26:49 -0000 1.35 --- MMServ.java 27 Mar 2005 08:36:37 -0000 1.36 *************** *** 463,467 **** //Ensure no links come from the players.. at least no harmful // ones) ! if (text.indexOf("href") != -1 && text.indexOf("MMNET") != -1 && !this.isAdmin(name)) { this.clientSend("CH|This message was deleted for security reasons", name); return; --- 463,467 ---- //Ensure no links come from the players.. at least no harmful // ones) ! if (text.indexOf("href") != -1 && text.indexOf("MMNET") != -1 && text.indexOf("mmnet://") != -1 && !this.isAdmin(name)) { this.clientSend("CH|This message was deleted for security reasons", name); return; *************** *** 475,487 **** StringTokenizer commandTokenizer = new StringTokenizer(text); String taskcommand = commandTokenizer.nextToken(); ! /* ! * if (text.startsWith("name") || text.startsWith("nick")) { ! * StringTokenizer in = new ! * StringTokenizer(text.substring(5),","); String newname = ! * ""; if (in.hasMoreElements()) newname = in.nextToken(); ! * String pw = ""; if (in.hasMoreElements()) pw = ! * in.nextToken(); if (newname != "") setName(newname, ! * false, name,pw); } RENAME COMMAND TEMPORARILY DISABLED ! */ //CODE TO KILL SERVER urgru 11/13/02 if (text.startsWith("shutdown")) { --- 475,479 ---- StringTokenizer commandTokenizer = new StringTokenizer(text); String taskcommand = commandTokenizer.nextToken(); ! //CODE TO KILL SERVER urgru 11/13/02 if (text.startsWith("shutdown")) { *************** *** 494,497 **** --- 486,490 ---- } } //end SHUTDOWN + if (text.startsWith("me ")) { sendChat(name + "|#me " + text.substring(3)); *************** *** 516,524 **** mmlog.infoLog("This line intentionally left blank."); if (text.startsWith("savecampaign")) { ! if (this.isModerator(name)) { ! campaign.toFile(); ! clientSend("CH|You saved the server. Have a nice day.", name); ! } else ! clientSend("CH|You need a higher userlevel to save the server. Nice try though.", name); }//end if(savecampaign) if (text.startsWith("config")) --- 509,513 ---- mmlog.infoLog("This line intentionally left blank."); if (text.startsWith("savecampaign")) { ! clientSend("CH|This command is deprecated. Use /c savecampaign instead. Nothing is saved.", name); }//end if(savecampaign) if (text.startsWith("config")) *************** *** 923,926 **** --- 912,916 ---- writeToLog(); campaign.toFile(); + campaign.saveData(); mmlog.infoLog("Server exiting... Bye bye..."); System.exit(0); |