package com.cardshifter.api.messages;

/** 
 * Message class.
 * <p>
 * Takes a command to or from client in the form of a string.
 */
public abstract class Message {
	/** This command. */
	private String command;
	
	/**
	 * Constructor.
	 * @param string the command in the form of a character string
	 */
	public Message(String string) {
		this.command = string;
	}
	/**
	 * Getter.
	 * @return this command
	 */
	public final String getCommand() {
		return command;
	}
}

package com.cardshifter.api.messages;

/** 
 * Message class.
 * <p>
 * Takes a command to or from client in the form of a string.
 */
public abstract class Message {
	/** This command. */
	private String command;
	
	/**
	 * Constructor.
	 * @param string the key representing the type of message that is sent
	 */
	public Message(String string) {
		this.command = string;
	}
	/**
	 * Getter.
	 * @return this command
	 */
	public final String getCommand() {
		return command;
	}
}

Update Message.java