Integrated SimpleAutoResponder#prefix (also SimpleAutoResponder#getPrefix & SimpleAutoResponder#setPrefix)
This commit is contained in:
parent
09bdf731f2
commit
a7f81e8dd2
@ -24,6 +24,7 @@ public class SimpleAutoResponder {
|
||||
private NotFoundHandler notFoundHandler = new SendNothingHandler();
|
||||
|
||||
private int port = 8025;
|
||||
private String prefix = "/";
|
||||
|
||||
/**
|
||||
* Starts the auto responder server
|
||||
@ -108,6 +109,24 @@ public class SimpleAutoResponder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the current command prefix
|
||||
*
|
||||
* @return the current command prefix
|
||||
*/
|
||||
public String getPrefix() {
|
||||
return prefix;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the command prefix
|
||||
*
|
||||
* @param prefix The new command prefix
|
||||
*/
|
||||
public void setPrefix(String prefix) {
|
||||
this.prefix = prefix;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the event manager
|
||||
*
|
||||
|
Reference in New Issue
Block a user