Minecraft 1.14 Scoreboard Programming?

Ca
7

How can I program a scoreboard in 1.14 because things are not the same anymore?

Co

Do you mean with commands or really programming

Ca

Really program

Co

So spigot / bukkit I have programmed so far only in 1:12 but with a mistake and code we would come further

Ca

Her is the code under the mistake

import org.bukkit.Bukkit;

import org.bukkit.entity.Player;

import org.bukkit.scoreboard.Objective;

import org.bukkit.scoreboard.ScoreboardManager;

public class scoreboard {

public static void Scoreboard (Player p) {

Scoreboard board = Bukkit.getScoreboardManager (). GetNewScoreboard ();

Objective objective = board.registerNewObjective ("name", "criteria", "displayname");

Co

1. The first letter of the name of a method is written in lower case

2. There's no mistake

3. Usually you create a scoreboard like that

Scoreboard scoreboard = Bukkit.getScoreboardManager ();

Objective money = scoreboard.registerNewObjective ("side", "money"),

money.setDisplayName ("Money");

money.setDisplaySlot (DisplaySlot.SIDEBAR);

Score value = money.getScore ("Money:");

value.setScore (10);

player.setScoreboard (scoreboard);

I hope I did not commit myself on the phone and could help

Ca

Yes, but it is no in joinListene if I make it in my ScoreboardClass it will be displayed as an error

Co

Do you have discord or teamviewer Then I look over it