mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-23 18:42:45 +00:00
32 lines
663 B
Java
32 lines
663 B
Java
package mineverse.Aust1n46.chat.irc.command;
|
|
|
|
import java.util.List;
|
|
|
|
//This class is where IRCCommand objects are created using information from the config file.
|
|
public class IRCCommand {
|
|
private String name;
|
|
private List<String> components;
|
|
private String mode;
|
|
|
|
public IRCCommand(String name, List<String> components, String mode) {
|
|
this.name = name;
|
|
this.components = components;
|
|
this.mode = mode;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public List<String> getComponents() {
|
|
return components;
|
|
}
|
|
|
|
public String getMode() {
|
|
return mode;
|
|
}
|
|
|
|
public boolean hasMode() {
|
|
return !mode.equals("*");
|
|
}
|
|
} |