feat: 完善反射和命令处理

This commit is contained in:
coding
2017-10-11 01:21:25 +00:00
parent 3106119ff1
commit 6004590323
4 changed files with 52 additions and 20 deletions

View File

@ -5,6 +5,7 @@
/*global Java, base, module, exports, require*/
var event = require('modules/event');
var cmd = require('modules/command');
var join;
var description = {
@ -26,6 +27,15 @@ function enable() {
event.player.sendMessage(require("plugins/ext/papi").$(event.player, "§a欢迎来到 §bMiaoScript §a的世界! 当前在线: %server_online%"));
}, 10);
});
cmd.on(module.exports, 'hello', {
cmd: function (sender, command, args) {
console.log(command, args);
return true;
},
tab: function (sender, command, args) {
return 'test';
}
});
}
function disable() {