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
|
||||
var jsResponse;
|
||||
var http = require('request');
|
||||
var http = require('http');
|
||||
http.request('http://scriptcraftjs.org/sample.json',function(responseCode, responseBody){
|
||||
jsResponse = JSON.parse( responseBody );
|
||||
});
|
||||
|
|
|
@ -68,7 +68,7 @@ function paramsToString( params ) {
|
|||
}
|
||||
function invokeNow( fn ){
|
||||
if (__plugin.bukkit){
|
||||
server.schedule.runTask( __plugin, fn);
|
||||
server.scheduler.runTask( __plugin, fn);
|
||||
return;
|
||||
}
|
||||
if (__plugin.canary){
|
||||
|
|
Reference in a new issue