Skip to content

Commit

Permalink
Fixing default values.
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Jan 25, 2024
1 parent a99c27a commit a350278
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/main/java/de/presti/ree6/bot/BotConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,17 +235,6 @@ public static Color getRankTextColor() {
return rankTextColor;
}

/**
* Get the configured color for the details on the rank card.
* @return the color for the details on the rank card from the config.
*/
public static Color getRankDetailColor() {
if (rankDetailColor == null) {
rankDetailColor = Color.decode(Main.getInstance().getConfig().getConfiguration().getString("bot.misc.rankCard.detailColor", "#FFFFFF"));
}
return rankDetailColor;
}

/**
* Get the configured color for the highlight on the rank card.
* @return the color for the highlight on the rank card from the config.
Expand All @@ -257,6 +246,17 @@ public static Color getRankHighlightColor() {
return rankHighlightColor;
}

/**
* Get the configured color for the details on the rank card.
* @return the color for the details on the rank card from the config.
*/
public static Color getRankDetailColor() {
if (rankDetailColor == null) {
rankDetailColor = Color.decode(Main.getInstance().getConfig().getConfiguration().getString("bot.misc.rankCard.detailColor", "#C0C0C0"));
}
return rankDetailColor;
}

/**
* Get the configured color for the progressbar on the rank card.
* @return the color for the progressbar on the rank card from the config.
Expand All @@ -274,7 +274,7 @@ public static Color getRankProgressbarColor() {
*/
public static Color getRankProgressbarBackgroundColor() {
if (rankProgressbarBackgroundColor == null) {
rankProgressbarBackgroundColor = Color.decode(Main.getInstance().getConfig().getConfiguration().getString("bot.misc.rankCard.progressbarBackgroundColor", "#FF00FF"));
rankProgressbarBackgroundColor = Color.decode(Main.getInstance().getConfig().getConfiguration().getString("bot.misc.rankCard.progressbarBackgroundColor", "#7C007C"));
}
return rankProgressbarBackgroundColor;
}
Expand Down

0 comments on commit a350278

Please sign in to comment.