mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
fix player's current chat group not showing on join
This commit is contained in:
@@ -431,4 +431,8 @@ public class CivChat2Manager {
|
||||
public void removeCustomName(UUID player) {
|
||||
customNames.remove(player);
|
||||
}
|
||||
|
||||
public ScoreboardHUD getScoreboardHUD() {
|
||||
return scoreboardHUD;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,6 +72,9 @@ public class CivChat2Listener implements Listener {
|
||||
p.sendMessage(playerJoinEvent.getPlayer().getDisplayName() + ChatColor.YELLOW + " has joined the game");
|
||||
}
|
||||
}
|
||||
|
||||
// Set current chat group in scoreboard
|
||||
chatman.getScoreboardHUD().updateScoreboardHUD(playerJoinEvent.getPlayer());
|
||||
|
||||
if (CivChat2.getInstance().getPluginConfig().getChatRangeWarn() && !playerJoinEvent.getPlayer().hasPlayedBefore()) {
|
||||
localWarn.add(playerJoinEvent.getPlayer().getUniqueId());
|
||||
|
||||
Reference in New Issue
Block a user