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

@ -1,2 +1,2 @@
/*global Java, base, module, exports, require*/ /*global Java, base, module, exports, require*/
module.exports = require('./mserver').command; module.exports = require('./msp.js').command;

View File

@ -1,2 +1,2 @@
/*global Java, base, module, exports, require*/ /*global Java, base, module, exports, require*/
module.exports = require('./mserver').event; module.exports = require('./msp.js').event;

View File

@ -1,2 +1,2 @@
/*global Java, base, module, exports, require*/ /*global Java, base, module, exports, require*/
module.exports = require('./mserver').item; module.exports = require('./msp.js').item;

View File

@ -9,5 +9,6 @@ module.exports = {
permission: impl('permission'), permission: impl('permission'),
server: impl('server'), server: impl('server'),
task: impl('task'), task: impl('task'),
item: impl('item') item: impl('item'),
player: impl('player')
}; };

View File

@ -1,2 +1,2 @@
/*global Java, base, module, exports, require*/ /*global Java, base, module, exports, require*/
module.exports = require('./mserver').permission; module.exports = require('./msp.js').permission;

View File

@ -0,0 +1,2 @@
/*global Java, base, module, exports, require*/
module.exports = require('./msp.js').player;

View File

@ -143,8 +143,8 @@ function initPlugin(file, plugin) {
// 初始化插件配置相关方法 // 初始化插件配置相关方法
initPluginConfig(plugin); initPluginConfig(plugin);
command.enable(plugin); if (command.enable) command.enable(plugin);
permission.enable(plugin); if (permission.enable) permission.enable(plugin);
} }
/** /**

View File

@ -1,2 +1,2 @@
/*global Java, base, module, exports, require*/ /*global Java, base, module, exports, require*/
module.exports = require('./mserver').server; module.exports = require('./msp.js').server;

View File

@ -1,2 +1,2 @@
/*global Java, base, module, exports, require*/ /*global Java, base, module, exports, require*/
module.exports = require('./mserver').task; module.exports = require('./msp.js').task;