Buggy code:
public class FirstTutorialBattle extends BattleTask { private int playerMoveCount ; public FirstTutorialBattle ( Group team1 , Group team2 ) { } @ Override public void run ( ) { } private boolean doEvent ( PlayerGroup g ) { StringBuffer buf = new StringBuffer ( ) ; BufferedReader in = g . getInFromClient ( ) ; String input ; switch ( playerMoveCount ) { case 1 : g . getAtRoom ( ) . informRoom ( "<ENTER>\n" ) ; IOUtil . clearBufferedReader ( in ) ; buf . append ( "ÀNµØ¤ß·Q¡G¶ã¶ã¶ã¡A¨­¤W¦³¤°»ò¥i¥H¥ÎªºªF¦è¶Ü?" ) ; EventUtil . informReset ( g , buf , in ) ; buf . append ( "»¡©ú¡G¿é¤J\"inventory\"©Î\"i\"¥i¬d¬Ý²{¦b¨­¤W±aªºª««~¦³­þ¨Ç¡C\n" ) ; buf . append ( "½Ð¿é¤J\"inventory\"©Î\"i\"¨Ó¬d¬Ý¨­¤Wªºª««~¡C" ) ; g . getAtRoom ( ) . informRoom ( ( ( buf . toString ( ) ) + "\n" ) ) ; buf . setLength ( 0 ) ; input = IOUtil . readLineFromClientSocket ( in ) ; while ( ( ! ( input . equals ( "inventory" ) ) ) && ( ! ( input . equals ( "i" ) ) ) ) { g . getAtRoom ( ) . informRoom ( "½Ð¿é¤J\"inventory\"©Î\"i\"¨Ó¬d¬Ý¨­¤Wªºª««~¡C\n" ) ; input = IOUtil . readLineFromClientSocket ( in ) ; } String [ ] msg = new String [ ] { "inventory" } ; CommandServer . readCommand ( g , msg ) ; buf . append ( "ÀNµØ«rµÛ¤ú¡G\"´¶ª«½Ò¥»¤S«p¤S­«¡A´N®³³o­Ó¨ÓÀ³¾Ô§a¡C\"" ) ; EventUtil . informReset ( g , buf , in ) ; buf . append ( "»¡©ú¡G§A¥i¥H¨Ï¥Î\"wear\"«ü¥O¨ÓÅý¨¤¦â¬ï¤W¬Y¥ó¸Ë³Æ¡C«ü¥O®æ¦¡¬°\n" ) ; buf . append ( "\"<¨¤¦â­^¤å¦W¦r><seq2seq4repair_space><wear><seq2seq4repair_space><¸Ë³Æ¦WºÙ>\"¡C¥ç¥i¨Ï¥Î\"remove\"\n" ) ; <START_BUG> buf . append ( "«ü¥O¨Ó²æ¤U¸Ë³Æ¡C®æµø¬°\"<¨¤¦â­^¤å¦W¦r><seq2seq4repair_space><remove><seq2seq4repair_space><¸Ë³Æ¦WºÙ>\"¡C\n" ) ; <END_BUG> buf . append ( "­Y³Ì«e­±¤£¥[¤W¨¤¦â¦WºÙ¡A«h¦Û°Ê«ü©w¬°¶¤¥î¤¤²Ä¤@­Ó¨¤¦â¶i¦æ°Ê§@¡C\n" ) ; buf . append ( "¦b¾Ô°«¤¤wear//remove¬Ò®ø¯Ó¨¤¦â¤@¦^¦Xªº®É¶¡¡C¸Ô²Ó»¡©ú¥i¿é¤J\n" ) ; buf . append ( "\"help<seq2seq4repair_space>wear\"¥H¤Î\"help<seq2seq4repair_space>remove\"¨Ó¬d¸ß¡C" ) ; EventUtil . informReset ( g , buf , in ) ; g . getAtRoom ( ) . informRoom ( "½Ð¿é¤J\"wear<seq2seq4repair_space>book\"±N´¶ª«½Ò¥»¸Ë³Æ°_¨Ó¡C\n" ) ; input = IOUtil . readLineFromClientSocket ( in ) ; while ( ! ( input . equals ( "wear<seq2seq4repair_space>book" ) ) ) { g . getAtRoom ( ) . informRoom ( "½Ð¿é¤J\"wear<seq2seq4repair_space>book\"±N´¶ª«½Ò¥»¸Ë³Æ°_¨Ó¡C\n" ) ; input = IOUtil . readLineFromClientSocket ( in ) ; } String [ ] msg2 = new String [ ] { "wear" , "book" } ; CommandServer . readCommand ( g , msg2 ) ; return true ; case 2 : g . getAtRoom ( ) . informRoom ( "<ENTER>\n" ) ; IOUtil . clearBufferedReader ( in ) ; buf . append ( "ÀNµØ¡G\"¨S¿ìªk¤F¡A¥u¯à¥ý³]ªk§â¥L¥´·w¡A¤£µM³s§Ú¦Û¤v³£©Ê©RÃø«O!\"" ) ; EventUtil . informReset ( g , buf , in ) ; buf . append ( "»¡©ú¡G§A¥i¥H¿é¤J\"equipment\"©Î\"eq\"¨Ó¬d¬Ý¶¤¥î¤¤¨¤¦âªº¸Ë³Æ\n" ) ; buf . append ( "±¡ªp¡A«ü¥O®æ¦¡¬°\"<¨¤¦â­^¤å¦W¦r><seq2seq4repair_space><equipment>\"¡C­Y«e­±¤£¿é¤J\n" ) ; buf . append ( "¨¤¦â¦WºÙ¡A«h¦Û°Ê«ü©w¶¤¥î¤¤²Ä¤@¦ì¨¤¦â§@¬°¾Þ§@¹ï¶H¡C\n" ) ; buf . append ( "¸Ô²Ó»¡©ú¥i¿é¤J\"help<seq2seq4repair_space>equipment\"¨Ó¬d¸ß¡C" ) ; EventUtil . informReset ( g , buf , in ) ; g . getAtRoom ( ) . informRoom ( "½Ð¿é¤J\"equipment\"©Î\"eq\"¨Ó¬d¬ÝÀNµØªº¸Ë³Æ¡C\n" ) ; input = IOUtil . readLineFromClientSocket ( in ) ; while ( ( ! ( input . equals ( "equipment" ) ) ) && ( ! ( input . equals ( "eq" ) ) ) ) { g . getAtRoom ( ) . informRoom ( "½Ð¿é¤J\"equipment\"©Î\"eq\"¨Ó¬d¬ÝÀNµØªº¸Ë³Æ¡C\n" ) ; input = IOUtil . readLineFromClientSocket ( in ) ; } String [ ] msg3 = new String [ ] { "equipment" } ; CommandServer . readCommand ( g , msg3 ) ; buf . append ( "»¡©ú¡G´¶³q§ðÀ»«ü¥O¬°\"attack\"©Î\"at\"¡A«ü¥O®æ¦¡¬°\n" ) ; buf . append ( "\"<§Ú¤è¨¤¦â¦WºÙ><seq2seq4repair_space><attack><seq2seq4repair_space><¼Ä¤è¨¤¦â¦WºÙ>\"¡C­Y¤£«ü©w§Ú¤è\n" ) ; buf . append ( "¨¤¦â¦WºÙ¡A«h¦Û°Ê«ü©w¶¤¥î¤¤ªº²Ä¤@¦ì¨¤¦â¨Ó°Ê§@¡C¥t¥~¡A¦b¾Ô°«¤¤\n" ) ; buf . append ( "­Y¤£«ü©w¯S©w¼Ä¤è¥Ø¼Ð¡A«h¦Û°Ê«ü©w¼Ä¤è¶¤¥î¤¤²Ä¤@¦ì¨¤¦â¶i¦æ§ðÀ»\n" ) ; buf . append ( "¡C¸Ô²Ó»¡©ú¥i¿é¤J\"help<seq2seq4repair_space>attack\"¨Ó¬d¸ß¡C" ) ; EventUtil . informReset ( g , buf , in ) ; g . getAtRoom ( ) . informRoom ( "½Ð¿é¤J\"at<seq2seq4repair_space>roommate\"©Î\"at\"¨Ó§ðÀ»«Ç¤Í¡C\n" ) ; input = IOUtil . readLineFromClientSocket ( in ) ; while ( ( ! ( input . equals ( "at<seq2seq4repair_space>roommate" ) ) ) && ( ! ( input . equals ( "at" ) ) ) ) { g . getAtRoom ( ) . informRoom ( "½Ð¿é¤J\"at<seq2seq4repair_space>roommate\"©Î\"at\"¨Ó§ðÀ»«Ç¤Í¡C\n" ) ; input = IOUtil . readLineFromClientSocket ( in ) ; } String [ ] msg4 = new String [ ] { "at" , "roommate" } ; CommandServer . readCommand ( g , msg4 ) ; g . setInEvent ( false ) ; return true ; case 5 : buf . append ( "´£¥Ü¡G­«½Æ¿é¤J¦P¼Ëªº«ü¥O«Ü·Ð¶Ü?<seq2seq4repair_space>§A¥i¥H§Q¥Î\"!\"«ü¥O¥Nªí§A\n" ) ; buf . append ( "¤W¤@¦¸¿é¤Jªº«ü¥O³á!<seq2seq4repair_space>§A¥i¥H¸ÕµÛ¨Ï¥Î\"!\"¨Ó¥N´À\"at\"©Î\n" ) ; buf . append ( "\"at<seq2seq4repair_space>roommate\"¡C\n" ) ; g . getAtRoom ( ) . informRoom ( buf . toString ( ) ) ; } return false ; } }

Fix:
buf . append ( "«ü¥O¨Ó²æ¤U¸Ë³Æ¡C®æ¦¡¬°\"<¨¤¦â­^¤å¦W¦r><seq2seq4repair_space><remove><seq2seq4repair_space><¸Ë³Æ¦WºÙ>\"¡C\n" ) ;