diff options
| author | Cow <cow@volloeko.de> | 2020-07-01 02:14:58 +0200 |
|---|---|---|
| committer | Cow <cow@volloeko.de> | 2020-07-01 02:14:58 +0200 |
| commit | a54f518faf6d79be4bfd5ec218d251734bb123f1 (patch) | |
| tree | 0fee9317fd3e1653c80f1f53bfc693b40bf9535d /src/main/java/eu/olli/cowmoonication/command | |
| parent | d1b0389bf09f984e8f888cd875438b8bbe3d125f (diff) | |
| download | Cowlection-a54f518faf6d79be4bfd5ec218d251734bb123f1.tar.gz Cowlection-a54f518faf6d79be4bfd5ec218d251734bb123f1.tar.bz2 Cowlection-a54f518faf6d79be4bfd5ec218d251734bb123f1.zip | |
Added item age tooltips
Diffstat (limited to 'src/main/java/eu/olli/cowmoonication/command')
| -rw-r--r-- | src/main/java/eu/olli/cowmoonication/command/MooCommand.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/eu/olli/cowmoonication/command/MooCommand.java b/src/main/java/eu/olli/cowmoonication/command/MooCommand.java index c926939..4467167 100644 --- a/src/main/java/eu/olli/cowmoonication/command/MooCommand.java +++ b/src/main/java/eu/olli/cowmoonication/command/MooCommand.java @@ -290,12 +290,12 @@ public class MooCommand extends CommandBase { .setChatHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ChatComponentText(EnumChatFormatting.YELLOW + "Run " + EnumChatFormatting.GOLD + "/profile " + slothStalking.getPlayerName()))))) .appendSibling(new ChatComponentText(" while you're in a lobby (tooltip of the player head on the top left).").setChatStyle(new ChatStyle().setColor(EnumChatFormatting.YELLOW)))); } else if (slothStalking.hasNeverLoggedOut()) { - Pair<String, String> lastOnline = Utils.getLastOnlineWords(slothStalking.getLastLogin()); + Pair<String, String> lastOnline = Utils.getDurationAsWords(slothStalking.getLastLogin()); main.getChatHelper().sendMessage(EnumChatFormatting.YELLOW, slothStalking.getPlayerNameFormatted() + EnumChatFormatting.YELLOW + " was last online " + EnumChatFormatting.GOLD + lastOnline.first() + EnumChatFormatting.YELLOW + " ago" + (lastOnline.second() != null ? " (" + EnumChatFormatting.GOLD + lastOnline.second() + EnumChatFormatting.YELLOW + ")" : "") + "."); } else { - Pair<String, String> lastOnline = Utils.getLastOnlineWords(slothStalking.getLastLogout()); + Pair<String, String> lastOnline = Utils.getDurationAsWords(slothStalking.getLastLogout()); main.getChatHelper().sendMessage(EnumChatFormatting.YELLOW, slothStalking.getPlayerNameFormatted() + EnumChatFormatting.YELLOW + " is " + EnumChatFormatting.GOLD + "offline" + EnumChatFormatting.YELLOW + " for " + EnumChatFormatting.GOLD + lastOnline.first() + EnumChatFormatting.YELLOW + ((lastOnline.second() != null || slothStalking.getLastGame() != null) ? (" (" |
