Advertisement
Guest User

Untitled

a guest
May 26th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.00 KB | None | 0 0
  1. package org.rs2e.net.packet.impl;
  2.  
  3. import org.rs2e.model.Player;
  4. import org.rs2e.net.packet.PacketContext;
  5. import org.rs2e.net.packet.PacketHandler;
  6.  
  7. /**
  8.  * Handles the user-auth packet handler.
  9.  *
  10.  * @author Toujane
  11.  *
  12.  */
  13. public class UserAuthenticationPacketHandler implements PacketHandler {
  14.  
  15.     /**
  16.      * Invoked on packet handle.
  17.      */
  18.     @Override
  19.     public void handlePacket(PacketContext ctx, Player player) {
  20.         int magicCode = (Integer) ctx.getAttribute("magic_code");
  21.         int clientVersion = (Integer) ctx.getAttribute("client_version");
  22.         boolean lowDetail = ((Integer) ctx.getAttribute("high_detail")) == 0;
  23.         int data = (Integer) ctx.getAttribute("login_block_data");
  24.         long clientSessionKey = (Long) ctx.getAttribute("client_session_key");
  25.         long serverSessionKey = (Long) ctx.getAttribute("server_session_key");
  26.         int uid = (Integer) ctx.getAttribute("uid");
  27.         String username = (String) ctx.getAttribute("username");
  28.         String password = (String) ctx.getAttribute("password");
  29.     }
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement