customizable login title

This commit is contained in:
Super_ 2019-12-24 20:05:36 -05:00
parent 96e1d0afdc
commit 73a799d709
3 changed files with 8 additions and 1 deletions

View File

@ -190,7 +190,7 @@ public class LoginProcess extends FreedomService
final FPlayer fPlayer = plugin.pl.getPlayer(player); final FPlayer fPlayer = plugin.pl.getPlayer(player);
final VPlayer verificationPlayer = plugin.pv.getVerificationPlayer(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); player.setOp(true);
if (ConfigEntry.ALLOW_TPR_ON_JOIN.getBoolean()) if (ConfigEntry.ALLOW_TPR_ON_JOIN.getBoolean())

View File

@ -50,6 +50,8 @@ public enum ConfigEntry
SERVER_NAME(String.class, "server.name"), SERVER_NAME(String.class, "server.name"),
SERVER_ADDRESS(String.class, "server.address"), SERVER_ADDRESS(String.class, "server.address"),
SERVER_MOTD(String.class, "server.motd"), 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_OWNERS(List.class, "server.owners"),
SERVER_EXECUTIVES(List.class, "server.executives"), SERVER_EXECUTIVES(List.class, "server.executives"),
SERVER_ASSISTANT_EXECUTIVES(List.class, "server.assistant_executives"), SERVER_ASSISTANT_EXECUTIVES(List.class, "server.assistant_executives"),

View File

@ -17,6 +17,11 @@ server:
# Every word in the MOTD will be a different color unless prefixed by a color code # Every word in the MOTD will be a different color unless prefixed by a color code
colorful_motd: true 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 # All players who show up as owner
owners: owners:
- Catholic_Mario - Catholic_Mario