Clean up /bending who so it doesn't show null slots

(Credit goes to AlexTheCoder)
This commit is contained in:
MistPhizzle 2014-07-28 11:36:17 -04:00
parent bad3c187a2
commit a3fbf6ccd1

View file

@ -544,6 +544,7 @@ public class Commands {
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) s.sendMessage(i + " - " + Methods.getAbilityColor(ability) + ability);
if (ability == null) return true;
} }
} }
return true; return true;