Removing empty lib/canary.js and removing craftbukkit references from scriptcraft.js docs

This commit is contained in:
walterhiggins 2014-12-31 11:15:28 +00:00
parent e388cdbc8e
commit 99e9580cd9
3 changed files with 16 additions and 21 deletions

View file

@ -486,14 +486,13 @@ module.exports instead of exports.
## Module Loading ## Module Loading
When the ScriptCraft Java plugin is first installed, a new When the ScriptCraft Java plugin is first installed, a new
subdirectory is created in the craftbukkit/plugins directory. If your `scriptcraft` subdirectory is created. If your minecraft server
craftbukkit directory is called 'craftbukkit' then the new directory is called 'mcserver' then the new subdirectories will be ...
subdirectories will be ...
* craftbukkit/plugins/scriptcraft/ * mcserver/scriptcraft/
* craftbukkit/plugins/scriptcraft/plugins * mcserver/scriptcraft/plugins
* craftbukkit/plugins/scriptcraft/modules * mcserver/scriptcraft/modules
* craftbukkit/plugins/scriptcraft/lib * mcserver/scriptcraft/lib
... The `plugins`, `modules` and `lib` directories each serve a different purpose. ... The `plugins`, `modules` and `lib` directories each serve a different purpose.
@ -752,14 +751,14 @@ The `command()` function is used to expose javascript functions for use by non-o
To use a callback for options (TAB-Completion) ... To use a callback for options (TAB-Completion) ...
var utils = require('utils');
function boo( params, sender ) { function boo( params, sender ) {
var receiver = server.getPlayer( params[0] ); var receiver = server.getPlayer( params[0] );
if ( receiver ){ if ( receiver ){
echo( receiver, sender.name + ' says boo!'); echo( receiver, sender.name + ' says boo!');
} }
} }
command( boo, bukkit.playerNames ); command( boo, utils.playerNames );
See chat/colors.js or alias/alias.js or homes/homes.js for more examples of how to use the `command()` function. See chat/colors.js or alias/alias.js or homes/homes.js for more examples of how to use the `command()` function.

View file

@ -1,3 +0,0 @@
module.exports = function( container ) {
};

View file

@ -46,14 +46,13 @@ module.exports instead of exports.
## Module Loading ## Module Loading
When the ScriptCraft Java plugin is first installed, a new When the ScriptCraft Java plugin is first installed, a new
subdirectory is created in the craftbukkit/plugins directory. If your `scriptcraft` subdirectory is created. If your minecraft server
craftbukkit directory is called 'craftbukkit' then the new directory is called 'mcserver' then the new subdirectories will be ...
subdirectories will be ...
* craftbukkit/plugins/scriptcraft/ * mcserver/scriptcraft/
* craftbukkit/plugins/scriptcraft/plugins * mcserver/scriptcraft/plugins
* craftbukkit/plugins/scriptcraft/modules * mcserver/scriptcraft/modules
* craftbukkit/plugins/scriptcraft/lib * mcserver/scriptcraft/lib
... The `plugins`, `modules` and `lib` directories each serve a different purpose. ... The `plugins`, `modules` and `lib` directories each serve a different purpose.
@ -312,14 +311,14 @@ The `command()` function is used to expose javascript functions for use by non-o
To use a callback for options (TAB-Completion) ... To use a callback for options (TAB-Completion) ...
var utils = require('utils');
function boo( params, sender ) { function boo( params, sender ) {
var receiver = server.getPlayer( params[0] ); var receiver = server.getPlayer( params[0] );
if ( receiver ){ if ( receiver ){
echo( receiver, sender.name + ' says boo!'); echo( receiver, sender.name + ' says boo!');
} }
} }
command( boo, bukkit.playerNames ); command( boo, utils.playerNames );
See chat/colors.js or alias/alias.js or homes/homes.js for more examples of how to use the `command()` function. See chat/colors.js or alias/alias.js or homes/homes.js for more examples of how to use the `command()` function.