Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed Sep 29, 2023
1 parent 5305bf0 commit d1ebcfe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
21 changes: 15 additions & 6 deletions src/main/java/fr/xephi/authme/AuthMe.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,21 @@ public void onEnable() {
OnStartupTasks.sendMetrics(this, settings);
if(settings.getProperty(SecuritySettings.SHOW_STARTUP_BANNER)) {
String loadColorConfig = settings.getProperty(SecuritySettings.STARTUP_BANNER_COLOR);
logger.info("\n"+"§"+loadColorConfig+" ___ __ __ __ ___ \n" +
"§"+loadColorConfig+" / | __ __/ /_/ /_ / |/ /__ \n" +
"§"+loadColorConfig+" / /| |/ / / / __/ __ \\/ /|_/ / _ \\\n" +
"§"+loadColorConfig+" / ___ / /_/ / /_/ / / / / / / __/\n" +
"§"+loadColorConfig+"/_/ |_\\__,_/\\__/_/ /_/_/ /_/\\___/ \n" +
"§"+loadColorConfig+" ");
if (loadColorConfig.startsWith("§")) {
logger.info("\n" + loadColorConfig + " ___ __ __ __ ___ \n" +
loadColorConfig + " / | __ __/ /_/ /_ / |/ /__ \n" +
loadColorConfig + " / /| |/ / / / __/ __ \\/ /|_/ / _ \\\n" +
loadColorConfig + " / ___ / /_/ / /_/ / / / / / / __/\n" +
loadColorConfig + "/_/ |_\\__,_/\\__/_/ /_/_/ /_/\\___/ \n" +
loadColorConfig + " ");
}else {
logger.info("\n"+" ___ __ __ __ ___ \n" +
" / | __ __/ /_/ /_ / |/ /__ \n" +
" / /| |/ / / / __/ __ \\/ /|_/ / _ \\\n" +
" / ___ / /_/ / /_/ / / / / / / __/\n" +
"/_/ |_\\__,_/\\__/_/ /_/_/ /_/\\___/ \n" +
" ");
}
}
// Successful message
//detect server brand with classloader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ public final class SecuritySettings implements SettingsHolder {
public static final Property<Boolean> SHOW_STARTUP_BANNER =
newProperty("Plugin.banners.showBanners", true);

@Comment("Should we show the Authme banner on startup?")
@Comment("Should we show the Authme banner on startup? (Default: §r)")
public static final Property<String> STARTUP_BANNER_COLOR =
newProperty("Plugin.banners.bannerColor", "r");
newProperty("Plugin.banners.bannerColor", "§r");


@Comment("Max allowed tries before a captcha is required")
Expand Down

0 comments on commit d1ebcfe

Please sign in to comment.