Commit Graph

461 Commits

Author SHA1 Message Date
walterhiggins b44a194fd4 made classroom a module (exposed as a plugin) 2015-01-24 19:42:52 +00:00
walterhiggins fac11b8add add use strict to fireworks 2015-01-24 00:08:21 +00:00
walterhiggins 9f80f240a9 Fixing the at() function so it works for canarymod 2015-01-24 00:07:58 +00:00
walterhiggins 1fabb59eb5 Fixes issue #204 (getPlayerPos() throws error) 2015-01-18 21:16:38 +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 de5c95114f Adding section on Permissions. 2015-01-18 15:01:51 +00:00
walterhiggins 5f205ecb2e Fixes issue #174 2015-01-18 13:51:49 +00:00
walterhiggins 223d7cf02b Fix issue #202 2015-01-17 09:44:14 +00:00
walterhiggins 2fad33b35d fixes issue #199 2015-01-17 09:31:14 +00:00
walterhiggins 74a97e0ca0 Fix issue #198 2015-01-17 09:30:53 +00:00
walterhiggins e95c9596a2 Fixes issue #203 2015-01-17 08:45:32 +00:00
walterhiggins 8d09984df7 Fix heading level for dancefloor docs 2015-01-16 21:23:22 +00:00
walterhiggins ed8782873a Fix issue #196 2015-01-16 21:20:34 +00:00
walterhiggins d33c9ca1e4 Fix issue #193 2015-01-11 12:27:47 +00:00
walterhiggins d73ab1a083 event handling example tweaks: consistent form for event-handling. 2015-01-11 00:46:55 +00:00
walterhiggins 2e7dfb2453 Update docs per new way to require('drone') 2015-01-11 00:29:43 +00:00
walterhiggins c21be34609 Re-enabling signs and arrows modules/plugins for CanaryMod 2015-01-11 00:09:56 +00:00
walterhiggins 4819a0531f deprecating Drone.copy() and Drone.paste() and updating to 3.1.0 2015-01-10 11:45:08 +00:00
walterhiggins ea84afde09 simplified delayed execution of drone building. 2015-01-06 22:31:49 +00:00
walterhiggins 8d8ea69dda moving core drone and extensions into modules folder so 3rd-party extensions/contributions can use require('drone') instead of the existing unwieldy require('../drone').Drone 2015-01-03 20:57:30 +00:00
walterhiggins e8b1cc274d give cottages a wood floor 2015-01-03 13:13:10 +00:00
walterhiggins dd693af91d stairs are queued 2015-01-03 13:12:51 +00:00
walterhiggins 62821db815 Tweaks for Spigot 1.8 2015-01-03 12:32:57 +00:00
walterhiggins dad20186d7 removed delay for ladder and lcdclock. 2015-01-03 11:08:40 +00:00
walterhiggins c7e2eeed85 minor tweaks to fort, ladder, sign and young person's guide. 2015-01-03 09:50:37 +00:00
nixnax da673ebdcd Change world.time to world.totalTime
Fixes the "NAN" bug in LCDClock()
2015-01-02 16:22:45 -06:00
walterhiggins aae6710427 Fix classroom module for use with CanaryMod 2015-01-01 18:24:44 +00:00
walterhiggins 6cb61c0e95 Adding documentation for bed() method. 2015-01-01 12:53:11 +00:00
walterhiggins a63648cb97 Added bed() and improved low-level drone methods. 2015-01-01 12:47:36 +00:00
walterhiggins 72e0b6246e Fixes issue #188 2015-01-01 10:00:55 +00:00
walterhiggins 00acc49356 Fixes issue #177 (on later versions of CanaryMod which do support world.generateTree() ) 2015-01-01 08:39:07 +00:00
walterhiggins fbb8bb032d tweaking young person's guide - update events link. 2014-12-31 19:50:13 +00:00
walterhiggins 0625fab97f Merge branch 'master' of github.com:walterhiggins/ScriptCraft 2014-12-31 11:16:32 +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
Walter Higgins 132d4d5c9f fix issue #185 2014-12-31 09:40:30 +00:00
Walter Higgins 922a57b7df fix problems on Mac OS 2014-12-31 09:12:57 +00:00
walterhiggins e388cdbc8e Further testing and tweaking of Documentation. 2014-12-30 18:12:10 +00:00
walterhiggins 1a0b71f92e Automatically apply correct facing metadata if missing from certain blocks. apply this metadata as properties in 1.8. (Part of work preparing for 1.8) 2014-12-30 14:54:38 +00:00
walterhiggins 63c1a69ead Fixed hanging torches, steps, ladders in 1.8 need to test with 1.7.10 2014-12-29 22:42:00 +00:00
walterhiggins b0e15bfa80 Reorganization of Drone from 1 monolithic module to smaller modules. 2014-12-28 15:07:08 +00:00
walterhiggins 8056da0d3b Fix doors and stairs for 1.7 2014-12-27 19:03:30 +00:00
walterhiggins 21a64efca0 Further work on Drone for 1.8 Doors now work! and Chessboard, rainbow and all colored materials. 2014-12-27 16:48:27 +00:00
walterhiggins 1443b37ec4 Fixed signs in 1.8 and prism0 in 1.8 Doors are still problematic as are torches and ladders in Drone. Added blockhelper for setting block properties. 2014-12-27 13:42:38 +00:00
walterhiggins 39ce9061f7 Fixes issue #167 2014-12-25 14:04:45 +00:00
walterhiggins 4fd37054d9 getting ready for working on 1.8 2014-12-25 11:37:00 +00:00
walterhiggins fe46987d71 partial support for 1.8 for drone - (not there yet, only works for blocks with no facing data) 2014-12-25 11:00:16 +00:00
walterhiggins c62da83544 Fix typo in putSign() function 2014-12-24 15:39:34 +00:00
walterhiggins 287ad49d7b added blocks.bonemeal and named some functions in drone. 2014-12-23 15:56:38 +00:00
walterhiggins bba65fdfca Fixes issue #179 2014-12-23 14:31:20 +00:00
walterhiggins ed863e460c apply frank's changes to templates/ypgpm.md 2014-12-22 15:23:06 +00:00
walterhiggins 0bc45c1b49 ensure Canary.inf has latest version number. 2014-11-14 19:57:48 +00:00
Walter Higgins 704ce039fb Fixes issue #166
Need to rebuild and bump version from 3.0.0 to 3.0.1
2014-11-13 14:31:19 +00:00
walterhiggins 795043cbb0 changed for canarymod 2014-11-09 13:02:49 +00:00
walterhiggins 80522b6d4d fixes issue #159 2014-11-09 12:16:32 +00:00
walterhiggins 3ec582f653 Include docs for both bukkit and canary event helpers. 2014-11-09 11:52:10 +00:00
walterhiggins 7ce32d4557 Removed makeShapedRecipe and makeShapelessRecipe. 2014-11-09 11:48:40 +00:00
Walter Higgins 67d46db748 Update example-7-hello-events.js 2014-11-08 06:17:57 +00:00
walterhiggins 6b6c8f6dfe Adding create() function for recipes - creates but does not add (see updated listing in book chapter 16) 2014-10-25 11:22:43 +01:00
walterhiggins fde20f6fa2 Make events and items work with JRE 6, 7 and 8 2014-10-19 15:41:06 +01:00
walterhiggins c36cd97c99 Get build working on jre6,7,8 2014-10-18 18:48:57 +01:00
walterhiggins eb8b78cce9 Added utils.worlds() and utils.stat. enums 2014-10-18 12:08:00 +01:00
walterhiggins 9b10d51779 moving path. 2014-10-18 11:07:59 +01:00
walterhiggins 4e623299ae reinstating bukkit as build target. 2014-10-18 11:05:30 +01:00
walterhiggins 0866097411 Fixed bug in creating signs in canarymod and updated minigames/scoreboard to work with example code from book. 2014-10-12 18:34:40 +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 b091c33fbf fix bug in fireworks (was using wrong framework) 2014-09-29 23:53:00 +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
Walter Higgins 0906f61575 Merge pull request #154 from pvginkel/master
Fixed class loader of the script engine.
2014-09-22 13:22:38 +01:00
Walter Higgins d744ceeb7b Update ypgpm.md 2014-09-21 10:51:13 +01:00
walterhiggins 127697f774 added documentation for the bukkit object. 2014-09-12 19:00:09 +01:00
Pieter van Ginkel 3b06ec5e08 Fixed class loader of the script engine.
The script engine didn't have the plugin class loader. Instead, it had the thread context class loader. The problem with this is that this prevents scripts from instantiating classes from other plugins to e.g. implement undo when WorldEdit is available. The thread context class loader is now set to the plugin class loader while instantiating the script engine which solves this issue.
2014-09-07 09:12:58 +02:00
walterhiggins 88b8e29992 Include links to bukkit documentation for event helper functions. 2014-08-24 10:20:02 +01:00
Walter Higgins c535f05fba Delete SnowballFight.js
Removing SnowballFight.js because it will be used as an exercise. An improved version will be posted in a separate repository coming soon.
2014-08-23 17:46:33 +01:00
Walter Higgins 13525c3d10 Delete color.js
Removing chat/color.js module because it will be used as an exercise.
2014-08-23 17:45:17 +01:00
walterhiggins e7916f8afe Rainbows are made from stained glass now. 2014-08-23 17:36:19 +01:00
walterhiggins df0491ff14 Improved - added doorways between forts and rampart. 2014-08-23 16:46:02 +01:00
walterhiggins b74b4c4f28 New drone.extend() style invocation. 2014-08-23 16:45:43 +01:00
walterhiggins cdccd1fe2e using new Drone.extend() style invocation. added chessboard floor. 2014-08-23 16:45:16 +01:00
walterhiggins e874ba3ff6 Fixed a bug in boxa() drone method which caused chessboard() to fail (since move to async) 2014-08-23 16:44:36 +01:00
walterhiggins 12ff59f2e5 Removing streamer because it's not used anywhere. 2014-08-23 16:43:45 +01:00
walterhiggins ef3a400b91 Merge branch 'master' of github.com:walterhiggins/ScriptCraft 2014-08-23 14:20:00 +01:00
walterhiggins e4abd679d2 rboxcall not used anywhere (ever?) 2014-08-23 14:19:04 +01:00
Walter Higgins 099991637e Delete skyscraper-example.js 2014-08-23 14:15:32 +01:00
Walter Higgins e485f11f6f Merge pull request #147 from trmfreitas/classroom-autorefresh-windows
Classroom autorefresh not working in windows
2014-07-26 11:50:20 +01:00
Daniel Huhn 0f467e616b replaced tabs with whitespaces 2014-06-29 16:22:37 +02:00
Daniel Huhn cc9d57d4a4 url is now propely set in the http.request module when using
post
2014-06-29 16:09:22 +02:00
Tiago Freitas 5a900a16c8 last load time must be for each player 2014-06-28 14:02:14 +01:00
Tiago Freitas b480922b15 - Classroom file watcher was not working as expected because lastModifiedTime of a directory is not updated when a file is changed inside it.
- Added functions watchDir/unwatchDir which is responsible for watching all files and subdirectories changes
- Callback is called once for each detected change
- Changed classroom to check for the last "refresh" made to avoid multiple refreshes without changes
- Changed refresh time to 3s because it is much more comfortable
  - I don't think this would be an issue because checking for lastModifiedTime should be very fast, perhaps even 3s is too much time
- Tested in Windows
2014-06-28 13:32:55 +01:00
walterhiggins 8c3c7d67fe tab-completion using a callback 2014-06-14 15:46:07 +01:00
walterhiggins bbcdb48bef line-wrap markdown comments 2014-06-14 15:40:19 +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 521e35ffe8 fixes issue #140 2014-06-14 15:36:56 +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 a2b0cda399 fixes issue #139 2014-05-28 22:40:38 +01:00
walterhiggins fa64f07c38 doc changes - change ref of js-plugins to scriptcraft/plugins 2014-05-26 21:03:47 +01:00
walterhiggins 2f2db3c76f Added new blocks. and changed Drone.extend to support single param. 2014-05-24 10:55:27 +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 e3078804ab Fixed events-helper to include all non-abstract handlers.
Added items.js module and fixed sounds.js (more work needed on items.js)
2014-05-18 00:35:26 +01:00
walterhiggins 4d230bd514 Added new sounds module 2014-05-10 18:45:48 +01:00
walterhiggins dc812c934c don't echo result if undefined/null 2014-04-28 23:29:53 +01:00
walterhiggins 3700c11223 fix travis issues (finally?) 2014-04-26 22:21:03 +01:00
walterhiggins f1a960680a changed generateEventsHelper to use engine.eval instead of eval (fix travis build problem) 2014-04-26 21:08:18 +01:00
walterhiggins e0d5abb5f6 fix docs for events.js 2014-04-26 20:34:45 +01:00
walterhiggins a314bf849f tidy up docs on events-helper module. 2014-04-26 20:31:52 +01:00
walterhiggins 1cfa6ff767 added priority optional param to docs 2014-04-26 20:24: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 d8cfcb4572 fixing toc issue 2014-04-26 17:14:32 +01:00
walterhiggins b4fe523482 fixing TOC issues in API ref 2014-04-26 17:03:08 +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
Walter Higgins c8425cb597 Merge pull request #138 from Strat-/patch-1
Improve bkEventExecutor interface implementation
2014-04-25 21:03:07 +01:00
walterhiggins 9d2df863b6 spacing 2014-04-25 20:51:15 +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 3c7f8ae94e Make drone build processing more evenly distributed for multiple players 2014-04-19 17:28:43 +01:00
walterhiggins 8c81b37bb3 Added asynchronous player input (async prompt) function. 2014-04-13 23:25:02 +01:00
walterhiggins 7b7d8cb35c Fix issue #135 2014-04-07 20:59:09 +01:00
walterhiggins 35d67fe6e4 Fixes issue #133 2014-04-07 20:43:23 +01:00
walterhiggins 2adf0e3792 removed commented code. 2014-03-16 21:26:29 +00:00
walterhiggins d64128705f Fixes #131 2014-03-16 21:25:37 +00:00
walterhiggins ebf2e031c6 Fixes #131 2014-03-16 21:24:26 +00: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
Walter Higgins edf249a418 Merge pull request #126 from carlrobert/master
Random maze generation using a Drone
2014-03-14 08:54:17 +00:00
Robert Storlind 38e312c93e Indentation according to style guide 2014-03-14 09:25:43 +01:00
walterhiggins b7352ed962 Show correct lineNumber in require() errors on Nashorn (JRE8) 2014-03-13 22:49:03 +00:00
walterhiggins fce28567e6 Make error messages more concise (don't repeat file name) 2014-03-13 22:11:01 +00:00
Walter Higgins a18e9651e8 Merge pull request #127 from jasonk/master
Fix require() to work with index.js
2014-03-13 22:05:10 +00:00
walterhiggins 0a506f80ed Adding Drone.MAX_VOLUME and Drone.MAX_SIDE properties 2014-03-13 19:23:32 +00:00
Jason Kohles 45217a0953 Make error messages from require() more useful 2014-03-13 14:18:45 -04:00
Jason Kohles 5bec691575 Fix require() to work with index.js 2014-03-13 12:10:51 -04:00
walterhiggins 7e435be565 make Drone.cuboida() async. 2014-03-11 21:35:59 +00:00
walterhiggins 7977dc0fb5 fix issue #124 2014-03-11 20:06:29 +00:00
walterhiggins 360b7df75b Fix issue #115 2014-03-11 19:57:40 +00:00
walterhiggins 30d1d89e91 Make putsign use drone queue and add informative messages for senders. 2014-03-10 23:18:33 +00:00
walterhiggins e40786d727 Fix issue #115 2014-03-10 23:17:58 +00:00
Robert Storlind 1a1837cc7e Maze generation using Drone
Point at the ground. Try /js amazing(5,7)
2014-03-10 14:10:54 +01:00
walterhiggins fae2b6aac7 Improved Drone background-processing. 2014-03-08 21:01:25 +00:00
walterhiggins d16487bcc3 Merge branch 'master' of github.com:walterhiggins/ScriptCraft 2014-03-08 12:13:57 +00:00
Walter Higgins 64913338a7 fixes issue #123 2014-03-06 17:59:10 +00:00