Hi, I plan on implementing scoreboards in a plugin that I am currently working on, I’ve been looking around the development section about different threads related to scoreboards but I’m struggling to fully grasp it. So from what I have understood, I need to create a SetDisplayObjectivePacket and then send it to the server players, I intend on having a countdown/timer in the scoreboard, so how would I continuously update it to display the latest number in the countdown. Any help/explanation would be much appreciated
Would creating a scheduled task which changes the line and sends the packet to all player every second work?
by sending SetDisplayObjectivePacket and then sending the RemoveObjectivePacket to the player. But make sure you store/remember the packet objectiveName from when you sent it to the player to remove it. EDIT: i personally make the objectiveName packet property the players name but you can choose what you want todo with it