Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void event(PlayerJoinEvent event) {
- Player player = event.getPlayer();
- // create a new scoreboard with title
- SimpleScoreboard scoreboard = new SimpleScoreboard("§a§lFeatures:");
- // text with custom score
- scoreboard.add("§lCustom scores ->", 1337);
- // also supports blank lines (up to 23 of them!)
- scoreboard.blankLine();
- scoreboard.add("§cBLANK LINES");
- scoreboard.blankLine();
- // if you dont specify a score it will display them in the order you add them in
- scoreboard.add("lines");
- scoreboard.add("§bin");
- scoreboard.add("§edescending");
- scoreboard.add("§2order");
- scoreboard.add(":)");
- scoreboard.blankLine();
- // the text can be up to 48 characters long (including color codes)
- scoreboard.add("and long lines with up to §l48 characters");
- // call this to create the scoreboard, nothing will happen if you forget to call this
- scoreboard.build();
- // send the scoreboard to the player(s), takes an array
- scoreboard.send(player);
- }
Advertisement
Add Comment
Please, Sign In to add comment