From ca46607a472d2cd53da231a615f415f8482dce43 Mon Sep 17 00:00:00 2001 From: Walter Higgins Date: Thu, 30 Jan 2014 00:41:59 +0000 Subject: [PATCH] Update README.md --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3023530..0290848 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,16 @@ files in a directory. 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 ); - }; +```javascript +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