Skip to content

Commit e6c95ec

Browse files
authored
Merge pull request #1 from walterhiggins/master
Pull in latest updates from core
2 parents bc2ab29 + 0aebd5f commit e6c95ec

5 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Developer Chris Cacciatore has created some interesting tools using ScriptCraft:
241241

242242
# Docker
243243

244-
To launch a container with CanaryMod and ScriptCraft you can just do
244+
To launch a container with SpigotMC and ScriptCraft you can just do
245245

246246
docker run -p 25565:25565 -it tclavier/scriptcraft
247247

docs/YoungPersonsGuideToProgrammingMinecraft.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ If you would like to make changes, change file src/docs/templates/ypgpm.md inste
4343
* [Keeping Score - Lookup tables in Javascript](#keeping-score---lookup-tables-in-javascript)
4444
* [Counting block break events for each player](#counting-block-break-events-for-each-player)
4545
* [Next Steps](#next-steps)
46+
4647
## Introduction
4748

4849
Minecraft is an open-ended 3D game where you can build and craft

src/main/js/modules/http/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The following example illustrates how to use http.request to make a request to a
3030
3131
```javascript
3232
var jsResponse;
33-
var http = require('request');
33+
var http = require('http');
3434
http.request('http://scriptcraftjs.org/sample.json',function(responseCode, responseBody){
3535
jsResponse = JSON.parse( responseBody );
3636
});

src/main/js/modules/minigames/scoreboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function updatePlayerScore( objectiveName, playerName, score ){
5555
var sc = sb['getScore(String, ScoreObjective)']( playerName, sb.getScoreObjective( objectiveName) );
5656
sc.score = score;
5757
*/
58-
execCommand('scoreboard players set ' + playerName + ' ' + objectiveName + score);
58+
execCommand('scoreboard players set ' + playerName + ' ' + objectiveName + ' ' + score);
5959
}
6060

6161
function removeTeamFromScoreboard( teamName ){

src/main/js/plugins/entities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
/*global reuire, exports*/
2+
/*global require, exports*/
33
/*
44
make entities a global variable for use at in-game prompt
55
Tab completion is a useful way to discover what entity types are available.

0 commit comments

Comments
 (0)