diff options
author | Cow <cow@volloeko.de> | 2020-11-23 22:17:26 +0100 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2020-11-23 22:17:26 +0100 |
commit | a5469082c9feafa5512c1b0e81dec371db785042 (patch) | |
tree | b5bbf01062901b6071904a2ee70b0f0d25ca25d4 /src/main/java/de/cowtipper/cowlection/command/MooCommand.java | |
parent | 0a731e512f1556ca22006419b409110338a7d4ed (diff) | |
download | Cowlection-a5469082c9feafa5512c1b0e81dec371db785042.tar.gz Cowlection-a5469082c9feafa5512c1b0e81dec371db785042.tar.bz2 Cowlection-a5469082c9feafa5512c1b0e81dec371db785042.zip |
What year is it?
- Adapt to Creeper minion skin fix (Creeper Minion V + VI had the same skin for over 100 SkyBlock years)
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/command/MooCommand.java')
-rw-r--r-- | src/main/java/de/cowtipper/cowlection/command/MooCommand.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/command/MooCommand.java b/src/main/java/de/cowtipper/cowlection/command/MooCommand.java index a2a3c0a..0e14a01 100644 --- a/src/main/java/de/cowtipper/cowlection/command/MooCommand.java +++ b/src/main/java/de/cowtipper/cowlection/command/MooCommand.java @@ -114,6 +114,9 @@ public class MooCommand extends CommandBase { main.getChatHelper().sendShrug(buildString(args, 1)); } else if (args[0].equalsIgnoreCase("apikey")) { handleApiKey(args); + } else if (args[0].equalsIgnoreCase("whatyearisit") || args[0].equalsIgnoreCase("year")) { + long year = ((System.currentTimeMillis() - 1560275700000L) / (TimeUnit.HOURS.toMillis(124))) + 1; + main.getChatHelper().sendMessage(EnumChatFormatting.YELLOW, "It is SkyBlock year " + EnumChatFormatting.GOLD + year + EnumChatFormatting.YELLOW + "."); } //endregion //region sub-commands: update mod @@ -824,7 +827,7 @@ public class MooCommand extends CommandBase { /* miscellaneous */ "config", "search", "guiscale", "rr", "shrug", "apikey", /* update mod */ "update", "updateHelp", "version", "directory", /* help */ "help", - /* rarely used aliases */ "askPolitelyWhereTheyAre", "askPolitelyAboutTheirSkyBlockProgress"); + /* rarely used aliases */ "askPolitelyWhereTheyAre", "askPolitelyAboutTheirSkyBlockProgress", "year", "whatyearisit"); } else if (args.length == 2 && args[0].equalsIgnoreCase("remove")) { return getListOfStringsMatchingLastWord(args, main.getFriendsHandler().getBestFriends()); } else if (args.length == 2 && args[0].equalsIgnoreCase("dungeon")) { |