April 2015
Beginner
320 pages
7h 43m
English
In this appendix, I’ll cover the variables provided by ScriptCraft.
The server variable is a global variable provided by ScriptCraft. It refers to the net.canarymod.api.Server object, which is a Java object representing the Minecraft server. Refer to https://ci.visualillusionsent.net/job/CanaryLib/javadoc/net/canarymod/api/Server.html for full details of all the methods available for this object.
This global variable is a reference to the ScriptCraft plugin. Some CanaryMod API methods require an net.canarymod.plugin.Plugin object as a parameter. If you need to call such methods from JavaScript, you should provide the __plugin variable where an object of type net.canarymod.plugin.Plugin ...
Read now
Unlock full access