refactor: 重构api代理方式
This commit is contained in:
14
src/main/resources/api/msp.js
Normal file
14
src/main/resources/api/msp.js
Normal 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')
|
||||
};
|
Reference in New Issue
Block a user