Commit graph

65 commits

Author SHA1 Message Date
walterhiggins 8bc648ec29 Fix issue #256 and fix issue #287 2016-03-19 12:09:26 +00:00
walterhiggins f9f60f7702 Merge branch 'requireCacheAccess' of https://github.com/MrVoltz/ScriptCraft into MrVoltz-requireCacheAccess 2016-01-02 11:57:04 +00:00
walterhiggins 6cfe460e37 Merge branch 'refreshFix' of https://github.com/MrVoltz/ScriptCraft into MrVoltz-refreshFix 2016-01-02 11:29:27 +00:00
Martin P ef04a62c54 Allow access to module cache through require.cache and require.resolve 2016-01-01 17:43:27 +01:00
Martin P d27747b3a0 Fix refresh(): add skipOpCheck parameter, unregister event handlers & cancel tasks (only Bukkit) 2016-01-01 17:40:00 +01:00
Martin P a0b46b0975 Fixed: Allow loading json using require() 2016-01-01 17:35:33 +01:00
walterhiggins badf8b5470 Undoing merge of PR #278 2016-01-01 12:55:53 +00:00
MrVoltz 7b309dba16 Allow loading json using require() 2015-11-18 15:50:52 +01:00
walterhiggins 4a1c1b7b01 Provide more helpful errors when trying to require non-existent modules 2015-05-31 16:44:42 +01:00
walterhiggins 10497efae3 3.1.5 fix events.connect/events.connection mismatch 2015-05-31 09:09:42 +01:00
Michael Vorburger c987058aae .gitignore with two files which are apparently generated 2015-04-22 21:31:32 +02:00
walterhiggins 4bc1e2f582 Deprecating plugin() function 2015-04-11 10:43:33 +01:00
walterhiggins d9e6cea844 added this.cancel() for canceling events inside an event handling function. 2015-02-14 11:50:20 +00:00
walterhiggins 60e3e547bd Fixes issue #200 - added an extra param 'cancel' to event handlers. when called it will cancel the event (if it's cancelable) 2015-01-18 20:27:37 +00:00
walterhiggins e95c9596a2 Fixes issue #203 2015-01-17 08:45:32 +00:00
walterhiggins aae6710427 Fix classroom module for use with CanaryMod 2015-01-01 18:24:44 +00:00
walterhiggins 99e9580cd9 Removing empty lib/canary.js and removing craftbukkit references from scriptcraft.js docs 2014-12-31 11:15:28 +00:00
walterhiggins 39ce9061f7 Fixes issue #167 2014-12-25 14:04:45 +00:00
walterhiggins bba65fdfca Fixes issue #179 2014-12-23 14:31:20 +00:00
walterhiggins 3ec582f653 Include docs for both bukkit and canary event helpers. 2014-11-09 11:52:10 +00:00
walterhiggins fde20f6fa2 Make events and items work with JRE 6, 7 and 8 2014-10-19 15:41:06 +01:00
walterhiggins 4e623299ae reinstating bukkit as build target. 2014-10-18 11:05:30 +01:00
walterhiggins 70282e278d Added items to API docs, added recipes. added utils.players() and utils.playerNames() functions. 2014-10-05 17:29:04 +01:00
walterhiggins 19162c3688 First phase of transition from Bukkit to Canary.
Some of the plugins are not yet supported.
If you're feeling brave you can build from source using ant.
2014-09-29 23:42:41 +01:00
walterhiggins cc4f98474d moving bukkit.js from lib to modules (it shouldn't be part of core) 2014-09-25 20:36:39 +01:00
walterhiggins 127697f774 added documentation for the bukkit object. 2014-09-12 19:00:09 +01:00
walterhiggins 8c3c7d67fe tab-completion using a callback 2014-06-14 15:46:07 +01:00
walterhiggins c9257b3038 Support callback function for objects. 2014-06-14 15:39:47 +01:00
walterhiggins 4df746a2d8 line-wrap markdown comments 2014-06-14 15:39:17 +01:00
walterhiggins 918ef23773 Support named function in lieu of command name as first argument 2014-06-14 15:38:41 +01:00
walterhiggins 4d97452b15 Added new bukkit.playerNames() function. 2014-06-14 15:38:01 +01:00
walterhiggins c01ce603c5 Fix a doozy of a bug in #nashorn - engine.eval('(' + jsonContainingArray + ')' ) does not return same result as JSON.parse( jsonContainingArray ) 2014-06-07 21:50:23 +01:00
walterhiggins 5754816017 Fix BlockBreakEvent error for Nashorn and pre-Nashorn both both cases (eventType = 'block.BlockBreakEvent' and eventType = org.bukkit.event.block.BlockBreakEvent) 2014-06-06 19:40:47 +01:00
Walter Higgins 4d6d444d53 Merge pull request #142 from tennysonholloway/master
Fix Nashorn error: has no such function getHandlerList.
2014-06-06 18:30:44 +01:00
walterhiggins ede823d62c fixed bug in persistence module 2014-06-06 18:17:30 +01:00
TennysonHolloway 553bec363b Fix Nashorn error: has no such function getHandlerList. 2014-06-05 15:55:19 -07:00
walterhiggins 20519d88db fix tab completion for /jsp command 2014-05-29 22:10:16 +01:00
walterhiggins fa64f07c38 doc changes - change ref of js-plugins to scriptcraft/plugins 2014-05-26 21:03:47 +01:00
walterhiggins c324adf269 Improved Tab completion to work with Java Enums on JRE7 and JRE8.
Added bukkit namespace.
2014-05-20 00:05:38 +01:00
walterhiggins dc812c934c don't echo result if undefined/null 2014-04-28 23:29:53 +01:00
walterhiggins e0d5abb5f6 fix docs for events.js 2014-04-26 20:34:45 +01:00
walterhiggins 2ba3335a16 Omit abstract event classes from events-helper.
Improved tab completion for jre8
2014-04-26 20:20:10 +01:00
walterhiggins a4968d8dc6 Events handling changes. Added new convenience functions to events module
to make event handling easier still for newbies
2014-04-26 16:56:57 +01:00
Ivan Kay 6ec85d5a8f Improve bkEventExecutor interface implementation
What was done before isn't valid JS; This does the same thing, while keeping the JS syntax valid.
2014-04-24 19:51:11 -05:00
walterhiggins d6d1a906b5 Fixes #129 2014-03-16 19:50:18 +00:00
walterhiggins 76c6d6f23f Fixes #132 2014-03-16 18:58:19 +00:00
walterhiggins d59b0682de added comment to leave semicolon off of last line. 2014-03-15 18:21:20 +00:00
walterhiggins f82d88cb3f Event handling rework. Simplified event handling and unregistering. 2014-03-15 18:06:23 +00:00
walterhiggins 9d406dbb44 Made maze code place blocks 2 high 2014-03-14 22:23:35 +00:00
walterhiggins b7352ed962 Show correct lineNumber in require() errors on Nashorn (JRE8) 2014-03-13 22:49:03 +00:00