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
|
@ -482,7 +482,7 @@ public class Commands {
|
||||||
s.sendMessage(ChatColor.RED + "You don't have permission to do that.");
|
s.sendMessage(ChatColor.RED + "You don't have permission to do that.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isToggledForAll) { // Bending is toggled off for all players.
|
if (isToggledForAll) { // Bending is toggled off for all players.
|
||||||
isToggledForAll = false;
|
isToggledForAll = false;
|
||||||
for (Player player: Bukkit.getOnlinePlayers()) {
|
for (Player player: Bukkit.getOnlinePlayers()) {
|
||||||
|
@ -549,11 +549,14 @@ 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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p.getName().equalsIgnoreCase("MistPhizzle") ||
|
if (p.getName().equalsIgnoreCase("MistPhizzle") ||
|
||||||
p.getName().equalsIgnoreCase("runefist")
|
p.getName().equalsIgnoreCase("runefist")
|
||||||
|| p.getName().equalsIgnoreCase("Jacklin213")
|
|| p.getName().equalsIgnoreCase("Jacklin213")
|
||||||
|
|
Loading…
Reference in a new issue