This repository has been archived on 2021-07-14. You can view files and clone it, but cannot push or open issues or pull requests.
scriptcraft/src/main/js/plugins/classroom.js
2015-01-24 19:42:52 +00:00

12 lines
271 B
JavaScript

/*global require, exports, command*/
var cr = require('classroom');
command(function classroom( params, sender){
if (params[0] == 'on'){
cr.allowScripting(true, sender);
}else {
cr.allowScripting(false, sender);
}
},['on','off']);
exports.classroom = cr;