2018-07-17 19:23:54 +02:00
|
|
|
package de.mrbesen.telegram.commands;
|
|
|
|
|
2018-07-18 04:44:04 +02:00
|
|
|
import objects.TUser;
|
2018-07-17 19:23:54 +02:00
|
|
|
|
|
|
|
public interface CommandHandler {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Should return true, if the command is handled correctly, false if the help menu should be displayed
|
|
|
|
* @param sender
|
|
|
|
* @param cmd
|
|
|
|
* @param args
|
|
|
|
* @return
|
|
|
|
*/
|
2018-07-18 04:44:04 +02:00
|
|
|
public boolean onCommand(TUser sender, String cmd, String[] args);
|
2018-07-17 19:23:54 +02:00
|
|
|
|
|
|
|
}
|