From b93b246de1dcaff992190cb26ced7526b80c94dd Mon Sep 17 00:00:00 2001 From: David Hermann Date: Wed, 4 Jan 2023 02:39:58 +0100 Subject: [PATCH] Added CommandAPI interface This interface is importing one method "performCommand" in all future commands. performCommand has the following parameters: - scanner, Scanner --- src/main/java/org/bitbiome/commands/CommandAPI.java | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/main/java/org/bitbiome/commands/CommandAPI.java diff --git a/src/main/java/org/bitbiome/commands/CommandAPI.java b/src/main/java/org/bitbiome/commands/CommandAPI.java new file mode 100644 index 0000000..d3a67c6 --- /dev/null +++ b/src/main/java/org/bitbiome/commands/CommandAPI.java @@ -0,0 +1,8 @@ +package org.bitbiome.commands; + +import java.util.Scanner; + +public interface CommandAPI { + public void performCommand(Scanner scanner, boolean isRunning, String message); + +}