aboutsummaryrefslogtreecommitdiff
path: root/juick-commands/src/main/java/com/juick/command/Command.java
diff options
context:
space:
mode:
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);
+}