From ed0debe9fa1b642d4f8ba2088336e6e0442f6297 Mon Sep 17 00:00:00 2001 From: Friederike von Gruben Date: Wed, 1 Feb 2023 23:54:17 +0100 Subject: [PATCH] Created new Command: Quiz --- .../org/bitbiome/commands/CommandListener.java | 1 + .../java/org/bitbiome/commands/QuizCommand.java | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/main/java/org/bitbiome/commands/QuizCommand.java diff --git a/src/main/java/org/bitbiome/commands/CommandListener.java b/src/main/java/org/bitbiome/commands/CommandListener.java index 2e62105..6465891 100644 --- a/src/main/java/org/bitbiome/commands/CommandListener.java +++ b/src/main/java/org/bitbiome/commands/CommandListener.java @@ -14,6 +14,7 @@ public class CommandListener { commands.put("exit", new QuitCommand()); commands.put("quit", new QuitCommand()); + commands.put("quiz", new QuizCommand()); } public HashMap returnCommands() { diff --git a/src/main/java/org/bitbiome/commands/QuizCommand.java b/src/main/java/org/bitbiome/commands/QuizCommand.java new file mode 100644 index 0000000..cdcf4e1 --- /dev/null +++ b/src/main/java/org/bitbiome/commands/QuizCommand.java @@ -0,0 +1,14 @@ +package org.bitbiome.commands; + + +import java.util.Scanner; + +public class QuizCommand implements CommandAPI { + + @Override + public void performCommand(Scanner scanner, boolean isRunning, String message) { + + } +} + +