Additions to Cmd Class - See extended Description

* Added Non valid element message for /bending display
* Added Abilities to display when using /bending who <player>
This commit is contained in:
jack lin 2014-07-21 20:54:07 +12:00
parent 4e7ae2b5e2
commit 0b06187e71

View file

@ -407,6 +407,14 @@ public class Commands {
}
}
return true;
} else {
s.sendMessage(ChatColor.RED + "Not a valid Element." + ChatColor.WHITE + " Elements: " +
Methods.getAirColor() + "Air" +
Methods.getEarthColor() + "Earth" +
Methods.getFireColor() + "Fire" +
Methods.getWaterColor() + "Water" +
Methods.getChiColor() + "Chi");
}
}
if (args.length == 1) {
@ -497,6 +505,14 @@ public class Commands {
if (Methods.isBender(un, Element.Chi)) {
s.sendMessage(Methods.getChiColor() + "- ChiBlocker");
}
BendingPlayer bPlayer = Methods.getBendingPlayer(un);
if (bPlayer != null) {
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);
}
}
return true;
}
if (args.length == 1) {