Adds a new configuration option to remove permission signs without a physical sign on startup
This commit is contained in:
@ -45,6 +45,7 @@ public final class PermissionSigns extends JavaPlugin {
|
||||
private static boolean perWorldPermissions;
|
||||
private static boolean enableExtensiveSignProtection;
|
||||
private static boolean enableIndirectSignProtection;
|
||||
private static boolean removePermissionSignIfMissing;
|
||||
|
||||
/**
|
||||
* Instantiates the permission signs class
|
||||
@ -141,6 +142,15 @@ public final class PermissionSigns extends JavaPlugin {
|
||||
return enableIndirectSignProtection;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets whether to remove permissions signs if their physical signs are missing
|
||||
*
|
||||
* @return <p>Whether tor remove permission signs if their signs are missing</p>
|
||||
*/
|
||||
public static boolean removePermissionSignIfMissing() {
|
||||
return removePermissionSignIfMissing;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reloadConfig() {
|
||||
super.reloadConfig();
|
||||
@ -183,6 +193,7 @@ public final class PermissionSigns extends JavaPlugin {
|
||||
perWorldPermissions = config.getBoolean("perWorldPermissions", false);
|
||||
enableExtensiveSignProtection = config.getBoolean("enableExtensiveSignProtection", false);
|
||||
enableIndirectSignProtection = config.getBoolean("enableIndirectSignProtection", true);
|
||||
removePermissionSignIfMissing = config.getBoolean("removePermissionSignIfMissing", true);
|
||||
saveConfig();
|
||||
return language;
|
||||
}
|
||||
|
Reference in New Issue
Block a user