Code cleanup

This commit is contained in:
2022-01-30 15:03:47 -06:00
parent d4761d4386
commit 4a05d90c17
25 changed files with 191 additions and 97 deletions

View File

@ -44,7 +44,8 @@ public class NameHistoryCMD extends PlexCommand
if (offlinePlayer != null)
{
uuid = offlinePlayer.getUniqueId();
} else
}
else
{
uuid = MojangUtils.getUUID(username);
}
@ -68,7 +69,8 @@ public class NameHistoryCMD extends PlexCommand
.append(Component.text("-").color(NamedTextColor.DARK_GRAY))
.append(Component.space())
.append(Component.text(DATE_FORMAT.format(entry.getValue())).color(NamedTextColor.GOLD)));
} else
}
else
{
historyList.add(
Component.text(entry.getKey()).color(NamedTextColor.GOLD)