From f664968786cbcba4b89f63ace8065bf972a4e5a2 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 6 Sep 2023 16:51:07 -0500 Subject: [PATCH] Improve wording of info messages for commands --- .../dev/magicmq/pyspigot/command/subcommands/LoadCommand.java | 2 +- .../dev/magicmq/pyspigot/command/subcommands/ReloadCommand.java | 2 +- .../dev/magicmq/pyspigot/command/subcommands/UnloadCommand.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/dev/magicmq/pyspigot/command/subcommands/LoadCommand.java b/src/main/java/dev/magicmq/pyspigot/command/subcommands/LoadCommand.java index 0c1d479..d7596d1 100644 --- a/src/main/java/dev/magicmq/pyspigot/command/subcommands/LoadCommand.java +++ b/src/main/java/dev/magicmq/pyspigot/command/subcommands/LoadCommand.java @@ -62,7 +62,7 @@ else if (result == RunResult.FAIL_ERROR) sender.sendMessage(ChatColor.RED + "There was an error when loading script " + args[0] + ". See console for details."); } } else { - sender.sendMessage(ChatColor.RED + "There is already a loaded script with the name " + args[0]); + sender.sendMessage(ChatColor.RED + "There is already a loaded and running script with the name " + args[0]); } return true; } diff --git a/src/main/java/dev/magicmq/pyspigot/command/subcommands/ReloadCommand.java b/src/main/java/dev/magicmq/pyspigot/command/subcommands/ReloadCommand.java index fe0ecd4..8ecc80e 100644 --- a/src/main/java/dev/magicmq/pyspigot/command/subcommands/ReloadCommand.java +++ b/src/main/java/dev/magicmq/pyspigot/command/subcommands/ReloadCommand.java @@ -53,7 +53,7 @@ public boolean onCommand(CommandSender sender, String[] args) { sender.sendMessage(ChatColor.RED + "There was an error when reloading script " + args[0] + ". See console for details."); } } else { - sender.sendMessage(ChatColor.RED + "Loaded script " + args[0] + " not found"); + sender.sendMessage(ChatColor.RED + "No running script found with the name " + args[0]); } return true; } diff --git a/src/main/java/dev/magicmq/pyspigot/command/subcommands/UnloadCommand.java b/src/main/java/dev/magicmq/pyspigot/command/subcommands/UnloadCommand.java index f536ea3..5d4049f 100644 --- a/src/main/java/dev/magicmq/pyspigot/command/subcommands/UnloadCommand.java +++ b/src/main/java/dev/magicmq/pyspigot/command/subcommands/UnloadCommand.java @@ -43,7 +43,7 @@ public boolean onCommand(CommandSender sender, String[] args) { else sender.sendMessage(ChatColor.RED + "There was an error when unloading script " + args[0] + ". See console for details."); } else { - sender.sendMessage(ChatColor.RED + "No loaded script found with the name " + args[0]); + sender.sendMessage(ChatColor.RED + "No running script found with the name " + args[0]); } return true; }