feat: 调整插件目录结构 根据兼容性分离
This commit is contained in:
parent
a4545051d1
commit
5a5b1d160f
@ -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);
|
||||
});
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ var description = {
|
||||
name: 'Lottery',
|
||||
version: '1.0',
|
||||
commands: {
|
||||
'l': {
|
||||
'lottery': {
|
||||
description: 'Lottery主命令'
|
||||
}
|
||||
},
|
Loading…
Reference in New Issue
Block a user