AddonsAPI - Added #isAddon() in BSModule
This commit is contained in:
parent
df35492de5
commit
40b56843e7
|
@ -255,4 +255,9 @@ public class BSkyBlock extends JavaPlugin implements BSModule {
|
|||
public String getIdentifier() {
|
||||
return getDescription().getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAddon() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,4 +3,5 @@ package us.tastybento.bskyblock.api;
|
|||
public interface BSModule {
|
||||
|
||||
String getIdentifier();
|
||||
boolean isAddon();
|
||||
}
|
||||
|
|
|
@ -31,4 +31,9 @@ public abstract class BSAddon implements BSModule {
|
|||
public String getIdentifier() {
|
||||
return getDescription().getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAddon() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue