feat: 完善反射和命令处理
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user