aboutsummaryrefslogtreecommitdiff
path: root/juick-commands/src/main/java/com/juick/command/MultiArgsCommand.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-commands/src/main/java/com/juick/command/MultiArgsCommand.java')
-rw-r--r--juick-commands/src/main/java/com/juick/command/MultiArgsCommand.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/juick-commands/src/main/java/com/juick/command/MultiArgsCommand.java b/juick-commands/src/main/java/com/juick/command/MultiArgsCommand.java
index 5fde6775..4d50bff0 100644
--- a/juick-commands/src/main/java/com/juick/command/MultiArgsCommand.java
+++ b/juick-commands/src/main/java/com/juick/command/MultiArgsCommand.java
@@ -1,7 +1,6 @@
package com.juick.command;
import com.juick.User;
-import com.juick.server.protocol.ProtocolListener;
import java.util.regex.Matcher;
@@ -11,7 +10,7 @@ import java.util.regex.Matcher;
public abstract class MultiArgsCommand implements Command {
@Override
- public String execute(User sender, ProtocolListener protocolListener, String command) {
+ public String execute(User sender, MessageListener protocolListener, String command) {
Matcher matcher = pattern().matcher(command.trim());
String[] arguments = new String[matcher.groupCount()];
for (int i = 1; i <= matcher.groupCount(); i++) {
@@ -20,5 +19,5 @@ public abstract class MultiArgsCommand implements Command {
return execute(sender, protocolListener, arguments);
}
- protected abstract String execute(User sender, ProtocolListener protocolListener, String... arguments);
+ protected abstract String execute(User sender, MessageListener protocolListener, String... arguments);
}