blob: 1292b7e91da4469d933d2de840fcae21d8808c6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package dulkirmod.features
import dulkirmod.DulkirMod
import dulkirmod.config.Config
import dulkirmod.utils.TabListUtils
import dulkirmod.utils.Utils
class GardenVisitorAlert {
var hasSentAlert = false
fun alert() {
if (!Config.notifyMaxVisitors) return
if (!Utils.isInSkyblock()) return
if (TabListUtils.area != "Garden") {
hasSentAlert = false
}
if (TabListUtils.maxVisitors && !hasSentAlert) {
val color = Utils.getColorString(Config.bestiaryNotifColor)
DulkirMod.titleUtils.drawStringForTime("${color}Max Visitors", 5000)
DulkirMod.mc.thePlayer.playSound("mob.cat.meow", 1f * Config.bestiaryNotifVol, 1f)
hasSentAlert = true
} else if (!TabListUtils.maxVisitors) hasSentAlert = false
}
}
|