Skip to content

Commit

Permalink
refactor: automatic config tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
bconlon1 committed Oct 25, 2024
1 parent b64c3b0 commit c3bb438
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,17 @@ public void addClientConfig(String prefix, String name) {

public void addServerConfig(String prefix, String key, String name) {
this.add("config." + this.id + ".server." + prefix + "." + key, name);
this.add("config." + this.id + ".server." + prefix + "." + key + ".tooltip", name);
}

public void addCommonConfig(String prefix, String key, String name) {
this.add("config." + this.id + ".common." + prefix + "." + key, name);
this.add("config." + this.id + ".common." + prefix + "." + key + ".tooltip", name);
}

public void addClientConfig(String prefix, String key, String name) {
this.add("config." + this.id + ".client." + prefix + "." + key, name);
this.add("config." + this.id + ".client." + prefix + "." + key + ".tooltip", name);
}

public void addPackTitle(String packName, String description) {
Expand Down

0 comments on commit c3bb438

Please sign in to comment.