[VarScript]
Scripting on Groovy
Version: 1.0.0
Features
- execute scripts on Groovy
- create and run script files
- autorun files
- Tab-completion (not full-featured)
- script can register events and timers. Full access to Bukkit API and other plugins
Get Started
- Download VarScript.jar and put it to
plugins/
directory - Start server
- Wait until VarScript download dependings
- use command
/>
for example:
/> println "Hello ${worlds*.name}"
Basic commands
/> script...
- run script
- Example:
/> test.groovy
/> filename arg1, arg2, ...
- run script file with parameters
/ws list
- show all workspaces
/ws set name
- set new workspace
/ws stop ?name
- stop all triggers in workspace (selected or current)
/ws remove ?name
- remove workspace (selected or current)
/ws create name
- create new workspace
/ws reload ?name
- reload workspace (selected or current)
Script files
You can create script file in directory plugins/VarScript/scripts/
and run it by command
< todo: tutorial >
Static variables
variable | description | type |
---|---|---|
me | current command sender | Player, Block, Entity, Console |
server | bukkit server | org.bukkit.Server |
this | current script | ? extends ru.dpohvar.varscript.workspace.CallerScript |
workspace | current workspace | ru.dpohvar.varscript.workspace.Workspace |
global | workspace service | ru.dpohvar.varscript.workspace.WorkspaceService |
%player name% | get player by name | org.bukkit.entity.Player |
%plugin name% | get plugin by name | org.bukkit.plugin.Plugin |
%world name% | get world by name | org.bukkit.World |
%script name% | run script file and get result | ? |
Wiki
https://github.com/DPOH-VAR/VarScript/wiki
Changelog
VarScript 1.1.2:
- fixed classloader.
- fixed auto-import in config
- fixed Grape config
VarScript 1.0.0:
- 1.X release
older versions | Github | Maven |