Hypens instead of Underscores because the serializer is a dumbo

This commit is contained in:
nossr50
2019-03-13 17:06:15 -07:00
parent 0046c47163
commit 7a7dd7002e
22 changed files with 73 additions and 67 deletions

View File

@@ -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();

View File

@@ -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;
}

View File

@@ -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() {