Hotfix for a nullPointerException in getString()

This commit is contained in:
Fabrizio La Rosa 2020-06-17 04:29:07 +02:00
parent ab0b6c6641
commit d0e1945183

View File

@ -170,7 +170,7 @@ public class AcceptCommand extends SubCommand {
if (scoreboardManager != null) {
Scoreboard scoreboard = scoreboardManager.getScoreboard(player);
scoreboard.setDisplayName(ChatColor.translateAlternateColorCodes('&',
configLoad.getString("Scoreboard.Island.Team.Displayname")));
configLoad.getString("Scoreboard.Island.Team.Displayname", "")));
if (islandManager.getVisitorsAtIsland(island).size() == 0) {
scoreboard.setDisplayList(