mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-25 10:38:00 +01:00
cleanup
This commit is contained in:
parent
b7acccfc8b
commit
479dad9966
@ -22,22 +22,22 @@ public class Kit
|
|||||||
{
|
{
|
||||||
final ConfigurationSection kits = ess.getSettings().getKits();
|
final ConfigurationSection kits = ess.getSettings().getKits();
|
||||||
final StringBuilder list = new StringBuilder();
|
final StringBuilder list = new StringBuilder();
|
||||||
for (String kiteItem : kits.getKeys(false))
|
for (String kitItem : kits.getKeys(false))
|
||||||
{
|
{
|
||||||
if (user == null)
|
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 = "";
|
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)
|
if (costPrice > 0d)
|
||||||
{
|
{
|
||||||
cost = _("kitCost", Util.displayCurrency(costPrice, ess));
|
cost = _("kitCost", Util.displayCurrency(costPrice, ess));
|
||||||
}
|
}
|
||||||
|
|
||||||
list.append(" ").append(capitalCase(kiteItem)).append(cost);
|
list.append(" ").append(capitalCase(kitItem)).append(cost);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return list.toString().trim();
|
return list.toString().trim();
|
||||||
|
@ -37,7 +37,7 @@ public class Commandfeed extends EssentialsCommand
|
|||||||
throw new NotEnoughArgumentsException();
|
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
|
private void feedOtherPlayers(final Server server, final CommandSender sender, final String name) throws NotEnoughArgumentsException, QuietAbortException
|
||||||
|
@ -538,3 +538,4 @@ setBal=\u00a7aYour balance was set to {0}.
|
|||||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||||
insufficientFunds=\u00a74Insufficient funds available.
|
insufficientFunds=\u00a74Insufficient funds available.
|
||||||
kitCost=\ ({0})
|
kitCost=\ ({0})
|
||||||
|
killExempt=\u00a74You can not kill {0}
|
||||||
|
Loading…
Reference in New Issue
Block a user