/b display wont show abilities player cant use

This commit is contained in:
MistPhizzle 2014-06-30 20:45:50 -04:00
parent 86bfae12ca
commit 86707725b8

View file

@ -153,7 +153,7 @@ public class Commands {
} }
Methods.bindAbility((Player) s, ability); Methods.bindAbility((Player) s, ability);
// s.sendMessage("Ability Bound to slot"); // s.sendMessage("Ability Bound to slot");
return true; return true;
} }
@ -192,7 +192,7 @@ public class Commands {
return true; return true;
} }
Methods.bindAbility((Player) s, ability, slot); Methods.bindAbility((Player) s, ability, slot);
// s.sendMessage("Ability Bound"); // s.sendMessage("Ability Bound");
return true; return true;
} }
} }
@ -215,7 +215,9 @@ public class Commands {
return true; return true;
} }
for (String st: AbilityModuleManager.airbendingabilities) { for (String st: AbilityModuleManager.airbendingabilities) {
s.sendMessage(Methods.getAirColor() + st); if (Methods.canBend(s.getName(), st)) {
s.sendMessage(Methods.getAirColor() + st);
}
} }
return true; return true;
} }
@ -225,7 +227,9 @@ public class Commands {
return true; return true;
} }
for (String st: AbilityModuleManager.waterbendingabilities) { for (String st: AbilityModuleManager.waterbendingabilities) {
s.sendMessage(Methods.getWaterColor() + st); if (Methods.canBend(s.getName(), st)) {
s.sendMessage(Methods.getWaterColor() + st);
}
} }
return true; return true;
} }
@ -235,7 +239,9 @@ public class Commands {
return true; return true;
} }
for (String st: AbilityModuleManager.earthbendingabilities) { for (String st: AbilityModuleManager.earthbendingabilities) {
s.sendMessage(Methods.getEarthColor() + st); if (Methods.canBend(s.getName(), st)) {
s.sendMessage(Methods.getEarthColor() + st);
}
} }
return true; return true;
} }
@ -245,7 +251,9 @@ public class Commands {
return true; return true;
} }
for (String st: AbilityModuleManager.firebendingabilities) { for (String st: AbilityModuleManager.firebendingabilities) {
s.sendMessage(Methods.getFireColor() + st); if (Methods.canBend(s.getName(), st)) {
s.sendMessage(Methods.getFireColor() + st);
}
} }
return true; return true;
} }
@ -256,7 +264,9 @@ public class Commands {
} }
for (String st: AbilityModuleManager.chiabilities) { for (String st: AbilityModuleManager.chiabilities) {
s.sendMessage(Methods.getChiColor() + st); if (Methods.canBend(s.getName(), st)) {
s.sendMessage(Methods.getChiColor() + st);
}
} }
return true; return true;
} }