mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-22 09:08:03 +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
|
@Override
|
||||||
public String getIdentifier() {
|
public final String getIdentifier() {
|
||||||
return getDescription().getName();
|
return getDescription().getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isAddon() {
|
public final boolean isAddon() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File getFolder() {
|
public final File getFolder() {
|
||||||
return getDataFolder();
|
return getDataFolder();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,17 +36,17 @@ public abstract class BSAddon implements BSModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getIdentifier() {
|
public final String getIdentifier() {
|
||||||
return getDescription().getName();
|
return getDescription().getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isAddon() {
|
public final boolean isAddon() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File getFolder() {
|
public final File getFolder() {
|
||||||
if (folder == null) {
|
if (folder == null) {
|
||||||
folder = new File(BSkyBlock.getPlugin().getFolder() + "/addons/" + getIdentifier());
|
folder = new File(BSkyBlock.getPlugin().getFolder() + "/addons/" + getIdentifier());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user