refactor: 重构api代理方式
This commit is contained in:
parent
fda64065cf
commit
f6181be33c
@ -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;
|
@ -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;
|
@ -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;
|
@ -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')
|
||||||
};
|
};
|
@ -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;
|
2
src/main/resources/api/player.js
Normal file
2
src/main/resources/api/player.js
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/*global Java, base, module, exports, require*/
|
||||||
|
module.exports = require('./msp.js').player;
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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;
|
@ -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;
|
Loading…
Reference in New Issue
Block a user