mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-12 13:19:33 +00:00
Merge branch 'master' of github.com:khobbits/Essentials
This commit is contained in:
commit
5a1ea77019
|
@ -45,6 +45,7 @@ public class Commandrepair extends EssentialsCommand
|
|||
}
|
||||
|
||||
String itemName = item.getType().toString().toLowerCase().replace('_', ' ');
|
||||
charge(user);
|
||||
user.sendMessage(Util.format("repair", itemName));
|
||||
}
|
||||
else if (args[0].equalsIgnoreCase("all"))
|
||||
|
@ -54,9 +55,9 @@ public class Commandrepair extends EssentialsCommand
|
|||
|
||||
String armor = repairItems(user.getInventory().getArmorContents());
|
||||
|
||||
if(armor.length() > 0)
|
||||
if (armor.length() > 0)
|
||||
{
|
||||
if(itemList.length() > 0)
|
||||
if (itemList.length() > 0)
|
||||
{
|
||||
itemList.append(", ");
|
||||
}
|
||||
|
@ -70,6 +71,7 @@ public class Commandrepair extends EssentialsCommand
|
|||
}
|
||||
else
|
||||
{
|
||||
charge(user);
|
||||
user.sendMessage(Util.format("repair", itemList.toString()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue