feat: 删除旧插件

merge/1/MERGE
coding 2017-10-17 06:49:55 +00:00
parent 65446674f6
commit e5f212fd6b
1 changed files with 0 additions and 52 deletions

View File

@ -1,52 +0,0 @@
'use strict';
/**
* Hello Wrold 测试插件
*/
/*global Java, base, module, exports, require*/
var event = require('modules/event');
var cmd = require('modules/command');
var join;
var description = {
name: 'HelloWorld',
version: '1.0'
};
function load() {
console.log('载入 Hello Wrold 测试插件!');
}
function enable() {
console.log('启用 Hello Wrold 测试插件!');
join = event.on(this, 'playerloginevent', function join(event) {
// noinspection JSUnresolvedVariable
log.d('玩家 %s 触发事件 %s', event.player.name, event.name);
setTimeout(function () {
// noinspection JSUnresolvedVariable
event.player.sendMessage(require("plugins/ext/papi").$(event.player, "§a欢迎来到 §bMiaoScript §a的世界! 当前在线: %server_online%"));
}, 10);
});
cmd.on(this, 'hello', {
cmd: function (sender, command, args) {
console.log(command, args.join(' '));
return true;
},
tab: function (sender, command, args) {
return 'test';
}
});
}
function disable() {
console.log('卸载 Hello Wrold 测试插件!');
// 可以不用关闭事件 程序将自动处理
// event.off(join);
}
module.exports = {
description: description,
load: load,
enable: enable,
disable: disable
};