Adds a toggle-able admin alert when any admin joins the server
This commit is contained in:
@@ -147,7 +147,12 @@ public enum ConfigOption {
|
||||
/**
|
||||
* Whether to enable debug output for debugging permissions
|
||||
*/
|
||||
PERMISSION_DEBUG("debugging.permissionDebug", "Whether to enable permission debugging output", false);
|
||||
PERMISSION_DEBUG("debugging.permissionDebug", "Whether to enable permission debugging output", false),
|
||||
|
||||
/**
|
||||
* Whether to alert admins about new updates
|
||||
*/
|
||||
ADMIN_UPDATE_ALERT("adminUpdateAlert", "Whether to alert admins about new plugin updates", true);
|
||||
|
||||
|
||||
private final String configNode;
|
||||
|
@@ -319,6 +319,15 @@ public final class StargateConfig {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets whether admins should be alerted about new plugin updates
|
||||
*
|
||||
* @return <p>Whether admins should be alerted about new updates</p>
|
||||
*/
|
||||
public boolean alertAdminsAboutUpdates() {
|
||||
return (boolean) configOptions.get(ConfigOption.ADMIN_UPDATE_ALERT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads all config values
|
||||
*/
|
||||
|
Reference in New Issue
Block a user