Skip to content

Commit

Permalink
Actually have combat tag enabling appear in console
Browse files Browse the repository at this point in the history
  • Loading branch information
kwazedilla committed Jan 24, 2025
1 parent 1eae095 commit 81c177b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package net.horizonsend.ion.server.features.player

import net.horizonsend.ion.common.database.cache.nations.RelationCache
import net.horizonsend.ion.common.database.schema.nations.NationRelation
import net.horizonsend.ion.common.extensions.alert
import net.horizonsend.ion.common.extensions.success
import net.horizonsend.ion.common.utils.text.colors.HEColorScheme.Companion.HE_LIGHT_BLUE
import net.horizonsend.ion.common.utils.text.colors.HEColorScheme.Companion.HE_MEDIUM_GRAY
Expand Down Expand Up @@ -153,6 +154,7 @@ object CombatTimer : IonServerComponent() {
if (!enabled) return

if (!isNpcCombatTagged(player) && PlayerCache[player].enableCombatTimerAlerts) {
player.alert("You are now in combat (NPC)")
player.sendMessage(npcTimerAlertComponent(reason))
}

Expand All @@ -166,6 +168,7 @@ object CombatTimer : IonServerComponent() {
if (!enabled) return

if (!isPvpCombatTagged(player) && PlayerCache[player].enableCombatTimerAlerts) {
player.alert("You are now in combat (PVP)")
player.sendMessage(pvpTimerAlertComponent(reason))
}

Expand Down

0 comments on commit 81c177b

Please sign in to comment.