mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-22 00:58:04 +01:00
AddonsAPI - Made overriden BSModule methods final, so they cannot be over-overriden
This commit is contained in:
parent
1c3b3a2c56
commit
a3db6e9b5d
@ -216,17 +216,17 @@ public class BSkyBlock extends JavaPlugin implements BSModule {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIdentifier() {
|
||||
public final String getIdentifier() {
|
||||
return getDescription().getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAddon() {
|
||||
public final boolean isAddon() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public File getFolder() {
|
||||
public final File getFolder() {
|
||||
return getDataFolder();
|
||||
}
|
||||
}
|
||||
|
@ -36,17 +36,17 @@ public abstract class BSAddon implements BSModule {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIdentifier() {
|
||||
public final String getIdentifier() {
|
||||
return getDescription().getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAddon() {
|
||||
public final boolean isAddon() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public File getFolder() {
|
||||
public final File getFolder() {
|
||||
if (folder == null) {
|
||||
folder = new File(BSkyBlock.getPlugin().getFolder() + "/addons/" + getIdentifier());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user