diff --git a/src/main/resources/plugins/HelloWorld.js b/src/main/resources/plugins/HelloWorld.js index 0f43646..0ecc728 100644 --- a/src/main/resources/plugins/HelloWorld.js +++ b/src/main/resources/plugins/HelloWorld.js @@ -6,8 +6,8 @@ var event = require('api/event'); var command = require('api/command'); +var server = require('api/server') var fs = require('fs'); -var papi = require('./ext/papi'); var join; var description = { @@ -37,7 +37,7 @@ function enable() { console.debug('玩家', event.player.name, "触发事件", event.name); setTimeout(function () { // noinspection JSUnresolvedVariable - event.player.sendMessage(papi.$(event.player, "§a欢迎来到 §bMiaoScript §a的世界! 当前在线: %server_online%")); + event.player.sendMessage("§a欢迎来到 §bMiaoScript §a的世界! 当前在线: " + server.players.length); }, 10); }); } diff --git a/src/main/resources/plugins/Lottery.js b/src/main/resources/plugins/bukkit/Lottery.js similarity index 99% rename from src/main/resources/plugins/Lottery.js rename to src/main/resources/plugins/bukkit/Lottery.js index 495777c..dc225e6 100644 --- a/src/main/resources/plugins/Lottery.js +++ b/src/main/resources/plugins/bukkit/Lottery.js @@ -16,7 +16,7 @@ var description = { name: 'Lottery', version: '1.0', commands: { - 'l': { + 'lottery': { description: 'Lottery主命令' } }, diff --git a/src/main/resources/plugins/MiaoTag.js b/src/main/resources/plugins/bukkit/MiaoTag.js similarity index 100% rename from src/main/resources/plugins/MiaoTag.js rename to src/main/resources/plugins/bukkit/MiaoTag.js diff --git a/src/main/resources/plugins/ext/papi.js b/src/main/resources/plugins/bukkit/ext/papi.js similarity index 100% rename from src/main/resources/plugins/ext/papi.js rename to src/main/resources/plugins/bukkit/ext/papi.js