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 a25728e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
// Constants:

group = "be.hize"
version = "1.0.7"
version = "1.0.6"

// Toolchains:
java {
Expand Down
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 a25728e

Please sign in to comment.