From 1122c2ef230d18067274704f6d7b04bdf1989f0e Mon Sep 17 00:00:00 2001 From: Ruud Schramp Date: Mon, 28 Mar 2016 15:44:07 +0000 Subject: [PATCH] Small error in demo code, index missing --- src/main/js/plugins/commando/commando-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/js/plugins/commando/commando-test.js b/src/main/js/plugins/commando/commando-test.js index 3e535cb..cd9b987 100644 --- a/src/main/js/plugins/commando/commando-test.js +++ b/src/main/js/plugins/commando/commando-test.js @@ -14,7 +14,7 @@ commando( 'js-time' , function( params, sender ) { i = 0; if ( sender.location ) { for ( ; i < 4; i++ ) { - if ( times.toLowerCase() == time ) { + if ( times[i].toLowerCase() == time ) { sender.location.world.setTime( i * 6000 ); break; }