Commit graph

377 commits

Author SHA1 Message Date
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
Walter Higgins
4b0fb7565a Fix issue #122 2014-03-06 13:17:14 +00:00
walterhiggins
cd52379b5c indentation 2014-02-28 10:11:28 +00:00
walterhiggins
6b3314fa27 fix typos in comments 2014-02-28 10:10:05 +00:00
walterhiggins
96b1a54896 Making bukkit objects easier to identify by name (bk prefix) 2014-02-19 22:17:19 +00:00
walterhiggins
d976563adf Drone.garden() is now non-destructive - won't destroy existing blocks. 2014-02-19 00:15:44 +00:00
walterhiggins
ef02885613 Drone.cuboidX() - foundation of most Drone building is now async. 2014-02-16 18:37:51 +00:00
walterhiggins
de113db48c Adding new hangtorch() drone function. 2014-02-16 18:31:09 +00:00
walterhiggins
9fdfb45b6c Remove commented out code for inefficient battlements building. 2014-02-16 18:30:30 +00:00
walterhiggins
7e03c6d3d7 More efficient fort building. 2014-02-16 18:29:36 +00:00
walterhiggins
5bec21d381 Fix bug in reload - data dir was not present. fix #119 2014-02-16 18:29:15 +00:00
walterhiggins
2e4516bf69 Added 'utils.unwatchFile()' function to fix #117 2014-02-11 21:10:56 +00:00
walterhiggins
3c7d3a2bb4 Added section on configuration (server.properties) to young persons guide 2014-02-11 20:58:45 +00:00
walterhiggins
8453525da6 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
walterhiggins
39b459ab7f further syntax-highlighting and ignore netbeans folder. 2014-02-04 21:49:12 +00:00
walterhiggins
f1925efd87 added syntax-highlighting to code samples 2014-02-04 21:36:00 +00:00
walterhiggins
fe62f61883 fix code in sc-mqtt module 2014-02-04 21:04:12 +00:00
walterhiggins
349c2f17cf added docs for chat/color plugn 2014-02-04 20:53:59 +00:00
walterhiggins
29eb6c1975 added craftbukkit link to guide 2014-02-04 08:38:32 +00:00
walterhiggins
5868b9099a Round up setInterval and setTimeout to match bukkit's min 50ms tick. 2014-01-31 00:42:05 +00:00
walterhiggins
13ee0d0e9c Fixes #114 2014-01-31 00:36:28 +00:00
walterhiggins
621245adac Removed underscore from source (it's downloaded) and fixed spawn plugin. 2014-01-29 23:11:40 +00:00
walterhiggins
7ab34980e4 fix issue #113 2014-01-29 20:11:47 +00:00
walterhiggins
7457cd58b8 Changed formatting to use idiomatic style. (like glasses-mode in emacs) 2014-01-29 19:49:15 +00:00
walterhiggins
7a7767c83c Added logging of errors during plugin autoload. 2014-01-25 09:04:16 +00:00
walterhiggins
8c690452e7 Added experimental LCDGameClock 2014-01-24 23:38:56 +00:00
walterhiggins
f71d1a4e78 made sc-mqtt module's client object fluent 2014-01-23 23:09:41 +00:00
walterhiggins
a098963f90 Workaround for stupid array index notation access bug in Nashorn. 2014-01-22 23:57:27 +00:00
walterhiggins
a13f3badd9 Adding sc-mqtt module for comms with Arduino 2014-01-17 23:05:36 +00:00
walterhiggins
a4999745de Added config.yml for plugin configuration - issue #102 2014-01-14 22:54:49 +00:00
walterhiggins
3a6cb1057d Further changes to achieve compat with Nashorn java 8 2014-01-13 23:01:17 +00:00
walterhiggins
93fb626276 Adding a contributing.md file for contributors. 2014-01-13 21:56:21 +00:00
walterhiggins
7cb679cfd1 Fix issue #112 (Support for Nashorn in Java8) 2014-01-13 21:06:17 +00:00
walterhiggins
7f1e5e637e updated young persons template and refactored minigame scoreboard. 2014-01-12 12:06:30 +00:00
walterhiggins
839f3d10f2 Merge branch 'master' of https://github.com/walterhiggins/ScriptCraft 2014-01-12 11:27:13 +00:00
walterhiggins
aefc98f172 Fix issue #111, reorg of lib/ and (undoc'd) persistence 2014-01-12 11:26:26 +00:00
jonathan
fbb1cbd92f fix typo in sapling/birch 2014-01-07 20:56:33 -08:00
walterhiggins
cc4a3e3a14 Added java apis in js doc. Fixed toc links. save uses pretty json. 2014-01-06 20:54:53 +00:00
walterhiggins
06f9007369 self is available for autocompletion 2014-01-05 17:20:54 +00:00
walterhiggins
8c3dc92c2a Added documentation for the Signs module and changed Signs examples so that a valid sign must be provided to the function returned by signs.menu(). 2014-01-05 15:20:29 +00:00
walterhiggins
73fdf04bc2 Target java 1.6 and fix exception on Mac OS due to alias plugin 2014-01-05 12:23:09 +00:00
walterhiggins
c591ec06a6 fix issue #107 2014-01-04 22:06:23 +00:00
walterhiggins
cc3c87da23 fix links 2014-01-04 20:23:17 +00:00
walterhiggins
5239709fcf problems with links in toc 2014-01-04 20:17:49 +00:00
walterhiggins
d742c5ae44 fix bug in toc generation - escaped chars not linked right 2014-01-04 20:08:24 +00:00
walterhiggins
2ee9dd6515 Added Table of Contents to API Reference - Issue #104 2014-01-04 18:39:49 +00:00
walterhiggins
6a73144c93 generate table of contents for Young Persons guide 2014-01-04 16:57:43 +00:00
walterhiggins
8ff7020c76 fix bug: signs not being saved 2014-01-03 09:18:43 +00:00
walterhiggins
4803f3027a Added 'use strict' to lib modules. Added legacy directory check 2014-01-02 18:46:46 +00:00
walterhiggins
c774b5631f Moved scriptcraft dir from {craftbukkit-root}/scriptcraft to {craftbukkt-root}/plugins/scriptcraft in line with other plugins 2014-01-01 21:02:11 +00:00
walterhiggins
cdc8ad7d9b Tweaks to documentation (examples and all files in same directory sorted alphabetically except where precedence regexp present) 2013-12-31 21:09:50 +00:00
walterhiggins
6d9f2b4337 Updated example plugin docs to be included in the API reference. 2013-12-31 20:33:00 +00:00
walterhiggins
bb9433a6d3 Improved documentation of the utils module and fixed bug in signs module due to changes to serialization/deserialization of locations. 2013-12-31 20:12:57 +00:00
walterhiggins
686285dcfb Added 2 new example plugins and changed drone so that public extensions (box, sphere, etc) pass 'self' as first param to Drone constructor (part of eventual phase-out of 'self' variable). 2013-12-31 18:21:40 +00:00
walterhiggins
0ec7dfc8ad Updated README and added Anatomy doc 2013-12-31 09:48:38 +00:00
walterhiggins
fba374d00e removed cofffee from plugin.yml and fixed link in README.md 2013-12-31 08:47:28 +00:00
walterhiggins
f88d1f0428 'Buddha' Release : The annihilation of 'self' variable.
use of 'self' should be limited only to in-game or console commands. It should not be used in the context of a module.
2013-12-30 21:33:12 +00:00
walterhiggins
fc440654b8 Fixed issue with stack trace in console when empty commands entered. Added more example modules 2013-12-30 01:07:41 +00:00
walterhiggins
dbf6adfadc Fix bug when using commando from server console 2013-12-29 13:26:21 +00:00
walterhiggins
5d00be9df4 Fix issue #103 on Mac 2013-12-29 12:58:20 +00:00
walterhiggins
1c05da1862 Documentation tweaks. Changed heading levels for the arrows and commando
modules.
2013-12-28 23:02:50 +00:00
walterhiggins
7679a1208f Added documentation for the 'homes' module ( issue #105) 2013-12-28 22:49:13 +00:00
walterhiggins
a0ad7a8ec6 Updated docs for 'console' module and changed error message for failed require() to be more informative. 2013-12-28 12:12:45 +00:00
walterhiggins
76164254ba Cleaning up markdown documentation. 2013-12-28 08:44:40 +00:00
walterhiggins
e0f8f0dc0f Updated alias command to create aliases without 'jsp' prefix and added 'console' global variable 2013-12-27 22:52:16 +00:00
walterhiggins
a7a4bf79a1 Updated alias to support aliases without 'jsp' prefix, added 'console' global variable 2013-12-27 22:50:13 +00:00
walterhiggins
f9af3a5ce4 renamed SnowBall to Snowball 2013-12-26 15:39:33 +00:00
walterhiggins
509705487a made 'events' global 2013-12-26 15:38:24 +00:00
walterhiggins
6ab381420d new commando plugin 2013-12-26 00:22:24 +00:00
walterhiggins
5d55e1ce73 removed 2013-12-25 13:39:53 +00:00
walterhiggins
de756f38c0 removed 2013-12-25 13:39:36 +00:00
walterhiggins
b92e9e4a07 made blocks a module rather than a plugin 2013-12-25 13:39:04 +00:00
walterhiggins
d44a43e598 Fixed a bug in plugin code where stores were being trashed at startup 2013-12-25 07:48:10 +00:00
walterhiggins
82f1928628 updating docs for module release 2013-12-24 22:47:57 +00:00
walterhiggins
60de2ec28a Updating documentation for modules release 2013-12-24 22:46:35 +00:00
walterhiggins
7f9736223e updated docs for module loading 2013-12-24 10:02:34 +00:00
walterhiggins
5953a55fb1 removed _primitives.js 2013-12-24 00:27:26 +00:00
walterhiggins
b2761d29e3 reorg 2013-12-24 00:18:43 +00:00
walterhiggins
d0da034fb7 reorg 2013-12-24 00:17:33 +00:00
walterhiggins
aa93491a6c reorg 2013-12-24 00:17:07 +00:00
walterhiggins
4d807373da reorg 2013-12-24 00:16:07 +00:00
walterhiggins
eb098ff176 reorg 2013-12-24 00:15:17 +00:00
walterhiggins
7f3b17a07c moved drone to plugins directory 2013-12-24 00:12:56 +00:00
walterhiggins
a7dcb503aa Major overhaul of plugin and module loading system and scriptcraft directory layout 2013-12-24 00:09:49 +00:00
walterhiggins
f25f4ac7f3 Updated doc for require 2013-12-21 09:09:11 +00:00