mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Actually remove null messages from /bending who
This commit is contained in:
parent
59da181a07
commit
46ebcabd5b
1 changed files with 7 additions and 4 deletions
|
@ -549,8 +549,11 @@ public class Commands {
|
||||||
s.sendMessage("Abilities: ");
|
s.sendMessage("Abilities: ");
|
||||||
for (int i = 1; i <= 9; i++) {
|
for (int i = 1; i <= 9; i++) {
|
||||||
String ability = bPlayer.getAbilities().get(i);
|
String ability = bPlayer.getAbilities().get(i);
|
||||||
if (ability != null) s.sendMessage(i + " - " + Methods.getAbilityColor(ability) + ability);
|
if (ability == null || ability.equalsIgnoreCase("null")) {
|
||||||
if (ability == null) return true;
|
continue;
|
||||||
|
} else {
|
||||||
|
s.sendMessage(i + " - " + Methods.getAbilityColor(ability) + ability);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue