mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2024-12-28 11:04:24 +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 + ChatColor.BOLD.toString() + "Married players:");
|
||||||
to.sendMessage(ChatColor.GOLD + "Page " + (page + 1) + "/" + pages);
|
to.sendMessage(ChatColor.GOLD + "Page " + (page + 1) + "/" + pages);
|
||||||
if(Settings.GENDER_IN_LIST.value()) {
|
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) {
|
for(MData data : marriages) {
|
||||||
to.sendMessage(names.get(data.getPlayer1Id()) + ChatColor.WHITE + " + " + names.get(data.getPllayer2Id()));
|
to.sendMessage(names.get(data.getPlayer1Id()) + ChatColor.WHITE + " + " + names.get(data.getPllayer2Id()));
|
||||||
|
@ -79,7 +79,7 @@ public class ListQuery {
|
||||||
ChatColor color = ChatColor.GREEN;
|
ChatColor color = ChatColor.GREEN;
|
||||||
if(Settings.GENDER_IN_LIST.value()) {
|
if(Settings.GENDER_IN_LIST.value()) {
|
||||||
MarriagePlayer mp = db.loadPlayer(userId);
|
MarriagePlayer mp = db.loadPlayer(userId);
|
||||||
Gender gender = mp == null ? Gender.UNKNOWN : mp.getGender();
|
Gender gender = mp == null ? Gender.NONE : mp.getGender();
|
||||||
switch(gender) {
|
switch(gender) {
|
||||||
case MALE:
|
case MALE:
|
||||||
color = ChatColor.AQUA;
|
color = ChatColor.AQUA;
|
||||||
|
@ -87,7 +87,7 @@ public class ListQuery {
|
||||||
case FEMALE:
|
case FEMALE:
|
||||||
color = ChatColor.LIGHT_PURPLE;
|
color = ChatColor.LIGHT_PURPLE;
|
||||||
break;
|
break;
|
||||||
case UNKNOWN:
|
case NONE:
|
||||||
color = ChatColor.GRAY;
|
color = ChatColor.GRAY;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -133,4 +133,4 @@ public class ListQuery {
|
||||||
return null; // Complete failure
|
return null; // Complete failure
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue