From 7bc0e96f9e74396a09a7a8b1cd3efc80eb7cc92b Mon Sep 17 00:00:00 2001 From: fdai7430 Date: Sat, 4 Feb 2023 18:12:03 +0100 Subject: [PATCH] Added runaway command to general command listener --- .../org/bitbiome/commands/CommandListener.java | 1 + .../org/bitbiome/commands/RunAwayCommand.java | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/main/java/org/bitbiome/commands/RunAwayCommand.java diff --git a/src/main/java/org/bitbiome/commands/CommandListener.java b/src/main/java/org/bitbiome/commands/CommandListener.java index 4c67d71..64dc12c 100644 --- a/src/main/java/org/bitbiome/commands/CommandListener.java +++ b/src/main/java/org/bitbiome/commands/CommandListener.java @@ -20,6 +20,7 @@ public class CommandListener { commands.put("use", new UseCommand()); commands.put("location", new LocationCommand()); commands.put("travel", new TravelCommand()); + commands.put("runaway", new RunAwayCommand()); } public HashMap returnCommands() { diff --git a/src/main/java/org/bitbiome/commands/RunAwayCommand.java b/src/main/java/org/bitbiome/commands/RunAwayCommand.java new file mode 100644 index 0000000..882223a --- /dev/null +++ b/src/main/java/org/bitbiome/commands/RunAwayCommand.java @@ -0,0 +1,15 @@ +package org.bitbiome.commands; + +import java.util.Scanner; + +import org.bitbiome.classes.TravelEngine; + +public class RunAwayCommand implements CommandAPI { + + @Override + public void performCommand(Scanner scanner, boolean isRunning, String message, TravelEngine travelEngine) { + // TODO Auto-generated method stub + + } + +}