mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-11-22 22:38:46 +00:00
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
4ef3f38624
commit
b3dea9a5e3
3
pom.xml
3
pom.xml
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>pw.yumc</groupId>
|
<groupId>pw.yumc</groupId>
|
||||||
<artifactId>Yum</artifactId>
|
<artifactId>Yum</artifactId>
|
||||||
<version>2.3</version>
|
<version>2.4</version>
|
||||||
<name>Yum</name>
|
<name>Yum</name>
|
||||||
<description>Minecraft 服务器插件管理系统</description>
|
<description>Minecraft 服务器插件管理系统</description>
|
||||||
<build>
|
<build>
|
||||||
@ -60,6 +60,7 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<update.description>&a全新 2.X 版本 更多守护与优化</update.description>
|
<update.description>&a全新 2.X 版本 更多守护与优化</update.description>
|
||||||
<update.changes>
|
<update.changes>
|
||||||
|
&b2.4 &6- &c修复重载插件导致线程安全错误的问题...;
|
||||||
&b2.3 &6- &a网络监控添加域名白名单功能...;
|
&b2.3 &6- &a网络监控添加域名白名单功能...;
|
||||||
&b2.2 &6- &b新增线程安全拦截 主线程IO拦截...;
|
&b2.2 &6- &b新增线程安全拦截 主线程IO拦截...;
|
||||||
&b2.1 &6- &e新增网络管理 防止主线程卡IO...;
|
&b2.1 &6- &e新增网络管理 防止主线程卡IO...;
|
||||||
|
@ -92,7 +92,7 @@ public class Yum extends JavaPlugin {
|
|||||||
new PluginNetworkListener(this);
|
new PluginNetworkListener(this);
|
||||||
PluginKit.scp("§a网络管理系统已启用...");
|
PluginKit.scp("§a网络管理系统已启用...");
|
||||||
}
|
}
|
||||||
if (ConfigManager.i().isThreadSafe()) {
|
if (ConfigManager.i().isThreadSafe() && Bukkit.isPrimaryThread()) {
|
||||||
new ThreadSafetyListener(this);
|
new ThreadSafetyListener(this);
|
||||||
PluginKit.scp("§a线程管理系统已启用...");
|
PluginKit.scp("§a线程管理系统已启用...");
|
||||||
}
|
}
|
||||||
|
@ -73,10 +73,12 @@ public class ThreadSafetyListener implements Listener {
|
|||||||
checkSafety(teleportEvent);
|
checkSafety(teleportEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
public void onPluginDisable(final PluginDisableEvent pluginDisableEvent) {
|
public void onPluginDisable(final PluginDisableEvent pluginDisableEvent) {
|
||||||
checkSafety(pluginDisableEvent);
|
checkSafety(pluginDisableEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
public void onPluginEnable(final PluginEnableEvent pluginEnableEvent) {
|
public void onPluginEnable(final PluginEnableEvent pluginEnableEvent) {
|
||||||
checkSafety(pluginEnableEvent);
|
checkSafety(pluginEnableEvent);
|
||||||
}
|
}
|
||||||
@ -86,6 +88,7 @@ public class ThreadSafetyListener implements Listener {
|
|||||||
checkSafety(worldLoadEvent);
|
checkSafety(worldLoadEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
public void onWorldSave(final WorldSaveEvent worldSaveEvent) {
|
public void onWorldSave(final WorldSaveEvent worldSaveEvent) {
|
||||||
checkSafety(worldSaveEvent);
|
checkSafety(worldSaveEvent);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user