Directory for bukkit-specific scripts - best to organize plugins/scripts in different directories
This commit is contained in:
parent
42dec77d85
commit
e597649db5
2 changed files with 36 additions and 0 deletions
18
scripts/bukkit/hello-bukkit.js
Normal file
18
scripts/bukkit/hello-bukkit.js
Normal file
|
@ -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 <minecraft user name>"
|
||||||
|
//
|
||||||
|
function cb_hello()
|
||||||
|
{
|
||||||
|
print("Hello " + self.name);
|
||||||
|
}
|
18
scripts/bukkit/hello-bukkit.js~
Normal file
18
scripts/bukkit/hello-bukkit.js~
Normal file
|
@ -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 <minecraft user name>"
|
||||||
|
//
|
||||||
|
function cb_hello()
|
||||||
|
{
|
||||||
|
print("Hello " + self.name);
|
||||||
|
}
|
Reference in a new issue