diff --git a/1.10.2/src/main/kotlin/matterlink/EventHandler.kt b/1.10.2/src/main/kotlin/matterlink/EventHandler.kt index e180bf9..e773a59 100644 --- a/1.10.2/src/main/kotlin/matterlink/EventHandler.kt +++ b/1.10.2/src/main/kotlin/matterlink/EventHandler.kt @@ -29,8 +29,8 @@ object EventHandler { fun progressEvent(e: AchievementEvent) { ProgressHandler.handleProgress( name = e.entityPlayer.name, - display = e.achievement.statName.unformattedText, - type = "achievement" + message = "has earned the achievement", + display = e.achievement.statName.unformattedText ) } diff --git a/1.11.2/src/main/kotlin/matterlink/EventHandler.kt b/1.11.2/src/main/kotlin/matterlink/EventHandler.kt index e180bf9..e773a59 100644 --- a/1.11.2/src/main/kotlin/matterlink/EventHandler.kt +++ b/1.11.2/src/main/kotlin/matterlink/EventHandler.kt @@ -29,8 +29,8 @@ object EventHandler { fun progressEvent(e: AchievementEvent) { ProgressHandler.handleProgress( name = e.entityPlayer.name, - display = e.achievement.statName.unformattedText, - type = "achievement" + message = "has earned the achievement", + display = e.achievement.statName.unformattedText ) } diff --git a/1.12.2/src/main/kotlin/matterlink/EventHandler.kt b/1.12.2/src/main/kotlin/matterlink/EventHandler.kt index 304e206..bd8ae8a 100644 --- a/1.12.2/src/main/kotlin/matterlink/EventHandler.kt +++ b/1.12.2/src/main/kotlin/matterlink/EventHandler.kt @@ -30,8 +30,8 @@ object EventHandler { if (e.advancement.display == null) return ProgressHandler.handleProgress( name = e.entityPlayer.name, - display = e.advancement.displayText.unformattedText, - type = "advancement" + message = "has made the advancement", + display = e.advancement.displayText.unformattedText ) } diff --git a/core/src/main/kotlin/matterlink/handlers/ProgressHandler.kt b/core/src/main/kotlin/matterlink/handlers/ProgressHandler.kt index fdc742f..8d651a2 100644 --- a/core/src/main/kotlin/matterlink/handlers/ProgressHandler.kt +++ b/core/src/main/kotlin/matterlink/handlers/ProgressHandler.kt @@ -7,12 +7,12 @@ import matterlink.config.cfg object ProgressHandler { - fun handleProgress(name: String, display: String, type: String) { + fun handleProgress(name: String, message: String, display: String) { if (!cfg.relay.advancements) return val usr = name.antiping() MessageHandler.transmit(ApiMessage( username = cfg.relay.systemUser, - text = "$usr has earned the $type $display" + text = "$usr $message $display" )) } } \ No newline at end of file