summaryrefslogtreewikicommitdiff
path: root/core/src/command/util/Command.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/command/util/Command.kt')
-rw-r--r--core/src/command/util/Command.kt17
1 files changed, 17 insertions, 0 deletions
diff --git a/core/src/command/util/Command.kt b/core/src/command/util/Command.kt
new file mode 100644
index 0000000..734305a
--- /dev/null
+++ b/core/src/command/util/Command.kt
@@ -0,0 +1,17 @@
+package cat.freya.khs.command.util
+
+import cat.freya.khs.Khs
+import cat.freya.khs.player.Player
+
+interface CommandPart {
+ val label: String
+}
+
+interface Command : CommandPart {
+ val usage: List<String>
+ val description: String
+
+ fun execute(plugin: Khs, player: Player, args: List<String>)
+
+ fun autoComplete(plugin: Khs, parameter: String, typed: String): List<String>
+}