mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-11 18:02:04 +01:00
added charge command
fixed formatting
This commit is contained in:
parent
69b76b810c
commit
d14f278ecf
@ -45,6 +45,7 @@ public class Commandrepair extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
String itemName = item.getType().toString().toLowerCase().replace('_', ' ');
|
String itemName = item.getType().toString().toLowerCase().replace('_', ' ');
|
||||||
|
charge(user);
|
||||||
user.sendMessage(Util.format("repair", itemName));
|
user.sendMessage(Util.format("repair", itemName));
|
||||||
}
|
}
|
||||||
else if (args[0].equalsIgnoreCase("all"))
|
else if (args[0].equalsIgnoreCase("all"))
|
||||||
@ -54,9 +55,9 @@ public class Commandrepair extends EssentialsCommand
|
|||||||
|
|
||||||
String armor = repairItems(user.getInventory().getArmorContents());
|
String armor = repairItems(user.getInventory().getArmorContents());
|
||||||
|
|
||||||
if(armor.length() > 0)
|
if (armor.length() > 0)
|
||||||
{
|
{
|
||||||
if(itemList.length() > 0)
|
if (itemList.length() > 0)
|
||||||
{
|
{
|
||||||
itemList.append(", ");
|
itemList.append(", ");
|
||||||
}
|
}
|
||||||
@ -70,6 +71,7 @@ public class Commandrepair extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
charge(user);
|
||||||
user.sendMessage(Util.format("repair", itemList.toString()));
|
user.sendMessage(Util.format("repair", itemList.toString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user