use of com.github.sirblobman.api.nms.scoreboard.ScoreboardHandler in project CombatLogX by SirBlobman.
the class CustomScoreboard method createObjective.
private void createObjective() {
Player player = getPlayer();
LanguageManager languageManager = getLanguageManager();
String title = languageManager.getMessage(player, "expansion.scoreboard.title", null, true);
String titleReplaced = replacePlaceholders(title);
ICombatLogX plugin = this.expansion.getPlugin();
MultiVersionHandler multiVersionHandler = plugin.getMultiVersionHandler();
ScoreboardHandler scoreboardHandler = multiVersionHandler.getScoreboardHandler();
Scoreboard scoreboard = getScoreboard();
this.objective = scoreboardHandler.createObjective(scoreboard, "combatlogx", "dummy", titleReplaced);
this.objective.setDisplaySlot(DisplaySlot.SIDEBAR);
}
Aggregations