mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-22 02:35:21 +01:00
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
Block a user