diff options
author | Cow <cow@volloeko.de> | 2020-07-05 03:49:03 +0200 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2020-07-05 03:49:03 +0200 |
commit | edaca1fd41a612c71c526ceb20b89c5dec2d81b3 (patch) | |
tree | 0f7f9e0709f50ef239e037ce94152d2835e1245a /src/main/java/eu/olli/cowmoonication | |
parent | a54f518faf6d79be4bfd5ec218d251734bb123f1 (diff) | |
download | Cowlection-edaca1fd41a612c71c526ceb20b89c5dec2d81b3.tar.gz Cowlection-edaca1fd41a612c71c526ceb20b89c5dec2d81b3.tar.bz2 Cowlection-edaca1fd41a612c71c526ceb20b89c5dec2d81b3.zip |
Bumped version to 1.8.9-0.6.0
Diffstat (limited to 'src/main/java/eu/olli/cowmoonication')
-rw-r--r-- | src/main/java/eu/olli/cowmoonication/command/MooCommand.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/eu/olli/cowmoonication/command/MooCommand.java b/src/main/java/eu/olli/cowmoonication/command/MooCommand.java index 4467167..9a73cbe 100644 --- a/src/main/java/eu/olli/cowmoonication/command/MooCommand.java +++ b/src/main/java/eu/olli/cowmoonication/command/MooCommand.java @@ -48,7 +48,7 @@ public class MooCommand extends CommandBase { sendCommandUsage(sender); return; } - // sub commands: friends + // sub commands: friends & other players if (args[0].equalsIgnoreCase("stalk")) { if (args.length != 2) { throw new WrongUsageException("/" + getCommandName() + " stalk <playerName>"); @@ -207,11 +207,11 @@ public class MooCommand extends CommandBase { e.printStackTrace(); throw new MooCommandException("\u2716 An error occurred trying to open the mod's directory. I guess you have to open it manually \u00af\\_(\u30c4)_/\u00af"); } + } else if (args[0].equalsIgnoreCase("help")) { + sendCommandUsage(sender); } // "catch-all" remaining sub-commands - else if (args[0].equalsIgnoreCase("help")) { - sendCommandUsage(sender); - } else { + else { main.getChatHelper().sendMessage(EnumChatFormatting.RED, "Command " + EnumChatFormatting.DARK_RED + "/" + getCommandName() + " " + args[0] + EnumChatFormatting.RED + " doesn't exist. Use " + EnumChatFormatting.DARK_RED + "/" + getCommandName() + " help " + EnumChatFormatting.RED + "to show command usage."); } } @@ -461,7 +461,7 @@ public class MooCommand extends CommandBase { private void sendCommandUsage(ICommandSender sender) { IChatComponent usage = new MooChatComponent("\u279C " + Cowmoonication.MODNAME + " commands:").gold().bold() - .appendSibling(createCmdHelpSection(1, "Friends")) + .appendSibling(createCmdHelpSection(1, "Friends & other players")) .appendSibling(createCmdHelpEntry("stalk", "Get info of player's status")) .appendSibling(createCmdHelpEntry("stalkskyblock", "Get info of player's SkyBlock stats")) .appendSibling(createCmdHelpEntry("analyzeIsland", "Analyze a SkyBlock private island")) @@ -503,7 +503,7 @@ public class MooCommand extends CommandBase { public List<String> addTabCompletionOptions(ICommandSender sender, String[] args, BlockPos pos) { if (args.length == 1) { return getListOfStringsMatchingLastWord(args, - /* friends */ "stalk", "stalkskyblock", "skyblockstalk", "analyzeIsland", "add", "remove", "list", "nameChangeCheck", "toggle", + /* friends & other players */ "stalk", "stalkskyblock", "skyblockstalk", "analyzeIsland", "add", "remove", "list", "nameChangeCheck", "toggle", /* miscellaneous */ "config", "search", "guiscale", "shrug", "apikey", /* update mod */ "update", "updateHelp", "version", "directory", /* help */ "help"); |