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); +}