Skip to content

Commit

Permalink
[6.0.10] update plugin api
Browse files Browse the repository at this point in the history
  • Loading branch information
Bkm016 committed Feb 25, 2023
1 parent 300a936 commit d3ec393
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ public void onDisable() {
throw new RuntimeException(ex);
}
} else {
TabooLibCommon.lifeCycle(LifeCycle.DISABLE);
// 在插件未关闭的前提下,执行 onDisable() 方法
if (pluginInstance != null && !TabooLibCommon.isStopped()) {
pluginInstance.onDisable();
}
TabooLibCommon.lifeCycle(LifeCycle.DISABLE);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ public void onDisable() {
throw new RuntimeException(ex);
}
} else {
TabooLibCommon.lifeCycle(LifeCycle.DISABLE);
// 在插件未关闭的前提下,执行 onDisable() 方法
if (pluginInstance != null && !TabooLibCommon.isStopped()) {
pluginInstance.onDisable();
}
TabooLibCommon.lifeCycle(LifeCycle.DISABLE);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ public void e(ProxyShutdownEvent e) {
throw new RuntimeException(ex);
}
} else {
TabooLibCommon.lifeCycle(LifeCycle.DISABLE);
if (pluginInstance != null && !TabooLibCommon.isStopped()) {
pluginInstance.onDisable();
}
TabooLibCommon.lifeCycle(LifeCycle.DISABLE);
}
}

Expand Down

0 comments on commit d3ec393

Please sign in to comment.