protected String getClientInput(){
		
		String input = "";
		
		//Try to read input from client.
		try{
			
			if(clientInput.ready()){
				input = clientInput.readLine();
			}
			
		} catch (IOException e) {
			System.out.println("Error reading from client " + user.getName() + "(" + user.getIP() + ").");
			e.printStackTrace();
		}
		
		return input;
		
	}