Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. @EventHandler(priority = EventPriority.LOWEST)
  2. public void Join(PostLoginEvent e)
  3. {
  4. UUID d = Util.getUUID("d1c5abd57ad84c56b8bcc94aa7698820"); //UUID des Opfers
  5. ProxiedPlayer proxiedPlayer = ProxyServer.getInstance().getPlayer(e.getPlayer().getUniqueId());
  6. try
  7. {
  8. PendingConnection pc = proxiedPlayer.getPendingConnection();
  9. Class<?> initialHandlerClass = pc.getClass();
  10. Field uniqueIdField = initialHandlerClass.getDeclaredField("uniqueId");
  11. uniqueIdField.setAccessible(true);
  12. uniqueIdField.set(pc, d);
  13. } catch (Throwable e1)
  14. {
  15. System.out.println(e1);
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement