commit
bca637ea48
2 changed files with 2 additions and 2 deletions
|
@ -4836,7 +4836,7 @@ The following example illustrates how to use http.request to make a request to a
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var jsResponse;
|
var jsResponse;
|
||||||
var http = require('request');
|
var http = require('http');
|
||||||
http.request('http://scriptcraftjs.org/sample.json',function(responseCode, responseBody){
|
http.request('http://scriptcraftjs.org/sample.json',function(responseCode, responseBody){
|
||||||
jsResponse = JSON.parse( responseBody );
|
jsResponse = JSON.parse( responseBody );
|
||||||
});
|
});
|
||||||
|
|
|
@ -68,7 +68,7 @@ function paramsToString( params ) {
|
||||||
}
|
}
|
||||||
function invokeNow( fn ){
|
function invokeNow( fn ){
|
||||||
if (__plugin.bukkit){
|
if (__plugin.bukkit){
|
||||||
server.schedule.runTask( __plugin, fn);
|
server.scheduler.runTask( __plugin, fn);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (__plugin.canary){
|
if (__plugin.canary){
|
||||||
|
|
Reference in a new issue