Appendix B. Using ScriptCraft with Other Plugins
Scriptcraft can be used to work with and control other CanaryMod plugins. There are two ways ScriptCraft can interact with other plugins:
By issuing plugin commands
By using the plugin’s methods and classes
Issuing Commands
The server.executeVanillaCommand() method can be used to issue both built-in commands such as /time set or commands provided by plugins. ScriptCraft can be used to drive commands provided by other plugins.
Many plugins provide their own set of commands all of which can be issued ...
Get A Beginner’s Guide to Writing Minecraft Plugins in JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.