use of com.github.sirblobman.api.language.LanguageManager in project CombatLogX by SirBlobman.
the class BossBarUpdater method getMessage.
private String getMessage(Player player, long timeLeftMillis) {
LanguageManager languageManager = getLanguageManager();
if (timeLeftMillis <= 0) {
String path = ("expansion.boss-bar.ended");
return languageManager.getMessage(player, path, null, true);
}
String path = ("expansion.boss-bar.timer");
String message = languageManager.getMessage(player, path, null, true);
if (message.isEmpty()) {
return null;
}
return replacePlaceholders(player, message);
}
Aggregations