diff --git a/src/main/java/me/totalfreedom/totalfreedommod/LoginProcess.java b/src/main/java/me/totalfreedom/totalfreedommod/LoginProcess.java index 3da438a2..00da1f8c 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/LoginProcess.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/LoginProcess.java @@ -190,7 +190,7 @@ public class LoginProcess extends FreedomService final FPlayer fPlayer = plugin.pl.getPlayer(player); final VPlayer verificationPlayer = plugin.pv.getVerificationPlayer(player); - player.sendTitle(ChatColor.GRAY + "Welcome to " + ChatColor.GOLD + "TotalFreedom!", ChatColor.YELLOW + "Now in 1.15!", 20, 100, 60); + player.sendTitle(FUtil.colorize(ConfigEntry.SERVER_LOGIN_TITLE.getString()), FUtil.colorize(ConfigEntry.SERVER_LOGIN_SUBTITLE.getString()), 20, 100, 60); player.setOp(true); if (ConfigEntry.ALLOW_TPR_ON_JOIN.getBoolean()) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/config/ConfigEntry.java b/src/main/java/me/totalfreedom/totalfreedommod/config/ConfigEntry.java index 3e292f46..9dabaf11 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/config/ConfigEntry.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/config/ConfigEntry.java @@ -50,6 +50,8 @@ public enum ConfigEntry SERVER_NAME(String.class, "server.name"), SERVER_ADDRESS(String.class, "server.address"), SERVER_MOTD(String.class, "server.motd"), + SERVER_LOGIN_TITLE(String.class, "server.login_title.title"), + SERVER_LOGIN_SUBTITLE(String.class, "server.login_title.subtitle"), SERVER_OWNERS(List.class, "server.owners"), SERVER_EXECUTIVES(List.class, "server.executives"), SERVER_ASSISTANT_EXECUTIVES(List.class, "server.assistant_executives"), diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index b48afd0f..71c09e85 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -17,6 +17,11 @@ server: # Every word in the MOTD will be a different color unless prefixed by a color code colorful_motd: true + # Shown on join as a title + login_title: + title: '&7Welcome to &6TotalFreedom&7!' + subtitle: '&eThe Original All-Op Server!' + # All players who show up as owner owners: - Catholic_Mario