From 39d9c67c75b54475209beffbc3f07ebbbe7adb73 Mon Sep 17 00:00:00 2001 From: coding Date: Mon, 14 May 2018 16:41:33 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4API=E5=BC=95=E5=85=A5?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/api/command.js | 2 +- src/main/resources/api/item.js | 2 +- src/main/resources/api/msp.js | 14 -------------- src/main/resources/api/permission.js | 2 +- src/main/resources/api/server.js | 2 +- src/main/resources/api/task.js | 2 +- 6 files changed, 5 insertions(+), 19 deletions(-) delete mode 100644 src/main/resources/api/msp.js 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