This commit is contained in:
KHobbits 2013-05-04 18:22:55 +01:00
parent b7acccfc8b
commit 479dad9966
19 changed files with 24 additions and 23 deletions

View File

@ -22,22 +22,22 @@ public class Kit
{
final ConfigurationSection kits = ess.getSettings().getKits();
final StringBuilder list = new StringBuilder();
for (String kiteItem : kits.getKeys(false))
for (String kitItem : kits.getKeys(false))
{
if (user == null)
{
list.append(" ").append(capitalCase(kiteItem));
list.append(" ").append(capitalCase(kitItem));
}
else if (user.isAuthorized("essentials.kits." + kiteItem.toLowerCase(Locale.ENGLISH)))
else if (user.isAuthorized("essentials.kits." + kitItem.toLowerCase(Locale.ENGLISH)))
{
String cost = "";
Double costPrice = new Trade("kit-" + kiteItem.toLowerCase(Locale.ENGLISH), ess).getCommandCost(user);
Double costPrice = new Trade("kit-" + kitItem.toLowerCase(Locale.ENGLISH), ess).getCommandCost(user);
if (costPrice > 0d)
{
cost = _("kitCost", Util.displayCurrency(costPrice, ess));
}
list.append(" ").append(capitalCase(kiteItem)).append(cost);
list.append(" ").append(capitalCase(kitItem)).append(cost);
}
}
return list.toString().trim();

View File

@ -37,7 +37,7 @@ public class Commandfeed extends EssentialsCommand
throw new NotEnoughArgumentsException();
}
feedOtherPlayers(server, sender, args[1]);
feedOtherPlayers(server, sender, args[0]);
}
private void feedOtherPlayers(final Server server, final CommandSender sender, final String name) throws NotEnoughArgumentsException, QuietAbortException

View File

@ -538,3 +538,4 @@ setBal=\u00a7aYour balance was set to {0}.
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
insufficientFunds=\u00a74Insufficient funds available.
kitCost=\ ({0})
killExempt=\u00a74You can not kill {0}