mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-03 04:55:28 +02:00
Hypens instead of Underscores because the serializer is a dumbo
This commit is contained in:
@@ -14,13 +14,13 @@ public class ConfigLeveling {
|
||||
* CONFIG NODES
|
||||
*/
|
||||
|
||||
@Setting(value = "Player_Starting_Level",
|
||||
@Setting(value = "Player-Starting-Level",
|
||||
comment = "\nPlayers will start at this level in all skills if they aren't already saved in the database." +
|
||||
"\nHistorically this number has been 0, but this was changed in 2.1.X to 1 as I felt it was better to start from 1 than 0." +
|
||||
"\nDefault value: "+STARTING_LEVEL_DEFAULT)
|
||||
private int startingLevel = STARTING_LEVEL_DEFAULT;
|
||||
|
||||
@Setting(value = "Player_Level_Caps",
|
||||
@Setting(value = "Player-Level-Caps",
|
||||
comment = "Restrict players from going above certain skill levels" +
|
||||
"\nPlayers that have skills above the limit will have their skill levels truncated down to the limit.")
|
||||
private ConfigSectionLevelCaps configSectionLevelCaps = new ConfigSectionLevelCaps();
|
||||
|
@@ -1,5 +1,6 @@
|
||||
package com.gmail.nossr50.config.hocon.playerleveling;
|
||||
|
||||
import com.gmail.nossr50.config.ConfigConstants;
|
||||
import ninja.leaping.configurate.objectmapping.Setting;
|
||||
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||
|
||||
@@ -12,12 +13,12 @@ public class ConfigSectionLevelCaps {
|
||||
* CONFIG NODES
|
||||
*/
|
||||
|
||||
@Setting(value = "Reduce_Player_Skills_Above_Cap",
|
||||
@Setting(value = "Reduce-Player-Skills-Above-Cap",
|
||||
comment = "Players with skills above the cap will have those skills reduced to the cap" +
|
||||
"\nDefault value: "+TRUNCATE_SKILLS_ABOVE_CAP_DEFAULT)
|
||||
private boolean truncateSkillsAboveCap = TRUNCATE_SKILLS_ABOVE_CAP_DEFAULT;
|
||||
|
||||
@Setting(value = "Power_Level",
|
||||
@Setting(value = "Power-Level",
|
||||
comment = "Power Level is the sum of all of a players skills." +
|
||||
"\nEnable this cap if you want to force players into specializing into specific skills")
|
||||
private ConfigSectionSkillLevelCap powerLevel = new ConfigSectionSkillLevelCap();
|
||||
@@ -29,10 +30,6 @@ public class ConfigSectionLevelCaps {
|
||||
* GETTER BOILERPLATE
|
||||
*/
|
||||
|
||||
public boolean isTruncateSkillsAboveCap() {
|
||||
return truncateSkillsAboveCap;
|
||||
}
|
||||
|
||||
public ConfigSectionSkillLevelCap getPowerLevel() {
|
||||
return powerLevel;
|
||||
}
|
||||
|
@@ -12,7 +12,7 @@ public class ConfigSectionSkillLevelCap {
|
||||
@Setting(value = "Enable")
|
||||
private boolean useLevelCap = USE_LEVEL_CAP_DEFAULT;
|
||||
|
||||
@Setting(value = "Level_Cap", comment = "Players will be unable to level past this value")
|
||||
@Setting(value = "Level-Cap", comment = "Players will be unable to level past this value")
|
||||
private int levelCap = LEVEL_CAP_DEFAULT;
|
||||
|
||||
public boolean isLevelCapEnabled() {
|
||||
|
Reference in New Issue
Block a user