This repository has been archived on 2021-07-14. You can view files and clone it, but cannot push or open issues or pull requests.
scriptcraft/js-plugins/bukkit/hello-bukkit.js
walterhiggins 4a434dfdd2 reorog
2013-01-07 23:48:43 +00:00

18 lines
447 B
JavaScript

//
// 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 <minecraft user name>"
//
function cb_hello()
{
print("Hello " + self.name);
}