Code variables are made like so:
var <Variable type> <Variable Name> = <Variable Value (Method)>
The variable type can be:
- Player (getPlayer(name))
- World (getWorld(name))
- File (getFile(name))
- String (text)
- Boolean (true/false)
- Number (integer/double)
- String list (["My", "String", "List"])
Variable name is the keyword which you need to put to represent the variable value. example:
- var World w = getWorld(world)
- w.setBlockType(player.getLocation, STONE, 0)
Where 'w' is the variable name, and 'World' is the variable name,
'getWorld(world)' is the value of this variable.