Files
2009scape/Management-Server/src/main/java/ms/system/util/Command.java
T
2021-03-07 20:37:32 -06:00

52 lines
770 B
Java

package ms.system.util;
/**
* Represents a command.
* @author Emperor
*
*/
public abstract class Command {
/**
* The command name.
*/
private final String name;
/**
* The command info.
*/
private final String info;
/**
* Constructs a new {@code Command} {@code Object}.
* @param name The command name.
* @param info The command info.
*/
public Command(String name, String info) {
this.name = name;
this.info = info;
}
/**
* Runs the command.
* @param args The arguments.
*/
public abstract void run(String...args);
/**
* Gets the name value.
* @return The name.
*/
public String getName() {
return name;
}
/**
* Gets the info value.
* @return The info.
*/
public String getInfo() {
return info;
}
}