mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
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:
parent
4e7ae2b5e2
commit
0b06187e71
1 changed files with 16 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue