Skip to content

Commit

Permalink
added AutoJoinSkyblock feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikecraft1224 committed Oct 16, 2024
1 parent faf84b6 commit a1a101e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ public class MiscConfig {
@ConfigEditorDraggableList
public Property<List<OutsideSbFeature>> showOutsideSB = Property.of(new ArrayList<>());

@Expose
@ConfigOption(name = "Auto join Skyblock", desc = "Automatically join Skyblock when you join Hypixel.")
@ConfigEditorBoolean
@FeatureToggle
public boolean autoJoinSkyblock = true;

@Expose
@ConfigOption(name = "Exp Bottles", desc = "Hide all the experience orbs lying on the ground.")
@ConfigEditorBoolean
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package at.hannibal2.skyhanni.features.misc

import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.events.HypixelJoinEvent
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
import at.hannibal2.skyhanni.utils.HypixelCommands
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent

@SkyHanniModule
object AutoJoinSkyblock {
@SubscribeEvent
fun onHypixelJoin(event: HypixelJoinEvent) {
if (!SkyHanniMod.feature.misc.autoJoinSkyblock) return

HypixelCommands.skyblock()
}
}

0 comments on commit a1a101e

Please sign in to comment.