From 9d58257ab8fc941c5076cf32c66618a361318d35 Mon Sep 17 00:00:00 2001 From: fdai7430 Date: Sun, 15 Jan 2023 21:36:20 +0100 Subject: [PATCH] Added output to getUseMessage() --- src/main/java/org/bitbiome/commands/UseCommand.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bitbiome/commands/UseCommand.java b/src/main/java/org/bitbiome/commands/UseCommand.java index 9ccc961..135b669 100644 --- a/src/main/java/org/bitbiome/commands/UseCommand.java +++ b/src/main/java/org/bitbiome/commands/UseCommand.java @@ -9,6 +9,10 @@ public class UseCommand implements CommandAPI { } private String getUseMessage(String msg) { - return ""; + String message[] = msg.split(" on "); + String returnString = "You used " + msg; + if(message.length == 1) + returnString+=" on yourself"; + return returnString; } } \ No newline at end of file