mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
Remove Case Sensitivity from /bending display
This commit is contained in:
parent
0c7efc4115
commit
937ff63bc6
1 changed files with 5 additions and 5 deletions
|
@ -207,7 +207,7 @@ public class Commands {
|
|||
|
||||
if (args.length == 2) {
|
||||
//bending display [Element]
|
||||
if (Arrays.asList(airaliases).contains(args[1])) {
|
||||
if (Arrays.asList(airaliases).contains(args[1].toLowerCase())) {
|
||||
if (AbilityModuleManager.airbendingabilities.isEmpty()) {
|
||||
s.sendMessage(ChatColor.GRAY + "There are no airbending abilities available.");
|
||||
return true;
|
||||
|
@ -217,7 +217,7 @@ public class Commands {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
if (Arrays.asList(wateraliases).contains(args[1])) {
|
||||
if (Arrays.asList(wateraliases).contains(args[1].toLowerCase())) {
|
||||
if (AbilityModuleManager.waterbendingabilities.isEmpty()) {
|
||||
s.sendMessage(ChatColor.AQUA + "There are no waterbending abilities available.");
|
||||
return true;
|
||||
|
@ -227,7 +227,7 @@ public class Commands {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
if (Arrays.asList(earthaliases).contains(args[1])) {
|
||||
if (Arrays.asList(earthaliases).contains(args[1].toLowerCase())) {
|
||||
if (AbilityModuleManager.earthbendingabilities.isEmpty()) {
|
||||
s.sendMessage(ChatColor.GREEN + "There are no earthbending abilities available.");
|
||||
return true;
|
||||
|
@ -237,7 +237,7 @@ public class Commands {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
if (Arrays.asList(firealiases).contains(args[1])) {
|
||||
if (Arrays.asList(firealiases).contains(args[1].toLowerCase())) {
|
||||
if (AbilityModuleManager.firebendingabilities.isEmpty()) {
|
||||
s.sendMessage(ChatColor.RED + "There are no firebending abilities available.");
|
||||
return true;
|
||||
|
@ -247,7 +247,7 @@ public class Commands {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
if (Arrays.asList(chialiases).contains(args[1])) {
|
||||
if (Arrays.asList(chialiases).contains(args[1].toLowerCase())) {
|
||||
if (AbilityModuleManager.chiabilities.isEmpty()) {
|
||||
s.sendMessage(ChatColor.GOLD + "There are no chiblocking abilities available.");
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue