<commit_before>package com.mcbans.mcbans.pluginInterface;

import com.mcbans.mcbans.BukkitInterface;
import com.mcbans.mcbans.Settings;
import org.bukkit.ChatColor;

@SuppressWarnings("unused")
public class Kick extends Thread {
	private Settings Config;
	private BukkitInterface MCBans;
	private String PlayerName = null;
	private String PlayerAdmin = null;
	private String Reason = null;
	public Kick(Settings cf, BukkitInterface p, String playerName, String playerAdmin, String reason){
		Config=cf;
		MCBans = p;
		PlayerName = playerName;
		PlayerAdmin = playerAdmin;
		Reason = reason;
	}
	@Override
	public void run( ){
		
		if (MCBans.getServer().getPlayer(PlayerName) != null) {
			MCBans.log.write( PlayerAdmin + " has kicked " + PlayerName + "[" + Reason + "]" );
			MCBans.getServer().getPlayer(PlayerName).kickPlayer(MCBans.Language.getFormat( "kickMessagePlayer", PlayerName, PlayerAdmin, Reason ));
			MCBans.broadcastAll( ChatColor.DARK_RED + MCBans.Language.getFormat( "kickMessageSuccess", PlayerName, PlayerAdmin, Reason ));
        }else{
        	MCBans.broadcastAll( ChatColor.DARK_RED + MCBans.Language.getFormat( "kickMessageNoPlayer", PlayerName, PlayerAdmin, Reason ));
        }
		
	}
}<commit_msg>* MCBans 3.3 Release * Modification 1<commit_after>package com.mcbans.mcbans.pluginInterface;

import com.mcbans.mcbans.BukkitInterface;
import com.mcbans.mcbans.Settings;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;

@SuppressWarnings("unused")
public class Kick extends Thread {
	private Settings Config;
	private BukkitInterface MCBans;
	private String PlayerName = null;
	private String PlayerAdmin = null;
	private String Reason = null;
	public Kick(Settings cf, BukkitInterface p, String playerName, String playerAdmin, String reason){
		Config=cf;
		MCBans = p;
		PlayerName = playerName;
		PlayerAdmin = playerAdmin;
		Reason = reason;
	}
	@Override
	public void run( ){
		Player player = MCBans.getServer().getPlayer(PlayerName);
		if (player != null) {
			MCBans.log.write( PlayerAdmin + " has kicked " + player.getName() + "[" + Reason + "]" );
			player.kickPlayer(MCBans.Language.getFormat( "kickMessagePlayer", player.getName(), PlayerAdmin, Reason ));
			MCBans.broadcastAll( ChatColor.DARK_RED + MCBans.Language.getFormat( "kickMessageSuccess", player.getName(), PlayerAdmin, Reason ));
		}else{
            MCBans.broadcastAll( ChatColor.DARK_RED + MCBans.Language.getFormat( "kickMessageNoPlayer", PlayerName, PlayerAdmin, Reason ));
        }
	}
}
{'fraction_non_alphanumeric': 0.11403508771929824, 'fraction_numerical': 0.0011961722488038277, 'mean_word_length': 4.93144208037825, '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': '2005016', 'n_tokens_mistral': 852, 'n_tokens_neox': 796, 'n_words': 180}