<commit_before>package com.aaomidi.dev.lilybook.engine.lilyevents;

import com.aaomidi.dev.lilybook.LilyBook;
import com.aaomidi.dev.lilybook.engine.Caching;
import com.aaomidi.dev.lilybook.engine.StringManager;
import com.aaomidi.dev.lilybook.engine.modules.ChannelType;
import com.aaomidi.dev.lilybook.engine.modules.LilyEvent;
import com.aaomidi.dev.lilybook.engine.objects.LilyPlayer;
import com.earth2me.essentials.User;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;

import java.util.ArrayList;
import java.util.Arrays;


public class MsgEvent extends LilyEvent {
    public MsgEvent(ChannelType channelType) {
        super(channelType);
    }

    @Override
    public void execute(final LilyBook instance, final String sender, final String message) {
        new BukkitRunnable() {
            @Override
            public void run() {
                ArrayList<String> messageInformation = new ArrayList<>(Arrays.asList(message.split(":")));
                if (instance.getServer().getOnlinePlayers() == null) {
                    return;
                }
                String messageSender = messageInformation.get(0);
                String messageReceiver = messageInformation.get(1);
                String sentMessage = messageInformation.get(2);
                for (Player player : instance.getServer().getOnlinePlayers()) {
                    if (player.getName().equalsIgnoreCase(messageReceiver)) {
                        if (LilyBook.getEssentials() != null) {
                            User user = LilyBook.getEssentials().getUser(player);
                            if (user != null) {
                                if (user._getIgnoredPlayers().contains(messageSender)) {
                                    continue;
                                }
                            }
                        }
                        String msg = StringManager.getCrossServerMessage(sender, sentMessage, messageSender);
                        StringManager.sendRawMessage(player, msg);
                        LilyPlayer lilyPlayer = Caching.getLilyPlayersMap().get(player.getName());
                        lilyPlayer.setConversee(messageSender);
                        continue;
                    }
                    if (player.hasPermission("lilybook.socialspy")) {
                        String msg = StringManager.getStaffCrossServerMessage(sender, sentMessage, messageSender, messageReceiver);
                        StringManager.sendMessage(player, msg);
                    }
                }

            }
        }.runTaskAsynchronously(instance);<commit_msg>Update to not send prefix<commit_after>package com.aaomidi.dev.lilybook.engine.lilyevents;

import com.aaomidi.dev.lilybook.LilyBook;
import com.aaomidi.dev.lilybook.engine.Caching;
import com.aaomidi.dev.lilybook.engine.StringManager;
import com.aaomidi.dev.lilybook.engine.modules.ChannelType;
import com.aaomidi.dev.lilybook.engine.modules.LilyEvent;
import com.aaomidi.dev.lilybook.engine.objects.LilyPlayer;
import com.earth2me.essentials.User;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;

import java.util.ArrayList;
import java.util.Arrays;


public class MsgEvent extends LilyEvent {
    public MsgEvent(ChannelType channelType) {
        super(channelType);
    }

    @Override
    public void execute(final LilyBook instance, final String sender, final String message) {
        new BukkitRunnable() {
            @Override
            public void run() {
                ArrayList<String> messageInformation = new ArrayList<>(Arrays.asList(message.split(":")));
                if (instance.getServer().getOnlinePlayers() == null) {
                    return;
                }
                String messageSender = messageInformation.get(0);
                String messageReceiver = messageInformation.get(1);
                String sentMessage = messageInformation.get(2);
                for (Player player : instance.getServer().getOnlinePlayers()) {
                    if (player.getName().equalsIgnoreCase(messageReceiver)) {
                        if (LilyBook.getEssentials() != null) {
                            User user = LilyBook.getEssentials().getUser(player);
                            if (user != null) {
                                if (user._getIgnoredPlayers().contains(messageSender)) {
                                    continue;
                                }
                            }
                        }
                        String msg = StringManager.getCrossServerMessage(sender, sentMessage, messageSender);
                        StringManager.sendRawMessage(player, msg);
                        LilyPlayer lilyPlayer = Caching.getLilyPlayersMap().get(player.getName());
                        lilyPlayer.setConversee(messageSender);
                        continue;
                    }
                    if (player.hasPermission("lilybook.socialspy")) {
                        String msg = StringManager.getStaffCrossServerMessage(sender, sentMessage, messageSender, messageReceiver);
                        StringManager.sendRawMessage(player, msg);
                    }
                }

            }
        }.runTaskAsynchronously(instance);
{'fraction_non_alphanumeric': 0.09157716223855286, 'fraction_numerical': 0.0015074429998115696, 'mean_word_length': 1.8522299838796346, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4741695', 'n_tokens_mistral': 1362, 'n_tokens_neox': 1283, 'n_words': 221}