Code example for InetAddress

Methods: toString

0
		if(player!=null && player.getAddress()!=null)
			IP			=	player.getAddress().getAddress();
		else 
			plugin.logWarning("Unable to determine if a Player's address is blacklisted because the player's address could not be found!");
 
		if(player!=null && IP!=null && plugin.isBlacklisted(IP)){
			if(plugin.getConfig().getBoolean("LogDisconnects")){
				if(plugin.getConfig().getBoolean("LogToFile"))
					plugin.logToFile(IP.toString()+" has been blocked from connecting (DNSBL address)");
				else 
					plugin.logMessage(IP.toString()+" has been kicked (DNSBL address)");
			} 
				 
			 
			player.kickPlayer(plugin.getConfig().getString("DisconnectMessage"));
		}		 
	} 
 
}