refactor: generator minigame system (gui + text), fix color codes, holograms, messages, & config

This commit is contained in:
loki5512344 2026-06-14 16:04:25 +02:00
parent 957ab4a5a2
commit 7c7562a8d4
48 changed files with 1628 additions and 733 deletions

View file

@ -150,8 +150,9 @@ public class TitleUI {
Component title = Component.text(visual.toString())
.color(NamedTextColor.WHITE);
Component subtitle = Component.text("CROUCH when in the zone!")
.color(NamedTextColor.YELLOW);
String subStr = plugin.getConfigManager().getMessages()
.getString("hook.struggle.subtitle", "&eПрисядь когда будешь в зоне!");
Component subtitle = dev.loki.util.TextUtil.color(subStr);
Title.Times times = Title.Times.times(Duration.ZERO, Duration.ofMillis(100), Duration.ZERO);
player.showTitle(Title.title(title, subtitle, times));