From e597649db513ca4ead108588f5dc745ba349aef3 Mon Sep 17 00:00:00 2001 From: walterhiggins Date: Sun, 6 Jan 2013 19:59:35 +0000 Subject: [PATCH] Directory for bukkit-specific scripts - best to organize plugins/scripts in different directories --- scripts/bukkit/hello-bukkit.js | 18 ++++++++++++++++++ scripts/bukkit/hello-bukkit.js~ | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 scripts/bukkit/hello-bukkit.js create mode 100644 scripts/bukkit/hello-bukkit.js~ diff --git a/scripts/bukkit/hello-bukkit.js b/scripts/bukkit/hello-bukkit.js new file mode 100644 index 0000000..5b3f9ee --- /dev/null +++ b/scripts/bukkit/hello-bukkit.js @@ -0,0 +1,18 @@ +// +// files in this folder only work with CraftBukkit servers +// +// This example script shows how the special 'self' variable can be used +// to get information about the current player. +// +// Usage: +// In minecraft, press the / key to display the in-game command prompt +// type the following... +// +// /js cb_hello() +// +// ... and the game will print "Hello " +// +function cb_hello() +{ + print("Hello " + self.name); +} diff --git a/scripts/bukkit/hello-bukkit.js~ b/scripts/bukkit/hello-bukkit.js~ new file mode 100644 index 0000000..df40012 --- /dev/null +++ b/scripts/bukkit/hello-bukkit.js~ @@ -0,0 +1,18 @@ +// +// files in this folder only work with CraftBukkit servers +// +// This example script shows how the special 'self' variable can be used +// to get information about the current player. +// +// Usage: +// In minecraft, press the / key to display the in-game command prompt +// type the following... +// +// /js cb_hello() +// +// ... and the game will print "Hello " +// +function cb_hello() +{ + print("Hello " + self.name); +}