refactor: generator minigame system (gui + text), fix color codes, holograms, messages, & config
This commit is contained in:
parent
957ab4a5a2
commit
7c7562a8d4
48 changed files with 1628 additions and 733 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package dev.loki.objective;
|
||||
|
||||
import dev.loki.mdbd;
|
||||
import dev.loki.util.TextUtil;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.ArmorStand;
|
||||
import org.bukkit.entity.Display;
|
||||
|
|
@ -120,7 +121,7 @@ public class GeneratorHologram {
|
|||
Location base = gen.getLocation().clone().add(0.5, 2.0 + heightOffset, 0.5);
|
||||
|
||||
if (display instanceof TextDisplay td) {
|
||||
td.text(net.kyori.adventure.text.Component.text(text));
|
||||
td.text(TextUtil.color(text));
|
||||
td.teleport(base);
|
||||
} else if (display instanceof ArmorStand as) {
|
||||
as.setCustomName(text);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue