<commit_before>package com.mcbans.firestar.mcbans.util;

import java.util.Collection;
import java.util.Iterator;
import java.util.regex.Pattern;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

import com.mcbans.firestar.mcbans.MCBans;

public class Util {
    /****************************************/
    // Messaging
    /****************************************/
    /**
     * Send message to player
     * @param target target CommandSender
     * @param msg send message, non prefix
     */
    public static void message(final CommandSender target, String msg) {
        if (msg != null){
            msg = ChatColor.WHITE + msg;
            if (target != null && target instanceof Player){
                target.sendMessage(MCBans.getPrefix() + " " + msg);
            }else{
                // use craftbukkit for sending coloured message to console. Refer class #ColouredConsoleSender
                org.bukkit.craftbukkit.command.ColouredConsoleSender.getInstance().sendMessage(msg);
                //ActionLog.getInstance().info(msg);
            }
        }
    }<commit_msg>Fix message prefix to send console<commit_after>package com.mcbans.firestar.mcbans.util;

import java.util.Collection;
import java.util.Iterator;
import java.util.regex.Pattern;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

import com.mcbans.firestar.mcbans.MCBans;

public class Util {
    /****************************************/
    // Messaging
    /****************************************/
    /**
     * Send message to player
     * @param target target CommandSender
     * @param msg send message, non prefix
     */
    public static void message(final CommandSender target, String msg) {
        if (msg != null){
            msg = MCBans.getPrefix() + " " + ChatColor.WHITE + msg;
            if (target != null && target instanceof Player){
                target.sendMessage(msg);
            }else{
                // use craftbukkit for sending coloured message to console. Refer class #ColouredConsoleSender
                org.bukkit.craftbukkit.command.ColouredConsoleSender.getInstance().sendMessage(msg);
                //ActionLog.getInstance().info(msg);
            }
        }
    }
{'fraction_non_alphanumeric': 0.16448755799240827, 'fraction_numerical': 0.0, 'mean_word_length': 2.6832298136645965, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5927588', 'n_tokens_mistral': 658, 'n_tokens_neox': 630, 'n_words': 149}