Integrated SimpleAutoResponder#prefix (also SimpleAutoResponder#getPrefix & SimpleAutoResponder#setPrefix)

This commit is contained in:
mathias 2021-10-02 18:32:09 +02:00
parent 09bdf731f2
commit a7f81e8dd2
No known key found for this signature in database
GPG Key ID: 8950DF62139C852A

View File

@ -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
*