diff options
author | Cow <cow@volloeko.de> | 2020-04-29 19:23:24 +0200 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2020-04-29 19:23:24 +0200 |
commit | e4191129a9a3624b4d69862e4bd5f498827e08c8 (patch) | |
tree | 6cabb5a8a6c741b1937da1eb36c2f44070a7a0f0 /src/main/java/eu/olli/cowmoonication/command/MooCommand.java | |
parent | 38cd6cc98ba320e54754a270c889549b793b6b90 (diff) | |
download | Cowlection-e4191129a9a3624b4d69862e4bd5f498827e08c8.tar.gz Cowlection-e4191129a9a3624b4d69862e4bd5f498827e08c8.tar.bz2 Cowlection-e4191129a9a3624b4d69862e4bd5f498827e08c8.zip |
Simplified command handling with Tab-completable usernames
- Replaced having just one command with several aliases for each supported command with having one command for each supported command
- Fixes chat components with run_command click events to be executed (e.g. join a party)
Diffstat (limited to 'src/main/java/eu/olli/cowmoonication/command/MooCommand.java')
-rw-r--r-- | src/main/java/eu/olli/cowmoonication/command/MooCommand.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/olli/cowmoonication/command/MooCommand.java b/src/main/java/eu/olli/cowmoonication/command/MooCommand.java index c1a8318..9cf94e1 100644 --- a/src/main/java/eu/olli/cowmoonication/command/MooCommand.java +++ b/src/main/java/eu/olli/cowmoonication/command/MooCommand.java @@ -180,7 +180,7 @@ public class MooCommand extends CommandBase { if (slothStalking == null) { main.getChatHelper().sendMessage(EnumChatFormatting.RED, "Something went wrong contacting the Slothpixel API. Couldn't stalk " + EnumChatFormatting.DARK_RED + stalkedPlayer.getName() + EnumChatFormatting.RED + " but they appear to be offline currently."); } else if (slothStalking.hasNeverJoinedHypixel()) { - main.getChatHelper().sendMessage(EnumChatFormatting.YELLOW, stalkedPlayer.getName() + EnumChatFormatting.YELLOW + " has " + EnumChatFormatting.GOLD + "never " + EnumChatFormatting.YELLOW + "been on Hypixel (or might be nicked)."); + main.getChatHelper().sendMessage(EnumChatFormatting.YELLOW, EnumChatFormatting.GOLD + stalkedPlayer.getName() + EnumChatFormatting.YELLOW + " has " + EnumChatFormatting.GOLD + "never " + EnumChatFormatting.YELLOW + "been on Hypixel (or might be nicked)."); } else if (slothStalking.isHidingOnlineStatus()) { main.getChatHelper().sendMessage(EnumChatFormatting.YELLOW, slothStalking.getPlayerNameFormatted() + EnumChatFormatting.YELLOW + " is hiding their online status."); } else if (slothStalking.hasNeverLoggedOut()) { |