mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2024-12-28 02:54:21 +00:00
Update ListQuery.java
This commit is contained in:
parent
422ebed057
commit
cd63b5bae3
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue