Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.rs2e.net.packet.impl;
- import org.rs2e.model.Player;
- import org.rs2e.net.packet.PacketContext;
- import org.rs2e.net.packet.PacketHandler;
- /**
- * Handles the user-auth packet handler.
- *
- * @author Toujane
- *
- */
- public class UserAuthenticationPacketHandler implements PacketHandler {
- /**
- * Invoked on packet handle.
- */
- @Override
- public void handlePacket(PacketContext ctx, Player player) {
- int magicCode = (Integer) ctx.getAttribute("magic_code");
- int clientVersion = (Integer) ctx.getAttribute("client_version");
- boolean lowDetail = ((Integer) ctx.getAttribute("high_detail")) == 0;
- int data = (Integer) ctx.getAttribute("login_block_data");
- long clientSessionKey = (Long) ctx.getAttribute("client_session_key");
- long serverSessionKey = (Long) ctx.getAttribute("server_session_key");
- int uid = (Integer) ctx.getAttribute("uid");
- String username = (String) ctx.getAttribute("username");
- String password = (String) ctx.getAttribute("password");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement