|
5 | 5 | import github.nighter.smartspawner.language.ColorUtil; |
6 | 6 | import github.nighter.smartspawner.language.LanguageManager; |
7 | 7 |
|
| 8 | +import org.bukkit.Color; |
8 | 9 | import org.bukkit.Location; |
9 | 10 | import org.bukkit.entity.Display; |
10 | | -import org.bukkit.entity.Entity; |
11 | 11 | import org.bukkit.entity.EntityType; |
12 | 12 | import org.bukkit.entity.TextDisplay; |
13 | 13 | import org.bukkit.util.Transformation; |
14 | 14 | import org.joml.AxisAngle4f; |
15 | 15 | import org.joml.Vector3f; |
16 | 16 |
|
17 | | -import java.awt.*; |
18 | 17 | import java.util.HashMap; |
19 | 18 | import java.util.Map; |
20 | 19 | import java.util.concurrent.atomic.AtomicReference; |
@@ -84,6 +83,11 @@ public void createHologram() { |
84 | 83 | td.setDefaultBackground(false); |
85 | 84 | td.setTransformation(new Transformation(TRANSLATION, ROTATION, SCALE, ROTATION)); |
86 | 85 | td.setSeeThrough(plugin.getConfig().getBoolean("hologram.see_through", false)); |
| 86 | + // Set background transparency based on config |
| 87 | + boolean transparentBg = plugin.getConfig().getBoolean("hologram.transparent_background", false); |
| 88 | + if (transparentBg) { |
| 89 | + td.setBackgroundColor(Color.fromARGB(0, 0, 0, 0)); |
| 90 | + } |
87 | 91 | // Add custom name for identification |
88 | 92 | td.setCustomName(uniqueIdentifier); |
89 | 93 | td.setCustomNameVisible(false); |
|
0 commit comments