It is very easy to learn. If you know Java, you are already able to use Groovy.
Fast compilation. Groovy can be used as scripting language in runtime.
Compiles to JVM-bytecode. This ensures a high performance.
Fully compatible with Bukkit API and Java libraries.
Extensible language: add a new methods to existing java classes, operator overloading, closures
Very short code (compared to java). You can quickly type code in the console or chat.
Import external libraries from maven in runtime with Grape.
Get Started
Download VarScript.jar to plugins/ directory
start server
wait until VarScript download dependencies At first start it can take a long time! 1-5 minutes
use command /> println "Hello $world.name"
Code examples using syntax extensions
Code (Groovy):
// teleport Player1 to Player2 Player1
>> Player2
Code (Groovy):
// set your HP to 100 me.
maxhp=100 me.
hp=100
Code (Groovy):
// spawn little zombie near your location zombie
= me.
spawn(Zombie
) zombie.
baby=true
Code (Groovy):
// give one diamond for all players players
*.
give"DIAMOND"
Code (Groovy):
// suicide kill me
You can try these examples in chat/console with
/>command, or create file .groovy in folder
plugins/VarScript/scripts/ and call it by name.
Command
/> allows multiline text input.