Skip to content

Commit

Permalink
Add pronouns to ProfileCommand (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
TechStreetDev authored Jun 18, 2023
1 parent 585a9f1 commit 87c42c5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ protected void execute(CommandEvent event, Player player) {
String playerName = set.getString("name");
String playerUUID = set.getString("uuid");
String whois = set.getString("whois");
String pronouns = set.getString("pronouns");
Timestamp joinDate = set.getTimestamp("join_date");

String rankString;
Expand All @@ -86,6 +87,7 @@ protected void execute(CommandEvent event, Player player) {
embed.addField("Name", rankString + " " + StringUtil.display(playerName), false);
embed.addField("UUID", playerUUID, false);
embed.addField("Whois", StringUtil.display(whois.isEmpty() ? "N/A" : whois).replace("\\n", "\n"), false);
embed.addField("Pronouns", StringUtil.display(pronouns == null || pronouns.isEmpty() ? "N/A" : pronouns), false);

Rank[] ranks = RankUtil.getRanks(set);
List<String> ranksList = new ArrayList<>();
Expand Down

0 comments on commit 87c42c5

Please sign in to comment.