From 4be10dfa8f946e74b5e126797d00b859682015fc Mon Sep 17 00:00:00 2001 From: Christian Riis Date: Thu, 7 Apr 2016 15:07:05 +0200 Subject: [PATCH 1/5] Update request.js Replaced 'request' with 'http' in the example --- src/main/js/modules/http/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/js/modules/http/request.js b/src/main/js/modules/http/request.js index be39c97..adbe9cb 100644 --- a/src/main/js/modules/http/request.js +++ b/src/main/js/modules/http/request.js @@ -30,7 +30,7 @@ The following example illustrates how to use http.request to make a request to a ```javascript var jsResponse; -var http = require('request'); +var http = require('http'); http.request('http://scriptcraftjs.org/sample.json',function(responseCode, responseBody){ jsResponse = JSON.parse( responseBody ); }); From bb6bdbd57dbe630ecec543730e0944d172743882 Mon Sep 17 00:00:00 2001 From: kabiroberai Date: Sat, 28 May 2016 20:17:27 +0530 Subject: [PATCH 2/5] Fixed a typo in entities.js Fixed a typo in entities.js in which a comment said 'reuire' instead of 'require' --- src/main/js/plugins/entities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/js/plugins/entities.js b/src/main/js/plugins/entities.js index 3923067..48446df 100644 --- a/src/main/js/plugins/entities.js +++ b/src/main/js/plugins/entities.js @@ -1,5 +1,5 @@ 'use strict'; -/*global reuire, exports*/ +/*global require, exports*/ /* make entities a global variable for use at in-game prompt Tab completion is a useful way to discover what entity types are available. From 8c224e2565e62ad09c1fcd8c20331bbaf4c3c925 Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 12 Jul 2016 15:50:26 -0700 Subject: [PATCH 3/5] Fixed updatePlayerScore correctly update the score ObjectiveName and score were merged in a single field, causing the update not to happen. --- src/main/js/modules/minigames/scoreboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/js/modules/minigames/scoreboard.js b/src/main/js/modules/minigames/scoreboard.js index 8d7d524..6fc34f4 100644 --- a/src/main/js/modules/minigames/scoreboard.js +++ b/src/main/js/modules/minigames/scoreboard.js @@ -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 ){ From 063aebcfd50b19851dc298184431c1e9dccc8df1 Mon Sep 17 00:00:00 2001 From: marcvangend Date: Sun, 20 Nov 2016 11:07:18 +0100 Subject: [PATCH 4/5] Fix broken heading #introduction --- docs/YoungPersonsGuideToProgrammingMinecraft.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/YoungPersonsGuideToProgrammingMinecraft.md b/docs/YoungPersonsGuideToProgrammingMinecraft.md index a41d973..4ac67d7 100644 --- a/docs/YoungPersonsGuideToProgrammingMinecraft.md +++ b/docs/YoungPersonsGuideToProgrammingMinecraft.md @@ -43,6 +43,7 @@ If you would like to make changes, change file src/docs/templates/ypgpm.md inste * [Keeping Score - Lookup tables in Javascript](#keeping-score---lookup-tables-in-javascript) * [Counting block break events for each player](#counting-block-break-events-for-each-player) * [Next Steps](#next-steps) + ## Introduction Minecraft is an open-ended 3D game where you can build and craft From fba1c2f2dfa3b6f0d8047d70c60bf90bc7622212 Mon Sep 17 00:00:00 2001 From: Thomas Clavier Date: Sun, 20 Nov 2016 19:10:14 +0100 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d7d9490..809d43f 100644 --- a/README.md +++ b/README.md @@ -241,7 +241,7 @@ Developer Chris Cacciatore has created some interesting tools using ScriptCraft: # Docker -To launch a container with CanaryMod and ScriptCraft you can just do +To launch a container with SpigotMC and ScriptCraft you can just do docker run -p 25565:25565 -it tclavier/scriptcraft