Fixed updatePlayerScore correctly update the score

ObjectiveName and score were merged in a single field, causing the update not to happen.
This commit is contained in:
Erik 2016-07-12 15:50:26 -07:00 committed by GitHub
parent 5a936bab20
commit 8c224e2565

View file

@ -55,7 +55,7 @@ function updatePlayerScore( objectiveName, playerName, score ){
var sc = sb['getScore(String, ScoreObjective)']( playerName, sb.getScoreObjective( objectiveName) );
sc.score = score;
*/
execCommand('scoreboard players set ' + playerName + ' ' + objectiveName + score);
execCommand('scoreboard players set ' + playerName + ' ' + objectiveName + ' ' + score);
}
function removeTeamFromScoreboard( teamName ){