Update ListQuery.java

This commit is contained in:
DragonSlayer2189 2020-11-29 21:51:25 -05:00 committed by GitHub
parent 422ebed057
commit cd63b5bae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ public class ListQuery {
to.sendMessage(ChatColor.GOLD + ChatColor.BOLD.toString() + "Married players:");
to.sendMessage(ChatColor.GOLD + "Page " + (page + 1) + "/" + pages);
if(Settings.GENDER_IN_LIST.value()) {
to.sendMessage(ChatColor.translateAlternateColorCodes('&', "&bmale &f- &dfemale &f- &7unknown"));
to.sendMessage(ChatColor.translateAlternateColorCodes('&', "&bmale &f- &dfemale &f- &7none"));
}
for(MData data : marriages) {
to.sendMessage(names.get(data.getPlayer1Id()) + ChatColor.WHITE + " + " + names.get(data.getPllayer2Id()));
@ -79,7 +79,7 @@ public class ListQuery {
ChatColor color = ChatColor.GREEN;
if(Settings.GENDER_IN_LIST.value()) {
MarriagePlayer mp = db.loadPlayer(userId);
Gender gender = mp == null ? Gender.UNKNOWN : mp.getGender();
Gender gender = mp == null ? Gender.NONE : mp.getGender();
switch(gender) {
case MALE:
color = ChatColor.AQUA;
@ -87,7 +87,7 @@ public class ListQuery {
case FEMALE:
color = ChatColor.LIGHT_PURPLE;
break;
case UNKNOWN:
case NONE:
color = ChatColor.GRAY;
break;
}
@ -133,4 +133,4 @@ public class ListQuery {
return null; // Complete failure
}
}
}
}