From 1a247ecf1b140569d9880d52f85292e33f26a36a Mon Sep 17 00:00:00 2001 From: Walter Higgins Date: Thu, 2 Jan 2014 10:44:26 +0000 Subject: [PATCH] added simple plugin source --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index eea9584..39e7ff5 100644 --- a/README.md +++ b/README.md @@ -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,