aboutsummaryrefslogtreecommitdiff
path: root/juick-commands/src/main/java/com/juick/command/Command.java
diff options
context:
space:
mode:
authorGravatar Anatoliy Sablin2017-11-05 10:33:34 +0300
committerGravatar Anatoliy Sablin2017-11-06 15:00:22 +0300
commitce0ed9ac9e82b19763b7dfd4814d327e0b49ddb7 (patch)
tree4e63b5a35e162956b548d9415fa8f2c6d38b8e3b /juick-commands/src/main/java/com/juick/command/Command.java
parent83815d291a7945c26a675c8543e8766ad2d1beda (diff)
juick-commands
Diffstat (limited to 'juick-commands/src/main/java/com/juick/command/Command.java')
-rw-r--r--juick-commands/src/main/java/com/juick/command/Command.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/juick-commands/src/main/java/com/juick/command/Command.java b/juick-commands/src/main/java/com/juick/command/Command.java
new file mode 100644
index 00000000..3d974bba
--- /dev/null
+++ b/juick-commands/src/main/java/com/juick/command/Command.java
@@ -0,0 +1,16 @@
+package com.juick.command;
+
+import com.juick.User;
+import com.juick.server.protocol.ProtocolListener;
+
+import java.util.regex.Pattern;
+
+/**
+ * @author ma1uta
+ */
+public interface Command {
+
+ Pattern pattern();
+
+ String execute(User sender, ProtocolListener protocolListener, String command);
+}