Skip to content

Commit

Permalink
I forgor the hud 💀
Browse files Browse the repository at this point in the history
💀
  • Loading branch information
Edouard127 committed May 22, 2022
1 parent 05db673 commit 904cd6c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions src/main/kotlin/ElytraBotHUD.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import com.lambda.client.event.SafeClientEvent
import com.lambda.client.plugin.api.PluginLabelHud
import com.lambda.client.util.color.ColorHolder

internal object ElytraBotStatus : PluginLabelHud(
name = "Elytra Bot Status",
category = Category.CLIENT,
description = "Elytra Bot Status",
pluginMain = ElytraBotPlugin
) {

private val textColor by setting("Text Color", ColorHolder(0, 255, 0, 255))

override fun SafeClientEvent.updateText() {
if(ElytraBotModule.isEnabled){
displayText.addLine("Going to ${ElytraBotModule.goal?.x}, ${ElytraBotModule.goal?.y}, ${ElytraBotModule.goal?.z}", textColor)
}
}

}
2 changes: 1 addition & 1 deletion src/main/kotlin/ElytraBotPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ internal object ElytraBotPlugin : Plugin() {
// Load any modules, commands, or HUD elements here
modules.add(ElytraBotModule)
commands.add(ElytraBotCommand)

hudElements.add(ElytraBotStatus)
}

override fun onUnload() {}
Expand Down

0 comments on commit 904cd6c

Please sign in to comment.