diff options
| author | Kaeso <24925519+ptlthg@users.noreply.github.com> | 2023-08-27 16:32:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-27 22:32:00 +0200 |
| commit | 80a6728abdd34d80495bfd18f0250bbf59865a25 (patch) | |
| tree | 97b7829d4b0bdde2b60e106aecbf36060e2796cd /src/main/java/at/hannibal2/skyhanni/config | |
| parent | 61db65f366935ba67cdd22ca0ea6a8afc1d9e261 (diff) | |
| download | skyhanni-80a6728abdd34d80495bfd18f0250bbf59865a25.tar.gz skyhanni-80a6728abdd34d80495bfd18f0250bbf59865a25.tar.bz2 skyhanni-80a6728abdd34d80495bfd18f0250bbf59865a25.zip | |
Merge pull request #335
* Sync Jacob Contests
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
3 files changed, 17 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/Storage.java b/src/main/java/at/hannibal2/skyhanni/config/Storage.java index 79731f069..a2af0ed79 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/Storage.java +++ b/src/main/java/at/hannibal2/skyhanni/config/Storage.java @@ -24,6 +24,9 @@ public class Storage { public Map<Long, List<CropType>> gardenJacobFarmingContestTimes = new HashMap<>(); @Expose + public Boolean contestSendingAsked = false; + + @Expose public Map<UUID, PlayerSpecific> players = new HashMap<>(); public static class PlayerSpecific { diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt index 118af32e7..0b4f8c6e9 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt @@ -13,6 +13,7 @@ import at.hannibal2.skyhanni.features.fame.AccountUpgradeReminder import at.hannibal2.skyhanni.features.fame.CityProjectFeatures import at.hannibal2.skyhanni.features.garden.GardenAPI import at.hannibal2.skyhanni.features.garden.GardenCropTimeCommand +import at.hannibal2.skyhanni.features.garden.GardenNextJacobContest import at.hannibal2.skyhanni.features.garden.composter.ComposterOverlay import at.hannibal2.skyhanni.features.garden.farming.CropMoneyDisplay import at.hannibal2.skyhanni.features.garden.farming.CropSpeedMeter @@ -230,8 +231,8 @@ object Commands { registerCommand("shshareinquis", "") { InquisitorWaypointShare.sendInquisitor() } registerCommand("shcopyerror", "") { CopyErrorCommand.command(it) } registerCommand("shstopcityprojectreminder", "") { CityProjectFeatures.disable() } + registerCommand("shsendcontests", "") { GardenNextJacobContest.shareContestConfirmed(it) } registerCommand("shstopaccountupgradereminder", "") { AccountUpgradeReminder.disable() } - } private fun commandHelp(args: Array<String>) { diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java index b3a5abd27..1d30c2998 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java @@ -938,6 +938,18 @@ public class GardenConfig { public boolean nextJacobContestOtherGuis = false; @Expose + @ConfigOption(name = "Fetch Contests", desc = "Automatically fetch contests from elitebot.dev for the current year if they're uploaded already.") + @ConfigEditorBoolean + @ConfigAccordionId(id = 14) + public boolean nextJacobContestsFetchAutomatically = true; + + @Expose + @ConfigOption(name = "Share Contests", desc = "Share the list of upcoming contests to elitebot.dev for everyone else to then fetch automatically.") + @ConfigEditorDropdown(values = { "Ask When Needed", "Share Automatically", "Disabled" }) + @ConfigAccordionId(id = 14) + public int nextJacobContestsShareAutomatically = 0; + + @Expose @ConfigOption(name = "Warning", desc = "Show a warning shortly before a new Jacob's contest starts.") @ConfigEditorBoolean @ConfigAccordionId(id = 14) |
