diff --git a/src/main/resources/api/command.js b/src/main/resources/api/command.js index d242a84..6548312 100644 --- a/src/main/resources/api/command.js +++ b/src/main/resources/api/command.js @@ -1,2 +1,2 @@ /*global Java, base, module, exports, require*/ -module.exports = require('./msp.js').command; \ No newline at end of file +module.exports = requireInternal('command'); \ No newline at end of file diff --git a/src/main/resources/api/item.js b/src/main/resources/api/item.js index d405417..3b0e1b9 100644 --- a/src/main/resources/api/item.js +++ b/src/main/resources/api/item.js @@ -1,2 +1,2 @@ /*global Java, base, module, exports, require*/ -module.exports = require('./msp.js').item; \ No newline at end of file +module.exports = requireInternal('item'); \ No newline at end of file diff --git a/src/main/resources/api/msp.js b/src/main/resources/api/msp.js deleted file mode 100644 index 61542f4..0000000 --- a/src/main/resources/api/msp.js +++ /dev/null @@ -1,14 +0,0 @@ -/*global Java, base, module, exports, require*/ -function impl(name) { - return require('../internal/' + DetectServerType + '/' + name, {warnNotFound: false}); -} - -exports = module.exports = { - command: impl('command'), - event: impl('event'), - permission: impl('permission'), - server: impl('server'), - task: impl('task'), - item: impl('item'), - chat: impl('chat') -}; \ No newline at end of file diff --git a/src/main/resources/api/permission.js b/src/main/resources/api/permission.js index 0ade738..fafaf62 100644 --- a/src/main/resources/api/permission.js +++ b/src/main/resources/api/permission.js @@ -1,2 +1,2 @@ /*global Java, base, module, exports, require*/ -module.exports = require('./msp.js').permission; \ No newline at end of file +module.exports = requireInternal('permission', {warnNotFound: false}); \ No newline at end of file diff --git a/src/main/resources/api/server.js b/src/main/resources/api/server.js index f673ba3..27e7564 100644 --- a/src/main/resources/api/server.js +++ b/src/main/resources/api/server.js @@ -1,2 +1,2 @@ /*global Java, base, module, exports, require*/ -module.exports = require('./msp.js').server; \ No newline at end of file +module.exports = requireInternal('server'); \ No newline at end of file diff --git a/src/main/resources/api/task.js b/src/main/resources/api/task.js index 91a0929..d38a523 100644 --- a/src/main/resources/api/task.js +++ b/src/main/resources/api/task.js @@ -1,2 +1,2 @@ /*global Java, base, module, exports, require*/ -module.exports = require('./msp.js').task; \ No newline at end of file +module.exports = requireInternal('task'); \ No newline at end of file