Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int SetTabMagic() {
- try {
- Class<?> player = Hooks.getClass(Hooks.getOpenTab[0]);
- Field f = player.getDeclaredField(Hooks.getOpenTab[1]);
- f.setAccessible(true);
- f.setInt(null, 6);
- if (f.get(Hooks.getClientInstance()) != null) {
- return f.getInt(Hooks.getClientInstance());
- }
- } catch (SecurityException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NoSuchFieldException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IllegalArgumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment