Skip to content

Commit

Permalink
fix: title in config only appearing after a reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatsmusic99 committed Jul 3, 2023
1 parent 3e2f290 commit 1e6341c
Showing 1 changed file with 6 additions and 5 deletions.
Expand Up @@ -118,6 +118,12 @@ public class NewConfig extends ATConfig {
*/
public NewConfig() throws Exception {
super("config.yml");
}

@Override
public void addDefaults() {
instance = this;

setTitle(new Title().withWidth(100).addSolidLine()
.addLine("-<( AdvancedTeleport )>-", Title.Pos.CENTER)
.addLine("Made by Niestrat99 and Thatsmusic99", Title.Pos.CENTER)
Expand All @@ -130,11 +136,6 @@ public NewConfig() throws Exception {
.addLine("Wiki - https://github.com/Niestrat99/AT-Rewritten/wiki")
.addLine("Discord - https://discord.gg/mgWbbN4")
.addSolidLine());
}

@Override
public void addDefaults() {
instance = this;

addComment("Another comment at the very top for all you lads :)");
addDefault("use-basic-teleport-features", true, "Features", "Whether basic teleportation features should be " +
Expand Down

0 comments on commit 1e6341c

Please sign in to comment.