AddonsAPI - Added #isAddon() in BSModule

This commit is contained in:
Florian CUNY 2017-12-12 14:14:38 +01:00
parent df35492de5
commit 40b56843e7
3 changed files with 11 additions and 0 deletions

View File

@ -255,4 +255,9 @@ public class BSkyBlock extends JavaPlugin implements BSModule {
public String getIdentifier() {
return getDescription().getName();
}
@Override
public boolean isAddon() {
return false;
}
}

View File

@ -3,4 +3,5 @@ package us.tastybento.bskyblock.api;
public interface BSModule {
String getIdentifier();
boolean isAddon();
}

View File

@ -31,4 +31,9 @@ public abstract class BSAddon implements BSModule {
public String getIdentifier() {
return getDescription().getName();
}
@Override
public boolean isAddon() {
return true;
}
}