mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-07-23 06:03:34 +00:00
Actually, let's make it possible to disable it if needed
This commit is contained in:
parent
a9c9979b1c
commit
871acc2eeb
3 changed files with 8 additions and 5 deletions
|
@ -192,7 +192,7 @@ public class LoginProcess extends FreedomService
|
|||
final PlayerData playerData = plugin.pl.getData(player);
|
||||
|
||||
// Sends a message to the player if they have never joined before (or simply lack player data).
|
||||
if (!event.getPlayer().hasPlayedBefore())
|
||||
if (!event.getPlayer().hasPlayedBefore() && ConfigEntry.FIRST_JOIN_INFO_ENABLED.getBoolean())
|
||||
{
|
||||
final BukkitTask runnable = new BukkitRunnable()
|
||||
{
|
||||
|
|
|
@ -165,7 +165,8 @@ public enum ConfigEntry
|
|||
ADMIN_INFO(List.class, "admininfo"),
|
||||
VOTING_INFO(List.class, "votinginfo"),
|
||||
MASTER_BUILDER_INFO(List.class, "masterbuilderinfo"),
|
||||
FIRST_JOIN_INFO(List.class, "first_join_info"),
|
||||
FIRST_JOIN_INFO(List.class, "first_join_info.text"),
|
||||
FIRST_JOIN_INFO_ENABLED(Boolean.class, "first_join_info.enabled"),
|
||||
AUTO_ENTITY_WIPE(Boolean.class, "auto_wipe"),
|
||||
TOGGLE_CHAT(Boolean.class, "toggle_chat"),
|
||||
DEVELOPER_MODE(Boolean.class, "developer_mode"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue