These are chat archives for MinigameCore/MinigameCore

19th
Dec 2015
Flibio
@Flibio
Dec 19 2015 02:40
Ah ok, so what do you have so far, if anything?
Flibio
@Flibio
Dec 19 2015 15:47
This message was deleted
This message was deleted

Here is a quick example I threw together:

Scoreboard board = game.getRegistry().createBuilder(Scoreboard.Builder.class).build();
Objective obj = game.getRegistry().createBuilder(Objective.Builder.class).name("MyObjective").criterion(Criteria.DUMMY).displayName("MyObjectiveDisplayName").build();
obj.getScore(Texts.of("Hello World!")).setScore(1);
board.addObjective(obj, DisplaySlots.SIDEBAR);
player.setScoreboard(board);

Note you will need to have a player object and a game object set for this code to work.