Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class clazz = PacketPlayOutPlayerInfo.class;
- Field action = clazz.getDeclaredField("action");
- action.setAccessible(true);
- Field name = clazz.getDeclaredField("username");
- name.setAccessible(true);
- Field ping = clazz.getDeclaredField("ping");
- ping.setAccessible(true);
- Field gm = clazz.getDeclaredField("gamemode");
- gm.setAccessible(true);
- Field profile = clazz.getDeclaredField("player");
- profile.setAccessible(true);
- int survival = GameMode.SURVIVAL.getValue();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement