diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-05-01 08:56:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 16:56:07 +1000 |
commit | ff5287258aee4e39b6ab0ba92ab17afde2de07d9 (patch) | |
tree | fe5813cf8024d7812bd4c77decb495cdbe108c7c /src/main/java/at/hannibal2/skyhanni/config | |
parent | dad2c5b0156aee4fd84cf641fae8b08d2e97ff67 (diff) | |
download | skyhanni-ff5287258aee4e39b6ab0ba92ab17afde2de07d9.tar.gz skyhanni-ff5287258aee4e39b6ab0ba92ab17afde2de07d9.tar.bz2 skyhanni-ff5287258aee4e39b6ab0ba92ab17afde2de07d9.zip |
Feature: Chocolate change leaderboard (#1602)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Co-authored-by: Cal <cwolfson58@gmail.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
2 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java index 96386bf76..773fe7fcf 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java @@ -130,6 +130,15 @@ public class ChocolateFactoryConfig { public Position hoppityStatsPosition = new Position(163, 160, false, true); @Expose + @ConfigOption(name = "Leaderboard Change", + desc = "Show the change of your chocolate leaderboard over time in chat. " + + "This updates every time you first open the /cf menu on a new server." + ) + @ConfigEditorBoolean + @FeatureToggle + public boolean leaderboardChange = false; + + @Expose @ConfigOption(name = "Hoppity Menu Shortcut", desc = "Add a Chocolate Factory button in the SkyBlock Menu that runs /chocolatefactory on click.") @ConfigEditorBoolean @FeatureToggle diff --git a/src/main/java/at/hannibal2/skyhanni/config/storage/ProfileSpecificStorage.java b/src/main/java/at/hannibal2/skyhanni/config/storage/ProfileSpecificStorage.java index 472f1e8af..ba60712e9 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/storage/ProfileSpecificStorage.java +++ b/src/main/java/at/hannibal2/skyhanni/config/storage/ProfileSpecificStorage.java @@ -94,6 +94,20 @@ public class ProfileSpecificStorage { @Expose public long lastDataSave = 0; + + @Expose + public PositionChange positionChange = new PositionChange(); + + public static class PositionChange { + @Expose + public Long lastTime = null; + + @Expose + public int lastPosition = -1; + + @Expose + public String lastLeaderboard = null; + } } @Expose |