PlayerDCHandler.java
资源名称:src.rar [点击查看]
上传用户:gwt600
上传日期:2021-06-03
资源大小:704k
文件大小:1k
源码类别:
游戏
开发平台:
Java
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package net.sf.odinms.net.login.handler;
- import net.sf.odinms.client.MapleClient;
- import net.sf.odinms.net.AbstractMaplePacketHandler;
- import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;
- /**
- *
- * @author XoticStory.
- * This handler makes sure the player is logged out
- * Doing this ensures that we dont get the 'already logged in' thingo.
- */
- public class PlayerDCHandler extends AbstractMaplePacketHandler {
- @Override
- public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
- /* Connection con = DatabaseConnection.getConnection();
- try {
- PreparedStatement ps = con.prepareStatement("UPDATE accounts SET loggedin WHERE name = ?");
- ps.setString(1, c.getAccountName());
- ps.executeUpdate();
- ps.close();
- } catch (SQLException se) {
- }
- }*/
- }
- }