AddonsAPI - Made overriden BSModule methods final, so they cannot be over-overriden

This commit is contained in:
Florian CUNY 2017-12-22 13:39:00 +01:00
parent 1c3b3a2c56
commit a3db6e9b5d
2 changed files with 6 additions and 6 deletions

View File

@ -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();
}
}

View File

@ -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());
}