some some some
This commit is contained in:
parent
580552d0cf
commit
bffbfa3627
2 changed files with 6 additions and 1 deletions
|
@ -226,6 +226,8 @@ public class ChatPlugin extends Bot.Listener {
|
||||||
private void sendChatTick () {
|
private void sendChatTick () {
|
||||||
if (queue.isEmpty()) return;
|
if (queue.isEmpty()) return;
|
||||||
|
|
||||||
|
if (queue.size() > 50) queue.clear(); // detects spam, like spamming *echo for example
|
||||||
|
|
||||||
final String message = queue.get(0);
|
final String message = queue.get(0);
|
||||||
|
|
||||||
if (message.startsWith("/")) {
|
if (message.startsWith("/")) {
|
||||||
|
|
|
@ -5,7 +5,10 @@ import com.github.steveice10.mc.protocol.data.game.BossBarDivision;
|
||||||
import com.github.steveice10.packetlib.event.session.DisconnectedEvent;
|
import com.github.steveice10.packetlib.event.session.DisconnectedEvent;
|
||||||
import land.chipmunk.chayapak.chomens_bot.Bot;
|
import land.chipmunk.chayapak.chomens_bot.Bot;
|
||||||
import land.chipmunk.chayapak.chomens_bot.data.BotBossBar;
|
import land.chipmunk.chayapak.chomens_bot.data.BotBossBar;
|
||||||
import land.chipmunk.chayapak.chomens_bot.song.*;
|
import land.chipmunk.chayapak.chomens_bot.song.Loop;
|
||||||
|
import land.chipmunk.chayapak.chomens_bot.song.Note;
|
||||||
|
import land.chipmunk.chayapak.chomens_bot.song.Song;
|
||||||
|
import land.chipmunk.chayapak.chomens_bot.song.SongLoaderRunnable;
|
||||||
import land.chipmunk.chayapak.chomens_bot.util.ColorUtilities;
|
import land.chipmunk.chayapak.chomens_bot.util.ColorUtilities;
|
||||||
import land.chipmunk.chayapak.chomens_bot.util.MathUtilities;
|
import land.chipmunk.chayapak.chomens_bot.util.MathUtilities;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
|
|
Loading…
Reference in a new issue