Merge pull request #298 from ekellener/master

Fixed updatePlayerScore correctly update the score
This commit is contained in:
Walter Higgins 2016-12-07 09:10:03 +00:00 committed by GitHub
commit 6b92532cde

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 ){