2018-07-17 19:23:54 +02:00
|
|
|
package de.mrbesen.telegram.commands;
|
|
|
|
|
2018-07-18 14:30:48 +02:00
|
|
|
import de.mrbesen.telegram.objects.TUser;
|
2018-07-17 19:23:54 +02:00
|
|
|
|
2019-02-08 06:14:11 +01:00
|
|
|
public interface CommandHandler extends ICommandHandler{
|
2018-07-17 19:23:54 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Should return true, if the command is handled correctly, false if the help menu should be displayed
|
|
|
|
* @param sender
|
|
|
|
* @param cmd
|
|
|
|
* @param args
|
2018-10-11 14:49:11 +02:00
|
|
|
* @param json
|
2018-07-17 19:23:54 +02:00
|
|
|
* @return
|
|
|
|
*/
|
2018-10-12 17:24:07 +02:00
|
|
|
public boolean onCommand(TUser sender, String cmd, String[] args);
|
2018-07-17 19:23:54 +02:00
|
|
|
|
|
|
|
}
|