|
|
@ -194,12 +194,12 @@ public class BukkitHuskSync extends JavaPlugin implements HuskSync, BukkitTask.S
|
|
|
|
this.disabling = true;
|
|
|
|
this.disabling = true;
|
|
|
|
|
|
|
|
|
|
|
|
// Close the event listener / data syncer
|
|
|
|
// Close the event listener / data syncer
|
|
|
|
if (this.eventListener != null) {
|
|
|
|
|
|
|
|
this.eventListener.handlePluginDisable();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.dataSyncer != null) {
|
|
|
|
if (this.dataSyncer != null) {
|
|
|
|
this.dataSyncer.terminate();
|
|
|
|
this.dataSyncer.terminate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.eventListener != null) {
|
|
|
|
|
|
|
|
this.eventListener.handlePluginDisable();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Unregister API and cancel tasks
|
|
|
|
// Unregister API and cancel tasks
|
|
|
|
BukkitHuskSyncAPI.unregister();
|
|
|
|
BukkitHuskSyncAPI.unregister();
|
|
|
|