added simple plugin source

This commit is contained in:
Walter Higgins 2014-01-02 10:44:26 +00:00
parent 0682a5e69a
commit 1a247ecf1b
1 changed files with 12 additions and 0 deletions

View File

@ -12,6 +12,18 @@ files in a directory.
then [Start Here][cda].
* 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
ScriptCraft is a plugin for Minecraft Servers which lets operators,