This repository has been archived on 2021-07-14. You can view files and clone it, but cannot push or open issues or pull requests.
scriptcraft/src/main/js/lib
2014-02-19 22:17:19 +00:00
..
command.js Changed formatting to use idiomatic style. (like glasses-mode in emacs) 2014-01-29 19:49:15 +00:00
console.js Changed formatting to use idiomatic style. (like glasses-mode in emacs) 2014-01-29 19:49:15 +00:00
events.js Making bukkit objects easier to identify by name (bk prefix) 2014-02-19 22:17:19 +00:00
js-patch.js Round up setInterval and setTimeout to match bukkit's min 50ms tick. 2014-01-31 00:42:05 +00:00
json2.js Added logging of errors during plugin autoload. 2014-01-25 09:04:16 +00:00
persistence.js Changed formatting to use idiomatic style. (like glasses-mode in emacs) 2014-01-29 19:49:15 +00:00
plugin.js Improvements to classroom.js module (added players/ directory into which players can drop their custom scripts when classroom.allowScripting(true) is called. 2014-02-10 20:55:32 +00:00
readme.md Added logging of errors during plugin autoload. 2014-01-25 09:04:16 +00:00
require.js Improvements to classroom.js module (added players/ directory into which players can drop their custom scripts when classroom.allowScripting(true) is called. 2014-02-10 20:55:32 +00:00
scriptcraft.js Fix bug in reload - data dir was not present. fix #119 2014-02-16 18:29:15 +00:00
tabcomplete-jsp.js Changed formatting to use idiomatic style. (like glasses-mode in emacs) 2014-01-29 19:49:15 +00:00
tabcomplete.js Changed formatting to use idiomatic style. (like glasses-mode in emacs) 2014-01-29 19:49:15 +00:00

lib directory

This directory contains core scriptcraft files and modules.

  • plugin.js - A module which provides support for persistent plugins (plugins which need to save state)
  • require.js - The require() function implementation. See [Node.js modules] documentation.
  • scriptcraft.js - The core scriptcraft code.
  • events.js - Event handling module for use by plugin/module developers.

When require('modulename') is called, if a file in the current working directory called 'modulename' is not found then the lib folder is the first location that require() looks for modules.