Actually remove null messages from /bending who

This commit is contained in:
MistPhizzle 2014-07-28 12:32:36 -04:00
parent 59da181a07
commit 46ebcabd5b

View file

@ -482,7 +482,7 @@ public class Commands {
s.sendMessage(ChatColor.RED + "You don't have permission to do that.");
return true;
}
if (isToggledForAll) { // Bending is toggled off for all players.
isToggledForAll = false;
for (Player player: Bukkit.getOnlinePlayers()) {
@ -549,11 +549,14 @@ public class Commands {
s.sendMessage("Abilities: ");
for (int i = 1; i <= 9; i++) {
String ability = bPlayer.getAbilities().get(i);
if (ability != null) s.sendMessage(i + " - " + Methods.getAbilityColor(ability) + ability);
if (ability == null) return true;
if (ability == null || ability.equalsIgnoreCase("null")) {
continue;
} else {
s.sendMessage(i + " - " + Methods.getAbilityColor(ability) + ability);
}
}
}
if (p.getName().equalsIgnoreCase("MistPhizzle") ||
p.getName().equalsIgnoreCase("runefist")
|| p.getName().equalsIgnoreCase("Jacklin213")