mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
Added Addon#getPermissionPrefix
This commit is contained in:
parent
b286bb3296
commit
d9a15ceedd
@ -326,4 +326,13 @@ public abstract class Addon implements AddonInterface {
|
||||
public void logError(String string) {
|
||||
getPlugin().logError(string);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the permission prefix corresponding to this addon.
|
||||
* It contains the addon's name plus a trailing dot.
|
||||
* @return
|
||||
*/
|
||||
public String getPermissionPrefix() {
|
||||
return this.getDescription().getName().toLowerCase() + ".";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user