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
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue