add first join message
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package cc.fascinated.account;
|
||||
|
||||
import cc.fascinated.Aetheria;
|
||||
import cc.fascinated.config.Lang;
|
||||
import cc.fascinated.playercolor.PlayerColor;
|
||||
import cc.fascinated.utils.Style;
|
||||
import lombok.Getter;
|
||||
@ -74,6 +75,8 @@ public class Account {
|
||||
this.lastLogin = System.currentTimeMillis();
|
||||
this.save(false); // Save default values
|
||||
log.info("Created new account for " + this.uuid);
|
||||
|
||||
Bukkit.broadcast(Style.getMiniMessage().deserialize(Lang.FIRST_JOIN_MESSAGE.getAsString()));
|
||||
}
|
||||
|
||||
this.firstJoin = config.getLong("firstJoin");
|
||||
|
@ -25,7 +25,8 @@ public enum Lang {
|
||||
VOTE_COMMAND_LINKS("vote-command.links"),
|
||||
BLOCKED_MESSAGE("blocked-message"),
|
||||
BLOCKED_MESSAGE_ALERT("blocked-message-alert"),
|
||||
CHAT_FORMAT("chat-format");
|
||||
CHAT_FORMAT("chat-format"),
|
||||
FIRST_JOIN_MESSAGE("first-join-message");
|
||||
|
||||
/**
|
||||
* The path of the lang in the lang.yml file.
|
||||
|
@ -5,6 +5,8 @@ chat-format: "<<%chatcolor%>%name%</%chatcolor%>> <hover:show_text:Click to mess
|
||||
blocked-message: "<prefix><hover:show_text:%reason%><red>Your message has been blocked."
|
||||
blocked-message-alert: "<admin-prefix><red>%player% <grey>tried to send a blocked message: <white>%message%"
|
||||
|
||||
first-join-message: "<yellow>%player% <white>joined for the first time!"
|
||||
|
||||
help-command:
|
||||
- "<prefix>Commands:"
|
||||
- "<yellow>/kill <gray>- <white>Kills you"
|
||||
|
Reference in New Issue
Block a user