feat: 调整插件目录结构 根据兼容性分离

This commit is contained in:
coding 2017-11-30 05:21:52 +00:00
parent a4545051d1
commit 5a5b1d160f
4 changed files with 3 additions and 3 deletions

View File

@ -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);
});
}

View File

@ -16,7 +16,7 @@ var description = {
name: 'Lottery',
version: '1.0',
commands: {
'l': {
'lottery': {
description: 'Lottery主命令'
}
},