Guest User

Untitled

a guest
Jul 20th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. public static int SetTabMagic() {
  2. try {
  3. Class<?> player = Hooks.getClass(Hooks.getOpenTab[0]);
  4. Field f = player.getDeclaredField(Hooks.getOpenTab[1]);
  5. f.setAccessible(true);
  6. f.setInt(null, 6);
  7. if (f.get(Hooks.getClientInstance()) != null) {
  8. return f.getInt(Hooks.getClientInstance());
  9. }
  10. } catch (SecurityException e) {
  11. // TODO Auto-generated catch block
  12. e.printStackTrace();
  13. } catch (NoSuchFieldException e) {
  14. // TODO Auto-generated catch block
  15. e.printStackTrace();
  16. } catch (IllegalArgumentException e) {
  17. // TODO Auto-generated catch block
  18. e.printStackTrace();
  19. } catch (IllegalAccessException e) {
  20. // TODO Auto-generated catch block
  21. e.printStackTrace();
  22. }
  23. return -1;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment