From dea35f59a698e02fedabded579a09ec2913cfb8c Mon Sep 17 00:00:00 2001 From: Pingex Date: Tue, 30 Aug 2016 16:26:43 +0200 Subject: [PATCH] Small change in "Command not found" message. --- src/main/java/net/pingex/dcf/commands/CommandHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pingex/dcf/commands/CommandHandler.java b/src/main/java/net/pingex/dcf/commands/CommandHandler.java index 4d8dd94..6940e2b 100644 --- a/src/main/java/net/pingex/dcf/commands/CommandHandler.java +++ b/src/main/java/net/pingex/dcf/commands/CommandHandler.java @@ -3,6 +3,7 @@ package net.pingex.dcf.commands; import net.pingex.dcf.commands.parser.BasicParser; import net.pingex.dcf.commands.parser.ICommandParser; import net.pingex.dcf.commands.parser.ParserException; +import net.pingex.dcf.core.Configuration; import net.pingex.dcf.modularity.PluginWrapper; import net.pingex.dcf.util.DiscordInteractionsUtil; import org.apache.logging.log4j.LogManager; @@ -52,7 +53,7 @@ public class CommandHandler if(!targetCommand.isPresent()) { LOGGER.debug("No command with that name was found."); - DiscordInteractionsUtil.sendMessage(event.getMessage().getChannel(), "Command not found. Use `!list` to get a list of all available commands."); + DiscordInteractionsUtil.sendMessage(event.getMessage().getChannel(), "Command not found. Use `"+ Configuration.COMMAND_PREFIX +"list` to get a list of all available commands."); return; }