Skip to content

Commit

Permalink
even more linebreaks
Browse files Browse the repository at this point in the history
  • Loading branch information
RayDeeUx committed May 26, 2024
1 parent 5dedd94 commit 45515b2
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions src/main/java/at/hannibal2/skyhanni/features/misc/WhereWillIBe.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,34 @@ import kotlin.math.pow
import kotlin.random.Random

object WhereWillIBe {
private val nonIslands = listOf(IslandType.NONE, IslandType.UNKNOWN, IslandType.MINESHAFT)
private val nonIslands =
listOf(
IslandType.NONE,
IslandType.UNKNOWN,
IslandType.MINESHAFT
)
private val privateOrGuest =
listOf(IslandType.PRIVATE_ISLAND_GUEST, IslandType.PRIVATE_ISLAND, IslandType.GARDEN_GUEST)
listOf(
IslandType.PRIVATE_ISLAND_GUEST,
IslandType.PRIVATE_ISLAND,
IslandType.GARDEN_GUEST
)
private val onceOnlyIslands =
listOf(IslandType.DARK_AUCTION, IslandType.KUUDRA_ARENA, IslandType.CATACOMBS, IslandType.THE_RIFT)
listOf(
IslandType.DARK_AUCTION,
IslandType.KUUDRA_ARENA,
IslandType.CATACOMBS,
IslandType.THE_RIFT
)

@SubscribeEvent
fun onMessageSendToServer(event: MessageSendToServerEvent) {
if (!LorenzUtils.onHypixel) return
if (event.message.lowercase() != "/wherewillibe") return
event.cancel()
val islandsAsList = IslandType.entries.toList().filter { it !in nonIslands }.toMutableList()
if (SkyBlockTime.now().month != 12) islandsAsList.remove(IslandType.WINTER)
if (SkyBlockTime.now().month != 12)
islandsAsList.remove(IslandType.WINTER)
var lastUsedMillis = SimpleTimeMark.now().toMillis()
var lastIsland = IslandType.NONE
var chosenIsland = IslandType.NONE
Expand Down

0 comments on commit 45515b2

Please sign in to comment.