MCPcopy
hub / github.com/walterhiggins/ScriptCraft / createScoreboard

Function createScoreboard

src/main/js/modules/minigames/scoreboard.js:28–33  ·  view source on GitHub ↗
(objectiveName, displayName)

Source from the content-addressed store, hash-verified

26}
27*/
28function createScoreboard(objectiveName, displayName) {
29 execCommand(
30 'scoreboard objectives add ' + objectiveName + ' dummy ' + displayName
31 );
32 execCommand('scoreboard objectives setdisplay sidebar ' + objectiveName);
33}
34function addTeamToScoreboard(teamName /*, color*/) {
35 execCommand('scoreboard teams add ' + teamName);
36 /*

Callers

nothing calls this directly

Calls 1

execCommandFunction · 0.85

Tested by

no test coverage detected