C_ItemUSe.JAVA
//密碼修改卷
} else if (itemId == 70154) {
Connection connection = null;
connection = L1DatabaseFactory.getInstance().getConnection();
PreparedStatement preparedstatement = connection.prepareStatement("DELETE FROM accounts WHERE login=?");
preparedstatement.setString(1, client.getAccountName());
preparedstatement.execute();
preparedstatement.close();
connection.close();
pc.sendPackets(new S_SystemMessage("密碼已被清除,請重新登入,輸入新密碼。"));
pc.getInventory().removeItem(l1iteminstance, 1);
複製代碼
沒有留言:
張貼留言