mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
/b display wont show abilities player cant use
This commit is contained in:
parent
86bfae12ca
commit
86707725b8
1 changed files with 66 additions and 56 deletions
|
@ -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,8 +215,10 @@ public class Commands {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
for (String st: AbilityModuleManager.airbendingabilities) {
|
for (String st: AbilityModuleManager.airbendingabilities) {
|
||||||
|
if (Methods.canBend(s.getName(), st)) {
|
||||||
s.sendMessage(Methods.getAirColor() + st);
|
s.sendMessage(Methods.getAirColor() + st);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (Arrays.asList(wateraliases).contains(args[1].toLowerCase())) {
|
if (Arrays.asList(wateraliases).contains(args[1].toLowerCase())) {
|
||||||
|
@ -225,8 +227,10 @@ public class Commands {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
for (String st: AbilityModuleManager.waterbendingabilities) {
|
for (String st: AbilityModuleManager.waterbendingabilities) {
|
||||||
|
if (Methods.canBend(s.getName(), st)) {
|
||||||
s.sendMessage(Methods.getWaterColor() + st);
|
s.sendMessage(Methods.getWaterColor() + st);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (Arrays.asList(earthaliases).contains(args[1].toLowerCase())) {
|
if (Arrays.asList(earthaliases).contains(args[1].toLowerCase())) {
|
||||||
|
@ -235,8 +239,10 @@ public class Commands {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
for (String st: AbilityModuleManager.earthbendingabilities) {
|
for (String st: AbilityModuleManager.earthbendingabilities) {
|
||||||
|
if (Methods.canBend(s.getName(), st)) {
|
||||||
s.sendMessage(Methods.getEarthColor() + st);
|
s.sendMessage(Methods.getEarthColor() + st);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (Arrays.asList(firealiases).contains(args[1].toLowerCase())) {
|
if (Arrays.asList(firealiases).contains(args[1].toLowerCase())) {
|
||||||
|
@ -245,8 +251,10 @@ public class Commands {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
for (String st: AbilityModuleManager.firebendingabilities) {
|
for (String st: AbilityModuleManager.firebendingabilities) {
|
||||||
|
if (Methods.canBend(s.getName(), st)) {
|
||||||
s.sendMessage(Methods.getFireColor() + st);
|
s.sendMessage(Methods.getFireColor() + st);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (Arrays.asList(chialiases).contains(args[1].toLowerCase())) {
|
if (Arrays.asList(chialiases).contains(args[1].toLowerCase())) {
|
||||||
|
@ -256,8 +264,10 @@ public class Commands {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String st: AbilityModuleManager.chiabilities) {
|
for (String st: AbilityModuleManager.chiabilities) {
|
||||||
|
if (Methods.canBend(s.getName(), st)) {
|
||||||
s.sendMessage(Methods.getChiColor() + st);
|
s.sendMessage(Methods.getChiColor() + st);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue