From c0928d10c08e7f01c36269cbac11a5dcd2da6378 Mon Sep 17 00:00:00 2001 From: bushtail Date: Tue, 9 May 2023 22:43:31 -0400 Subject: [PATCH] restore original look of nametag --- plugin-playground/src/main/kotlin/Craftify/plugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-playground/src/main/kotlin/Craftify/plugin.kt b/plugin-playground/src/main/kotlin/Craftify/plugin.kt index b1d4b07..4ae6b09 100644 --- a/plugin-playground/src/main/kotlin/Craftify/plugin.kt +++ b/plugin-playground/src/main/kotlin/Craftify/plugin.kt @@ -19,7 +19,7 @@ class plugin : Plugin() { override fun PlayerOverheadDraw(player: Player?, screenX: Int, screenY: Int) { if (player == null) return val width = Fonts.p11Full.getStringWidth(player.username) - API.DrawRect(screenX - width / 2, screenY - 12, width, 14, FontColor.fromColor(Color.BLACK).colorCode) + API.FillRect((screenX - width / 2) - 2, screenY - 12, width + 4, 14, FontColor.fromColor(Color.BLACK).colorCode, 125) API.DrawText(FontType.SMALL, FontColor.fromColor(Color.WHITE), TextModifier.CENTER, player.username.toString(), screenX, screenY) } } \ No newline at end of file