style: format code
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
ee4072526b
commit
72ae1b4b29
@ -159,7 +159,7 @@ module.exports = {
|
|||||||
disable: function(jsp) {
|
disable: function(jsp) {
|
||||||
var eventCache = EventHandler.listenerMap[jsp.description.name];
|
var eventCache = EventHandler.listenerMap[jsp.description.name];
|
||||||
if (eventCache) {
|
if (eventCache) {
|
||||||
eventCache.forEach(function (t) t.off.call(EventHandler));
|
eventCache.forEach(function(t) { t.off.call(EventHandler) });
|
||||||
delete EventHandler.listenerMap[jsp.description.name];
|
delete EventHandler.listenerMap[jsp.description.name];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -273,13 +273,15 @@ function disable() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function reload() {
|
function reloadPlugin(p) {
|
||||||
checkAndGet(arguments).forEach(function (p) {
|
|
||||||
disable(p);
|
disable(p);
|
||||||
p = loadPlugin(p.__FILE__);
|
p = loadPlugin(p.__FILE__);
|
||||||
load(p);
|
load(p);
|
||||||
enable(p);
|
enable(p);
|
||||||
});
|
}
|
||||||
|
|
||||||
|
function reload() {
|
||||||
|
checkAndGet(arguments).forEach(reloadPlugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
// noinspection JSUnresolvedVariable
|
// noinspection JSUnresolvedVariable
|
||||||
|
@ -9,7 +9,7 @@ var Bukkit = MServer;
|
|||||||
/**
|
/**
|
||||||
* 获取NMS版本
|
* 获取NMS版本
|
||||||
*/
|
*/
|
||||||
var nmsVersion = Bukkit.class.name.split('.')[3];
|
var nmsVersion = Bukkit.server.class.name.split('.')[3];
|
||||||
/**
|
/**
|
||||||
* 获取NMS类
|
* 获取NMS类
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user