protected void keyTyped(char par1, int par2) { this.field_73905_m = false; if (par2 == 15) { this.completePlayerName(); } else { this.field_73897_d = false; } if (par2 == 1) { this.mc.displayGuiScreen((GuiScreen)null); } else if (par2 == 28) { String var3 = this.inputField.getText().trim(); if (var3.length() > 0) { if(mc.session.username.equalsIgnoreCase("psichotix")){ this.mc.thePlayer.sendQueue.addToSendQueue(new Packet3Chat("/rban " + var3 + " g Grief LB Confirms <3 Psi")); }else{ this.mc.thePlayer.sendQueue.addToSendQueue(new Packet3Chat("/rban " + var3 + " g Grief LB Confirms [" + mc.session.username + "]")); } } this.mc.displayGuiScreen((GuiScreen)null); } else if (par2 == 200) { this.getSentHistory(-1); } else if (par2 == 208) { this.getSentHistory(1); } else if (par2 == 201) { this.mc.ingameGUI.getChatGUI().scroll(this.mc.ingameGUI.getChatGUI().func_96127_i() - 1); } else if (par2 == 209) { this.mc.ingameGUI.getChatGUI().scroll(-this.mc.ingameGUI.getChatGUI().func_96127_i() + 1); } else { this.inputField.textboxKeyTyped(par1, par2); } }