summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/f00f/net/irc/martyr/CommandSender.java
blob: a5a748e8668d59334c7eb32c40fb5d74e4516e2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package f00f.net.irc.martyr;

/**
 * A CommandSender can accept an OutCommand and do something with it
 * (such as send it to the server, or send it on to another
 * CommandSender).  The idea is to create a chain of CommandSenders,
 * with the last object in the chain the default CommandSender,
 * created by IRCConnection.
 * */
public interface CommandSender
{
	CommandSender getNextCommandSender();
	void sendCommand( OutCommand command );
}