Skip to content

Commit ee31bf3

Browse files
committed
revert to displayname as it's a component needed to be implemented later
1 parent 9a63e64 commit ee31bf3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/altherneum/fr/player/playerFirstJoin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ public void onFirstJoin(PlayerJoinEvent e) throws IOException {
5454
public void welcomeMessageEverybody(Player player) throws IOException {
5555
for (Player players : Bukkit.getOnlinePlayers()) {
5656
lang.languages lang = playerLang.getPlayerLang(player);
57-
players.sendMessage(textTranslation.Welcome(lang, player.displayName()));
57+
players.sendMessage(textTranslation.Welcome(lang, player.getDisplayName()));
5858
}
5959
}
6060

6161
public void welcomeMessageToPlayer(Player player) throws IOException {
6262
lang.languages lang = playerLang.getPlayerLang(player);
63-
player.sendMessage(textTranslation.WelcomeBack(lang, player.displayName()));
63+
player.sendMessage(textTranslation.WelcomeBack(lang, player.getDisplayName()));
6464
}
6565

6666
public void setPlayerBeta(Player player) throws IOException {

0 commit comments

Comments
 (0)