mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-22 10:45:22 +01:00
Add onDisable override method to Pladdon
This commit is contained in:
parent
a969bbf317
commit
ff1438f3a3
@ -32,6 +32,14 @@ public abstract class Pladdon extends JavaPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
Addon addon = getAddon();
|
||||
if (addon != null) {
|
||||
addon.onDisable();
|
||||
}
|
||||
}
|
||||
|
||||
protected void moveJar() {
|
||||
getLogger().severe(getFile().getName() + " must be in the " + ADDONS_FOLDER + " folder! Trying to move it there...");
|
||||
File addons = new File(getFile().getParent(), ADDONS_FOLDER);
|
||||
|
Loading…
Reference in New Issue
Block a user