refactor: 重构api代理方式

This commit is contained in:
coding
2017-12-04 07:14:35 +00:00
parent fda64065cf
commit f6181be33c
9 changed files with 12 additions and 9 deletions

View File

@ -0,0 +1,14 @@
/*global Java, base, module, exports, require*/
function impl(name) {
return require('../internal/' + DetectServerType + '/' + name);
}
module.exports = {
command: impl('command'),
event: impl('event'),
permission: impl('permission'),
server: impl('server'),
task: impl('task'),
item: impl('item'),
player: impl('player')
};