From 1562a3bf0f555d9802fcb92b20ea2fd165e3561b Mon Sep 17 00:00:00 2001 From: walterhiggins Date: Fri, 27 Dec 2013 22:59:18 +0000 Subject: [PATCH] Updated release notes to reflect recent changes --- docs/release-notes.md | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 3816c45..84c5e14 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -2,12 +2,44 @@ ## Updated 'jsp alias' command. -The 'jsp alias' command now lets players define their own shortcuts which don't require the 'jsp ' prefix. +The 'jsp alias' command now lets players define their own shortcuts +which don't require the 'jsp ' prefix. +### Example + +At the in-game prompt use the following command to create a new alias +`cw` (short for change Clock & Weather) which will change the time and +weather using a single statement. + + /jsp alias set cw = time set {1} ; weather {2} + +This creates a new cw alias which takes 2 parameters, time and weather +and passes them to the 'time set' and 'weather' commands. You use the +alias like this... + + /cw 4000 sun + +... which in turn gets converted into these 2 commands... + + /time set 4000 + /weather sun + +Aliases can be set on a per-player basis or can be set globally (for +all players). Aliases are automatically saved and restore on server +shutdown/startup. + ## Added console global variable. -ScriptCraft now has a `console` global variable which can be used for logging (to the server console). -The `console` variable uses the ScriptCraft plugin Logger object. +ScriptCraft now has a `console` global variable which can be used for +logging (to the server console). The `console` variable uses the +ScriptCraft plugin Logger object. You use the console object in your +javascript modules like this... + + console.info('Hello %s, %s', 'World', 'Universe'); + +... or simply... + + console.warn('Hello World'); # 2013 12 26