Исходник AnarcySpam | Expensive 3.1

Начинающий
Статус
Оффлайн
Регистрация
3 Окт 2022
Сообщения
177
Реакции[?]
1
Поинты[?]
1K

Перед прочтением основного контента ниже, пожалуйста, обратите внимание на обновление внутри секции Майна на нашем форуме. У нас появились:

  • бесплатные читы для Майнкрафт — любое использование на свой страх и риск;
  • маркетплейс Майнкрафт — абсолютно любая коммерция, связанная с игрой, за исключением продажи читов (аккаунты, предоставления услуг, поиск кодеров читов и так далее);
  • приватные читы для Minecraft — в этом разделе только платные хаки для игры, покупайте группу "Продавец" и выставляйте на продажу свой софт;
  • обсуждения и гайды — всё тот же раздел с вопросами, но теперь модернизированный: поиск нужных хаков, пати с игроками-читерами и другая полезная информация.

Спасибо!

Вводите текст, включаете что нужно, после он сам бегает по анкам и спамит текстом.

Java:
package im.expensive.functions.impl.player;

import com.google.common.eventbus.Subscribe;
import im.expensive.events.EventUpdate;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.settings.Setting;
import im.expensive.functions.settings.impl.BooleanSetting;
import im.expensive.functions.settings.impl.StringSetting;
import im.expensive.utils.client.TimerUtil;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Random;
import java.util.Set;
import net.minecraft.client.network.play.NetworkPlayerInfo;

@FunctionRegister(
    name = "AnarchySpam",
    type = Category.Player
)
public class AnarchySpam extends Function {
    private final StringSetting msgtosend = new StringSetting("Сообщение", "текст", "Введите сообщение для флуда");
    private final BooleanSetting aspambypass = new BooleanSetting("Обход антиспама", false);
    private final BooleanSetting staffprovirka = new BooleanSetting("Проверка на стафф", false);
    private static final Set<String> Staffs = new HashSet(Arrays.asList("artem_pawlow", "yaBIG_PIG", "leon4ik1265", "M0Rell", "ItsLaMeNo228", "[I]XrABroStb[/I]", "[I]Wasted[/I]", "Rnzai101", "d3s1rr", "Xinero", "shift1K", "catwithcider", "ferdiguns", "elvawix", "pakucon", "Dangerwan", "AaseKasse", "kotwithcookie", "5ivkola", "qartem_pawlow", "yaBIG_PIG", "leon4ik1265", "M0Rell", "ItsLaMeNo228", "[I]XrABroStb[/I]", "[I]Wasted[/I]", "Rnzai101", "Xinero", "shift1K", "catwithcider", "ferdiguns", "elvawix", "pakucon", "Dangerwan", "AaseKasse", "kotwithcookie", "5ivkola", "qqlone", "yaPankYaLegenda", "killaura46", "HedRed2008", "sovipis213", "Kuratev", "DisNaLuk", "Xvostik333", "[I]PoJlToH_v_KeDaX", "GigabyteTop001", "stasikpid228", "Prepo_Tar", "DestroyeBoy", "ShulkerMe", "Sinex87", "catwithwine", "FrostyKKKKKKk", "_Holgan[/I]", "Alisa_Lisna", "Stringers", "Shadow_Divine", "qwertyrrr", "bublikbesplatno", "teckstyra", "olegun", "Nesquik213", "hot_chick_", "nevepsycho", "Fen1x_b1b0", "Homechok", "Evgeny6780", "freylik", "axcu32", "1Viad", "Ecstacy_level", "216mypeek", "KotBac9", "Glebik_Viz", "lastocha_zxc", "[I]Clinkz[/I]", "Noghtalit", "ckyka0_0", "stalin_vozhd", "hi1kz0", "ThunderShadow", "[I]4y4kek[/I]", "Raudov_", "Laossium", "Da1mon_666", "DelsHearTache", "[I]Drase[/I]", "WhiteMan4990", "shardov", "Bakkap", "MANDA_R1NKA", "Jeson", "rabai", "Tukich_bavalo", "NE_MANZARIUS", "faquesty", "itstik66", "leozart228", "[I]TBo9I_PaDoSTb", "MercyIzReal", "catwithbeer", "tequesty", "Black_Star_Girl", "Fr1znt", "Bayerfn", "TesTar1254", "Dinar1001", "Apollons", "YALAMA", "ArtCombo", "siinta", "BuHoBHuK_[/I]", "qveezer_", "Hadzaki", "Mavgr1758", "kiselb312123", "milkimas", "[I]Rape_seRies", "TheJustice", "Ya_He_power", "FacelessEgoist", "ThunderRoses", "_MoonM1ce[/I]", "[I]Gesichtslos[/I]", "Capitello", "DenekelYT", "Tinkers", "bone1nis", "FeelingHollow_", "ucTePuka", "Keldif", "Kuratev", "Da1mon666", "Fen1x_b1b0", "Raudov", "5ivkola", "Psycho_what", "GigabyteTop001", "Xinero", "1Valhalla", "Sinex87", "pakucon", "Shadow_Divine", "yaPankYaLegenda", "ferdiguns", "Nesquik213", "Alisa_Lisna", "bublikbesplatno", "killaura46", "Prepo_Tar", "Xvostik333", "DAHR2023", "artem_pawlow", "Laossium", "xerinai", "merlin1601", "teckstyra", "[I]Wasted[/I]", "olegun", "qqlone", "sovipis213", "nikita200404", "hi1kz0", "leon4ik1265", "Dangerwan", "Berasd_Master", "stasikpid228", "sienduk123", "Homechok", "DisNaLuk", "Evgeny6780", "DisNaLuk", "Noghtalit", "axcu32", "UZI", "DelsHearTache", "1WantToXyranaz", "hotchick", "krap1wka_ZXC", "[B]pups[/B]", "Sinex87", "nikita200404", "sovipis213", "hot_chick_", "[I]PoJlToH_v_KeDaX", "yaPankYaLegenda", "qwertyrrr", "ferdiguns", "Shadow_Divine", "stasikpid228", "_Bedmak[/I]", "Homechok", "xerinai", "merlin1601", "krap1wka_ZXC", "5ivkola", "pakucon", "stasikpid228", "Raudov_", "FatherlyLynx331", "ferdiguns", "apathyxdxdxdxd", "Fen1x_b1b0", "KLIKER_22", "merlin1601", "Da1mon_666", "Frostyqeaz", "1Valhalla", "FakeHappinessS", "bublikplatno", "KATYAN", "super_ne_chiter", "KreesTees", "DelsHearTache", "1WantToXyranaz", "krap1wka_zxc", "HepBbl_HoPM", "Iglobruh19", "Temniydar", "PopaBobra19", "Tosterw", "homechok", "Holgan", "pups"));
    private static final int[] ANARCHY_NUMBERS = new int[]{103, 104, 105, 106, 107, 108, 109, 110, 208, 209, 210, 211, 212, 213, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 503, 504, 505, 506, 507, 508, 509, 510, 602, 603, 604, 605, 606};
    private static final int ENTER_ANARCHY_DELAY_MS = 600;
    private static final int MESSAGE_SEND_DELAY_MS = 340;
    private static final int FINAL_DELAY_MS = 90;
    private int currentAnarchyIndex = 0;
    private TimerUtil timerUtil = new TimerUtil();
    private boolean enteringAnarchy = true;
    private boolean sendingMessage = false;
    private boolean finalDelay = false;
    private final Random random = new Random();

    public AnarchySpam() {
        this.addSettings(new Setting[]{this.msgtosend, this.aspambypass, this.staffprovirka});
    }

    @Subscribe
    public void onUpdate(EventUpdate event) {
        if (this.enteringAnarchy) {
            if (this.timerUtil.hasTimeElapsed(600L, true)) {
                int anarchyNumber = ANARCHY_NUMBERS[this.currentAnarchyIndex];
                String chatCommand = "/an" + anarchyNumber;
                mc.player.sendChatMessage(chatCommand);
                this.enteringAnarchy = false;
                this.sendingMessage = true;
            }
        } else if (this.sendingMessage) {
            if ((Boolean)this.staffprovirka.get() && this.isStaffPresent()) {
                this.resetToNextAnarchy();
            } else if (this.timerUtil.hasTimeElapsed(340L, true)) {
                String messageToSend = (String)this.msgtosend.get();
                if ((Boolean)this.aspambypass.get()) {
                    messageToSend = messageToSend + this.getRandomSuffix();
                }

                mc.player.sendChatMessage(messageToSend);
                this.sendingMessage = false;
                this.finalDelay = true;
            }
        } else if (this.finalDelay && this.timerUtil.hasTimeElapsed(90L, true)) {
            ++this.currentAnarchyIndex;
            if (this.currentAnarchyIndex >= ANARCHY_NUMBERS.length) {
                this.print("Успешно!");
                this.toggle();
                this.resetState();
            } else {
                this.enteringAnarchy = true;
                this.finalDelay = false;
            }
        }

    }

    private boolean isStaffPresent() {
        Iterator var1 = mc.getConnection().getPlayerInfoMap().iterator();

        NetworkPlayerInfo playerInfo;
        do {
            if (!var1.hasNext()) {
                return false;
            }

            playerInfo = (NetworkPlayerInfo)var1.next();
        } while(!Staffs.contains(playerInfo.getGameProfile().getName()));

        return true;
    }

    private void resetToNextAnarchy() {
        this.sendingMessage = false;
        this.finalDelay = true;
        this.timerUtil.reset();
    }

    private String getRandomSuffix() {
        StringBuilder suffix = new StringBuilder();

        for(int i = 0; i < 4; ++i) {
            suffix.append((char)(97 + this.random.nextInt(26)));
        }

        return suffix.toString();
    }

    public void onEnable() {
        super.onEnable();
        this.resetState();
    }

    public void onDisable() {
        super.onDisable();
        this.resetState();
    }

    private void resetState() {
        this.currentAnarchyIndex = 0;
        this.enteringAnarchy = true;
        this.sendingMessage = false;
        this.finalDelay = false;
    }
}
Пожалуйста, авторизуйтесь для просмотра ссылки.
 
Начинающий
Статус
Оффлайн
Регистрация
21 Ноя 2021
Сообщения
37
Реакции[?]
1
Поинты[?]
0
класс TimerUtil:
package pu.code.oxcode.utils;

public class TimerUtil {
    public long lastMS = System.currentTimeMillis();

    public void reset() {
        this.lastMS = System.currentTimeMillis();
    }

    public boolean hasTimeElapsed(long time, boolean reset) {
        if (System.currentTimeMillis() - this.lastMS > time) {
            if (reset) {
                this.reset();
            }

            return true;
        } else {
            return false;
        }
    }

    public long getLastMS() {
        return this.lastMS;
    }

    public void setLastMC() {
        this.lastMS = System.currentTimeMillis();
    }

    public boolean hasTimeElapsed(long time) {
        return System.currentTimeMillis() - this.lastMS > time;
    }

    public long getTime() {
        return System.currentTimeMillis() - this.lastMS;
    }

    public void setTime(long time) {
        this.lastMS = time;
    }
}
 
Начинающий
Статус
Оффлайн
Регистрация
22 Июл 2024
Сообщения
154
Реакции[?]
2
Поинты[?]
2K
Код:
package im.expensive.utils.client;

public class TimerUtil {
    private long lastMS;

    public TimerUtil() {
        this.reset();
    }

    public boolean hasReached(double delay) {
        return this.getTime() >= delay;
    }

    public long getTime() {
        return System.currentTimeMillis() - this.lastMS;
    }

    public void reset() {
        this.lastMS = System.currentTimeMillis();
    }

    public boolean hasTimeElapsed(long milliseconds) {
        return System.currentTimeMillis() - lastMS >= milliseconds;
    }

    public boolean hasTimeElapsed(long l, boolean b) {
        return false;
    }
}
 
Начинающий
Статус
Оффлайн
Регистрация
21 Ноя 2021
Сообщения
37
Реакции[?]
1
Поинты[?]
0
Код:
package im.expensive.utils.client;

public class TimerUtil {
    private long lastMS;

    public TimerUtil() {
        this.reset();
    }

    public boolean hasReached(double delay) {
        return this.getTime() >= delay;
    }

    public long getTime() {
        return System.currentTimeMillis() - this.lastMS;
    }

    public void reset() {
        this.lastMS = System.currentTimeMillis();
    }

    public boolean hasTimeElapsed(long milliseconds) {
        return System.currentTimeMillis() - lastMS >= milliseconds;
    }

    public boolean hasTimeElapsed(long l, boolean b) {
        return false;
    }
}
я уже ему кинул код
 
Начинающий
Статус
Оффлайн
Регистрация
23 Апр 2024
Сообщения
12
Реакции[?]
0
Поинты[?]
0
Вводите текст, включаете что нужно, после он сам бегает по анкам и спамит текстом.

Java:
package im.expensive.functions.impl.player;

import com.google.common.eventbus.Subscribe;
import im.expensive.events.EventUpdate;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.settings.Setting;
import im.expensive.functions.settings.impl.BooleanSetting;
import im.expensive.functions.settings.impl.StringSetting;
import im.expensive.utils.client.TimerUtil;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Random;
import java.util.Set;
import net.minecraft.client.network.play.NetworkPlayerInfo;

@FunctionRegister(
    name = "AnarchySpam",
    type = Category.Player
)
public class AnarchySpam extends Function {
    private final StringSetting msgtosend = new StringSetting("Сообщение", "текст", "Введите сообщение для флуда");
    private final BooleanSetting aspambypass = new BooleanSetting("Обход антиспама", false);
    private final BooleanSetting staffprovirka = new BooleanSetting("Проверка на стафф", false);
    private static final Set<String> Staffs = new HashSet(Arrays.asList("artem_pawlow", "yaBIG_PIG", "leon4ik1265", "M0Rell", "ItsLaMeNo228", "[I]XrABroStb[/I]", "[I]Wasted[/I]", "Rnzai101", "d3s1rr", "Xinero", "shift1K", "catwithcider", "ferdiguns", "elvawix", "pakucon", "Dangerwan", "AaseKasse", "kotwithcookie", "5ivkola", "qartem_pawlow", "yaBIG_PIG", "leon4ik1265", "M0Rell", "ItsLaMeNo228", "[I]XrABroStb[/I]", "[I]Wasted[/I]", "Rnzai101", "Xinero", "shift1K", "catwithcider", "ferdiguns", "elvawix", "pakucon", "Dangerwan", "AaseKasse", "kotwithcookie", "5ivkola", "qqlone", "yaPankYaLegenda", "killaura46", "HedRed2008", "sovipis213", "Kuratev", "DisNaLuk", "Xvostik333", "[I]PoJlToH_v_KeDaX", "GigabyteTop001", "stasikpid228", "Prepo_Tar", "DestroyeBoy", "ShulkerMe", "Sinex87", "catwithwine", "FrostyKKKKKKk", "[I]Holgan[/I]", "Alisa_Lisna", "Stringers", "Shadow_Divine", "qwertyrrr", "bublikbesplatno", "teckstyra", "olegun", "Nesquik213", "hot_chick[/I]", "nevepsycho", "Fen1x_b1b0", "Homechok", "Evgeny6780", "freylik", "axcu32", "1Viad", "Ecstacy_level", "216mypeek", "KotBac9", "Glebik_Viz", "lastocha_zxc", "[I]Clinkz[/I]", "Noghtalit", "ckyka0_0", "stalin_vozhd", "hi1kz0", "ThunderShadow", "[I]4y4kek[/I]", "Raudov_", "Laossium", "Da1mon_666", "DelsHearTache", "[I]Drase[/I]", "WhiteMan4990", "shardov", "Bakkap", "MANDA_R1NKA", "Jeson", "rabai", "Tukich_bavalo", "NE_MANZARIUS", "faquesty", "itstik66", "leozart228", "[I]TBo9I_PaDoSTb", "MercyIzReal", "catwithbeer", "tequesty", "Black_Star_Girl", "Fr1znt", "Bayerfn", "TesTar1254", "Dinar1001", "Apollons", "YALAMA", "ArtCombo", "siinta", "BuHoBHuK_[/I]", "qveezer_", "Hadzaki", "Mavgr1758", "kiselb312123", "milkimas", "[I]Rape_seRies", "TheJustice", "Ya_He_power", "FacelessEgoist", "ThunderRoses", "[I]MoonM1ce[/I]", "[I]Gesichtslos[/I]", "Capitello", "DenekelYT", "Tinkers", "bone1nis", "FeelingHollow[/I]", "ucTePuka", "Keldif", "Kuratev", "Da1mon666", "Fen1x_b1b0", "Raudov", "5ivkola", "Psycho_what", "GigabyteTop001", "Xinero", "1Valhalla", "Sinex87", "pakucon", "Shadow_Divine", "yaPankYaLegenda", "ferdiguns", "Nesquik213", "Alisa_Lisna", "bublikbesplatno", "killaura46", "Prepo_Tar", "Xvostik333", "DAHR2023", "artem_pawlow", "Laossium", "xerinai", "merlin1601", "teckstyra", "[I]Wasted[/I]", "olegun", "qqlone", "sovipis213", "nikita200404", "hi1kz0", "leon4ik1265", "Dangerwan", "Berasd_Master", "stasikpid228", "sienduk123", "Homechok", "DisNaLuk", "Evgeny6780", "DisNaLuk", "Noghtalit", "axcu32", "UZI", "DelsHearTache", "1WantToXyranaz", "hotchick", "krap1wka_ZXC", "[B]pups[/B]", "Sinex87", "nikita200404", "sovipis213", "hot_chick_", "[I]PoJlToH_v_KeDaX", "yaPankYaLegenda", "qwertyrrr", "ferdiguns", "Shadow_Divine", "stasikpid228", "[I]Bedmak[/I]", "Homechok", "xerinai", "merlin1601", "krap1wka_ZXC", "5ivkola", "pakucon", "stasikpid228", "Raudov[/I]", "FatherlyLynx331", "ferdiguns", "apathyxdxdxdxd", "Fen1x_b1b0", "KLIKER_22", "merlin1601", "Da1mon_666", "Frostyqeaz", "1Valhalla", "FakeHappinessS", "bublikplatno", "KATYAN", "super_ne_chiter", "KreesTees", "DelsHearTache", "1WantToXyranaz", "krap1wka_zxc", "HepBbl_HoPM", "Iglobruh19", "Temniydar", "PopaBobra19", "Tosterw", "homechok", "Holgan", "pups"));
    private static final int[] ANARCHY_NUMBERS = new int[]{103, 104, 105, 106, 107, 108, 109, 110, 208, 209, 210, 211, 212, 213, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 503, 504, 505, 506, 507, 508, 509, 510, 602, 603, 604, 605, 606};
    private static final int ENTER_ANARCHY_DELAY_MS = 600;
    private static final int MESSAGE_SEND_DELAY_MS = 340;
    private static final int FINAL_DELAY_MS = 90;
    private int currentAnarchyIndex = 0;
    private TimerUtil timerUtil = new TimerUtil();
    private boolean enteringAnarchy = true;
    private boolean sendingMessage = false;
    private boolean finalDelay = false;
    private final Random random = new Random();

    public AnarchySpam() {
        this.addSettings(new Setting[]{this.msgtosend, this.aspambypass, this.staffprovirka});
    }

    @Subscribe
    public void onUpdate(EventUpdate event) {
        if (this.enteringAnarchy) {
            if (this.timerUtil.hasTimeElapsed(600L, true)) {
                int anarchyNumber = ANARCHY_NUMBERS[this.currentAnarchyIndex];
                String chatCommand = "/an" + anarchyNumber;
                mc.player.sendChatMessage(chatCommand);
                this.enteringAnarchy = false;
                this.sendingMessage = true;
            }
        } else if (this.sendingMessage) {
            if ((Boolean)this.staffprovirka.get() && this.isStaffPresent()) {
                this.resetToNextAnarchy();
            } else if (this.timerUtil.hasTimeElapsed(340L, true)) {
                String messageToSend = (String)this.msgtosend.get();
                if ((Boolean)this.aspambypass.get()) {
                    messageToSend = messageToSend + this.getRandomSuffix();
                }

                mc.player.sendChatMessage(messageToSend);
                this.sendingMessage = false;
                this.finalDelay = true;
            }
        } else if (this.finalDelay && this.timerUtil.hasTimeElapsed(90L, true)) {
            ++this.currentAnarchyIndex;
            if (this.currentAnarchyIndex >= ANARCHY_NUMBERS.length) {
                this.print("Успешно!");
                this.toggle();
                this.resetState();
            } else {
                this.enteringAnarchy = true;
                this.finalDelay = false;
            }
        }

    }

    private boolean isStaffPresent() {
        Iterator var1 = mc.getConnection().getPlayerInfoMap().iterator();

        NetworkPlayerInfo playerInfo;
        do {
            if (!var1.hasNext()) {
                return false;
            }

            playerInfo = (NetworkPlayerInfo)var1.next();
        } while(!Staffs.contains(playerInfo.getGameProfile().getName()));

        return true;
    }

    private void resetToNextAnarchy() {
        this.sendingMessage = false;
        this.finalDelay = true;
        this.timerUtil.reset();
    }

    private String getRandomSuffix() {
        StringBuilder suffix = new StringBuilder();

        for(int i = 0; i < 4; ++i) {
            suffix.append((char)(97 + this.random.nextInt(26)));
        }

        return suffix.toString();
    }

    public void onEnable() {
        super.onEnable();
        this.resetState();
    }

    public void onDisable() {
        super.onDisable();
        this.resetState();
    }

    private void resetState() {
        this.currentAnarchyIndex = 0;
        this.enteringAnarchy = true;
        this.sendingMessage = false;
        this.finalDelay = false;
    }
}
Пожалуйста, авторизуйтесь для просмотра ссылки.
И зачем?
 
Начинающий
Статус
Оффлайн
Регистрация
28 Мар 2024
Сообщения
319
Реакции[?]
0
Поинты[?]
0
AutoAD:
package im.expensive.functions.impl.misc;

import com.google.common.eventbus.Subscribe;
import im.expensive.events.EventUpdate;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.settings.impl.StringSetting;
import net.minecraft.client.Minecraft;

@FunctionRegister(name = "AutoAD", type = Category.Player)
public class AutoAD extends Function {
    private final Minecraft mc = Minecraft.getInstance();
    private long lastMessageTime = 0;
    private long adMessageTime = 0;
    private int currentChannel = 104;
    private boolean adMessagePending = false;


    public static String fakeName = "";

    public StringSetting adMessageSetting = new StringSetting(
            "Рекламное сообщение",
            "",
            "Укажите текст для рекламного сообщения"
    );

    public AutoAD() {
        addSettings(adMessageSetting);
    }

    @Subscribe
    public void onUpdate(EventUpdate event) {
        long currentTime = System.currentTimeMillis();


        if (currentTime - lastMessageTime >= 1000 && !adMessagePending) {

            mc.player.sendChatMessage("/an" + currentChannel);


            adMessageTime = currentTime + 500;
            adMessagePending = true;


            if (currentChannel >= 104 && currentChannel <= 110) {
                currentChannel++;
                if (currentChannel > 110) {
                    currentChannel = 209;
                }
            } else if (currentChannel >= 209 && currentChannel <= 233) {
                currentChannel++;
                if (currentChannel > 233) {
                    currentChannel = 305;
                }
            } else if (currentChannel >= 305 && currentChannel <= 321) {
                currentChannel++;
                if (currentChannel > 321) {
                    currentChannel = 503;
                }
            } else if (currentChannel >= 503 && currentChannel <= 512) {
                currentChannel++;
                if (currentChannel > 512) {
                    currentChannel = 602;
                }
            } else if (currentChannel >= 602 && currentChannel <= 607) {
                currentChannel++;
                if (currentChannel > 607) {
                    currentChannel = 104;
                }
            }

            lastMessageTime = currentTime;
        }


        if (adMessagePending && currentTime >= adMessageTime) {
            String adMessage = adMessageSetting.get();

            adMessage = adMessage.replace(Minecraft.getInstance().getSession().getUsername(), fakeName);
            mc.player.sendChatMessage("/ad " + adMessage);
            adMessagePending = false;
        }
    }


    public void setAdMessage(String message) {
        adMessageSetting.set(message);
    }
}
 
Начинающий
Статус
Оффлайн
Регистрация
4 Июл 2024
Сообщения
84
Реакции[?]
3
Поинты[?]
2K
Вводите текст, включаете что нужно, после он сам бегает по анкам и спамит текстом.

Java:
package im.expensive.functions.impl.player;

import com.google.common.eventbus.Subscribe;
import im.expensive.events.EventUpdate;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.settings.Setting;
import im.expensive.functions.settings.impl.BooleanSetting;
import im.expensive.functions.settings.impl.StringSetting;
import im.expensive.utils.client.TimerUtil;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Random;
import java.util.Set;
import net.minecraft.client.network.play.NetworkPlayerInfo;

@FunctionRegister(
    name = "AnarchySpam",
    type = Category.Player
)
public class AnarchySpam extends Function {
    private final StringSetting msgtosend = new StringSetting("Сообщение", "текст", "Введите сообщение для флуда");
    private final BooleanSetting aspambypass = new BooleanSetting("Обход антиспама", false);
    private final BooleanSetting staffprovirka = new BooleanSetting("Проверка на стафф", false);
    private static final Set<String> Staffs = new HashSet(Arrays.asList("artem_pawlow", "yaBIG_PIG", "leon4ik1265", "M0Rell", "ItsLaMeNo228", "[I]XrABroStb[/I]", "[I]Wasted[/I]", "Rnzai101", "d3s1rr", "Xinero", "shift1K", "catwithcider", "ferdiguns", "elvawix", "pakucon", "Dangerwan", "AaseKasse", "kotwithcookie", "5ivkola", "qartem_pawlow", "yaBIG_PIG", "leon4ik1265", "M0Rell", "ItsLaMeNo228", "[I]XrABroStb[/I]", "[I]Wasted[/I]", "Rnzai101", "Xinero", "shift1K", "catwithcider", "ferdiguns", "elvawix", "pakucon", "Dangerwan", "AaseKasse", "kotwithcookie", "5ivkola", "qqlone", "yaPankYaLegenda", "killaura46", "HedRed2008", "sovipis213", "Kuratev", "DisNaLuk", "Xvostik333", "[I]PoJlToH_v_KeDaX", "GigabyteTop001", "stasikpid228", "Prepo_Tar", "DestroyeBoy", "ShulkerMe", "Sinex87", "catwithwine", "FrostyKKKKKKk", "[I]Holgan[/I]", "Alisa_Lisna", "Stringers", "Shadow_Divine", "qwertyrrr", "bublikbesplatno", "teckstyra", "olegun", "Nesquik213", "hot_chick[/I]", "nevepsycho", "Fen1x_b1b0", "Homechok", "Evgeny6780", "freylik", "axcu32", "1Viad", "Ecstacy_level", "216mypeek", "KotBac9", "Glebik_Viz", "lastocha_zxc", "[I]Clinkz[/I]", "Noghtalit", "ckyka0_0", "stalin_vozhd", "hi1kz0", "ThunderShadow", "[I]4y4kek[/I]", "Raudov_", "Laossium", "Da1mon_666", "DelsHearTache", "[I]Drase[/I]", "WhiteMan4990", "shardov", "Bakkap", "MANDA_R1NKA", "Jeson", "rabai", "Tukich_bavalo", "NE_MANZARIUS", "faquesty", "itstik66", "leozart228", "[I]TBo9I_PaDoSTb", "MercyIzReal", "catwithbeer", "tequesty", "Black_Star_Girl", "Fr1znt", "Bayerfn", "TesTar1254", "Dinar1001", "Apollons", "YALAMA", "ArtCombo", "siinta", "BuHoBHuK_[/I]", "qveezer_", "Hadzaki", "Mavgr1758", "kiselb312123", "milkimas", "[I]Rape_seRies", "TheJustice", "Ya_He_power", "FacelessEgoist", "ThunderRoses", "[I]MoonM1ce[/I]", "[I]Gesichtslos[/I]", "Capitello", "DenekelYT", "Tinkers", "bone1nis", "FeelingHollow[/I]", "ucTePuka", "Keldif", "Kuratev", "Da1mon666", "Fen1x_b1b0", "Raudov", "5ivkola", "Psycho_what", "GigabyteTop001", "Xinero", "1Valhalla", "Sinex87", "pakucon", "Shadow_Divine", "yaPankYaLegenda", "ferdiguns", "Nesquik213", "Alisa_Lisna", "bublikbesplatno", "killaura46", "Prepo_Tar", "Xvostik333", "DAHR2023", "artem_pawlow", "Laossium", "xerinai", "merlin1601", "teckstyra", "[I]Wasted[/I]", "olegun", "qqlone", "sovipis213", "nikita200404", "hi1kz0", "leon4ik1265", "Dangerwan", "Berasd_Master", "stasikpid228", "sienduk123", "Homechok", "DisNaLuk", "Evgeny6780", "DisNaLuk", "Noghtalit", "axcu32", "UZI", "DelsHearTache", "1WantToXyranaz", "hotchick", "krap1wka_ZXC", "[B]pups[/B]", "Sinex87", "nikita200404", "sovipis213", "hot_chick_", "[I]PoJlToH_v_KeDaX", "yaPankYaLegenda", "qwertyrrr", "ferdiguns", "Shadow_Divine", "stasikpid228", "[I]Bedmak[/I]", "Homechok", "xerinai", "merlin1601", "krap1wka_ZXC", "5ivkola", "pakucon", "stasikpid228", "Raudov[/I]", "FatherlyLynx331", "ferdiguns", "apathyxdxdxdxd", "Fen1x_b1b0", "KLIKER_22", "merlin1601", "Da1mon_666", "Frostyqeaz", "1Valhalla", "FakeHappinessS", "bublikplatno", "KATYAN", "super_ne_chiter", "KreesTees", "DelsHearTache", "1WantToXyranaz", "krap1wka_zxc", "HepBbl_HoPM", "Iglobruh19", "Temniydar", "PopaBobra19", "Tosterw", "homechok", "Holgan", "pups"));
    private static final int[] ANARCHY_NUMBERS = new int[]{103, 104, 105, 106, 107, 108, 109, 110, 208, 209, 210, 211, 212, 213, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 503, 504, 505, 506, 507, 508, 509, 510, 602, 603, 604, 605, 606};
    private static final int ENTER_ANARCHY_DELAY_MS = 600;
    private static final int MESSAGE_SEND_DELAY_MS = 340;
    private static final int FINAL_DELAY_MS = 90;
    private int currentAnarchyIndex = 0;
    private TimerUtil timerUtil = new TimerUtil();
    private boolean enteringAnarchy = true;
    private boolean sendingMessage = false;
    private boolean finalDelay = false;
    private final Random random = new Random();

    public AnarchySpam() {
        this.addSettings(new Setting[]{this.msgtosend, this.aspambypass, this.staffprovirka});
    }

    @Subscribe
    public void onUpdate(EventUpdate event) {
        if (this.enteringAnarchy) {
            if (this.timerUtil.hasTimeElapsed(600L, true)) {
                int anarchyNumber = ANARCHY_NUMBERS[this.currentAnarchyIndex];
                String chatCommand = "/an" + anarchyNumber;
                mc.player.sendChatMessage(chatCommand);
                this.enteringAnarchy = false;
                this.sendingMessage = true;
            }
        } else if (this.sendingMessage) {
            if ((Boolean)this.staffprovirka.get() && this.isStaffPresent()) {
                this.resetToNextAnarchy();
            } else if (this.timerUtil.hasTimeElapsed(340L, true)) {
                String messageToSend = (String)this.msgtosend.get();
                if ((Boolean)this.aspambypass.get()) {
                    messageToSend = messageToSend + this.getRandomSuffix();
                }

                mc.player.sendChatMessage(messageToSend);
                this.sendingMessage = false;
                this.finalDelay = true;
            }
        } else if (this.finalDelay && this.timerUtil.hasTimeElapsed(90L, true)) {
            ++this.currentAnarchyIndex;
            if (this.currentAnarchyIndex >= ANARCHY_NUMBERS.length) {
                this.print("Успешно!");
                this.toggle();
                this.resetState();
            } else {
                this.enteringAnarchy = true;
                this.finalDelay = false;
            }
        }

    }

    private boolean isStaffPresent() {
        Iterator var1 = mc.getConnection().getPlayerInfoMap().iterator();

        NetworkPlayerInfo playerInfo;
        do {
            if (!var1.hasNext()) {
                return false;
            }

            playerInfo = (NetworkPlayerInfo)var1.next();
        } while(!Staffs.contains(playerInfo.getGameProfile().getName()));

        return true;
    }

    private void resetToNextAnarchy() {
        this.sendingMessage = false;
        this.finalDelay = true;
        this.timerUtil.reset();
    }

    private String getRandomSuffix() {
        StringBuilder suffix = new StringBuilder();

        for(int i = 0; i < 4; ++i) {
            suffix.append((char)(97 + this.random.nextInt(26)));
        }

        return suffix.toString();
    }

    public void onEnable() {
        super.onEnable();
        this.resetState();
    }

    public void onDisable() {
        super.onDisable();
        this.resetState();
    }

    private void resetState() {
        this.currentAnarchyIndex = 0;
        this.enteringAnarchy = true;
        this.sendingMessage = false;
        this.finalDelay = false;
    }
}
Пожалуйста, авторизуйтесь для просмотра ссылки.
Во 1 зачем, во 2 нахуя? ಥ_ಥ
 
Сверху Снизу