diff options
author | Erymanthus[#5074] | (u/)RayDeeUx <51521765+RayDeeUx@users.noreply.github.com> | 2023-10-28 13:00:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-28 19:00:19 +0200 |
commit | 155af1305a5b65d0aac93e214ba6bead3a4d4e72 (patch) | |
tree | 4e295886ad2f3a2d34f8673482826d41a5b80d9a /src/main/java/at/hannibal2/skyhanni/config/features | |
parent | 82e39c24bb45c73bf9a258e63134acd4104efe53 (diff) | |
download | skyhanni-155af1305a5b65d0aac93e214ba6bead3a4d4e72.tar.gz skyhanni-155af1305a5b65d0aac93e214ba6bead3a4d4e72.tar.bz2 skyhanni-155af1305a5b65d0aac93e214ba6bead3a4d4e72.zip |
Change: switch to internal fandom wiki search engine, increase scope of skyhanni's /wiki command to include any item whose item lore includes wiki. (#494)
Added option to change hypixel wiki to fandom wiki in more areas than just the /wiki command. #494
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/CommandsConfig.java | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/CommandsConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/CommandsConfig.java index 12b7610ae..ed90268d5 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/CommandsConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/CommandsConfig.java @@ -4,7 +4,9 @@ import at.hannibal2.skyhanni.config.FeatureToggle; import com.google.gson.annotations.Expose; import io.github.moulberry.moulconfig.annotations.Accordion; import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean; +import io.github.moulberry.moulconfig.annotations.ConfigEditorKeybind; import io.github.moulberry.moulconfig.annotations.ConfigOption; +import org.lwjgl.input.Keyboard; public class CommandsConfig { @@ -68,11 +70,30 @@ public class CommandsConfig { public boolean viewrecipeItems = true; } + @ConfigOption(name = "Fandom Wiki for §e/wiki", desc = "") + @Accordion @Expose - @ConfigOption(name = "Fandom Wiki", desc = "Use Fandom wiki (§ehypixel-skyblock.fandom.com§7) instead of the Hypixel wiki (§ewiki.hypixel.net§7).") - @ConfigEditorBoolean - @FeatureToggle - public boolean useFandomWiki = false; + public FandomWikiCommmandConfig fandomWiki = new FandomWikiCommmandConfig(); + + public static class FandomWikiCommmandConfig { + + @Expose + @ConfigOption(name = "Replace Chat", desc = "Use Fandom Wiki (§ehypixel-skyblock.fandom.com§7) instead of the Hypixel wiki (§ewiki.hypixel.net§7) in most wiki-related chat messages.") + @ConfigEditorBoolean + @FeatureToggle + public boolean useFandomWiki = false; + + @Expose + @ConfigOption(name = "Skip Chat", desc = "Directly opens the Fandom Wiki instead of sending the §e\"Click to search for this thing on the Fandom Wiki\"§7 message beforehand.") + @ConfigEditorBoolean + @FeatureToggle + public boolean skipWikiChat = false; + + @Expose + @ConfigOption(name = "Fandom Wiki Key", desc = "Search for an item on Fandom Wiki with this keybind.\n§4For optimal experiences, do §lNOT§r §4bind this to a mouse button.") + @ConfigEditorKeybind(defaultKey = Keyboard.KEY_NONE) + public int fandomWikiKeybind = Keyboard.KEY_NONE; + } @ConfigOption(name = "Party Commands", desc = "Shortens party commands and allows tab-completing for them. " + "\n§eCommands: /pt /pp /pko /pk §7SkyBlock command §e/pt §7to check the play time still works.") |