Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
superhize committed Jul 22, 2024
1 parent 91f94c0 commit 307c73d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/kotlin/be/hize/afknotifier/features/Notifier.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ object Notifier {
private var restartReason = ""
private var restartingIn = ""

//private var hoppityCall = false

private val restartingPattern = "§cServer closing: (?<minutes>\\d+):(?<seconds>\\d+) ?§8.*".toPattern()
private val rebootReasonPattern = "§c\\[Important] §r§eThis server will restart soon: §r§b(?<reason>.*)".toPattern()
private val hoppityCallPattern = "§e✆ §r§aHoppity.*".toPattern()
Expand Down Expand Up @@ -101,8 +99,7 @@ object Notifier {
fun onHoppityCall(event: ChatEvent) {
if (!isEnabled()) return
hoppityCallPattern.matchMatcher(event.message) {
//hoppityCall = true
logger.log("Detected Hoppity Call")
logger.log("Detected Hoppity Call")
if (config.hoppityCall) {
DiscordUtil.sendAfkWarning("Hoppity has called %%user%%")
logger.log("Sending Hoppity Call Notification")
Expand Down Expand Up @@ -160,7 +157,7 @@ object Notifier {
if (old == config.islandType) {
if (config.onlyOnLobbyRestart && !lobbyRestarting) return
DiscordUtil.sendAfkWarning(
config.islandLeaveMessage.replace("%%island%%", old.displayName.uppercase())
config.islandLeaveMessage.replace("%%island%%", old.displayName.uppercase()),
)
logger.log("Private island leave message sent.")
islandMessageSent = true
Expand Down

0 comments on commit 307c73d

Please sign in to comment.