mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +00:00
customizable login title
This commit is contained in:
parent
96e1d0afdc
commit
73a799d709
@ -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())
|
||||
|
@ -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"),
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user