mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-03 13:05:30 +02:00
more work on notifications config
This commit is contained in:
@@ -495,11 +495,6 @@ public class AdvancedConfig extends ConfigValidated {
|
||||
}
|
||||
|
||||
/* GENERAL */
|
||||
public int getStartingLevel() { return getIntValue(SKILLS, GENERAL, STARTING_LEVEL); }
|
||||
|
||||
public boolean allowPlayerTips() {
|
||||
return config.getBoolean("Feedback.PlayerTips", true);
|
||||
}
|
||||
|
||||
/**
|
||||
* This returns the maximum level at which superabilities will stop lengthening from scaling alongside skill level.
|
||||
|
@@ -0,0 +1,17 @@
|
||||
package com.gmail.nossr50.config.hocon.notifications;
|
||||
|
||||
import ninja.leaping.configurate.objectmapping.Setting;
|
||||
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||
|
||||
@ConfigSerializable
|
||||
public class ConfigNotificationGeneral {
|
||||
|
||||
public static final boolean PLAYER_TIPS_DEFAULT = true;
|
||||
@Setting(value = "Player-Tips", comment = "Allows mcMMO to send players automated helpful tips." +
|
||||
"\n Default value: "+PLAYER_TIPS_DEFAULT)
|
||||
public boolean playerTips = PLAYER_TIPS_DEFAULT;
|
||||
|
||||
public boolean isPlayerTips() {
|
||||
return playerTips;
|
||||
}
|
||||
}
|
@@ -19,4 +19,15 @@ public class ConfigNotifications {
|
||||
@Setting(value = "Action-Bar-Notifications", comment = "Settings related to action bar messages." +
|
||||
"\nThe action bar is the area above your health and armor.")
|
||||
public ConfigActionBarNotifications actionBarNotifications = new ConfigActionBarNotifications();
|
||||
|
||||
@Setting(value = "General", comment = "General settings for Notifications")
|
||||
public ConfigNotificationGeneral configNotificationGeneral = new ConfigNotificationGeneral();
|
||||
|
||||
public ConfigActionBarNotifications getActionBarNotifications() {
|
||||
return actionBarNotifications;
|
||||
}
|
||||
|
||||
public ConfigNotificationGeneral getConfigNotificationGeneral() {
|
||||
return configNotificationGeneral;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user