added simple plugin source

This commit is contained in:
Walter Higgins 2014-01-02 10:44:26 +00:00
parent 0682a5e69a
commit 1a247ecf1b

View file

@ -12,6 +12,18 @@ files in a directory.
then [Start Here][cda]. then [Start Here][cda].
* Watch some [demos][ytpl] of what you can do with ScriptCraft. * Watch some [demos][ytpl] of what you can do with ScriptCraft.
This is a simple mod in a file called greet.js in the scriptcraft/plugins directory...
exports.greet = function( player ) {
player.sendMessage('Hello ' + player.name );
};
At the in-game prompt, type...
/js greet(self)
... to see the greeting. Anything you can do using CraftBukkit's API in Java, you can do using ScriptCraft in Javascript.
# Description # Description
ScriptCraft is a plugin for Minecraft Servers which lets operators, ScriptCraft is a plugin for Minecraft Servers which lets operators,