mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-02 17:09:58 +01:00
[Feature] Make /kit list kit costs if any are set.
This commit is contained in:
parent
fbcfd4948b
commit
b7acccfc8b
@ -24,10 +24,21 @@ public class Kit
|
||||
final StringBuilder list = new StringBuilder();
|
||||
for (String kiteItem : kits.getKeys(false))
|
||||
{
|
||||
if (user == null || user.isAuthorized("essentials.kits." + kiteItem.toLowerCase(Locale.ENGLISH)))
|
||||
if (user == null)
|
||||
{
|
||||
list.append(" ").append(capitalCase(kiteItem));
|
||||
}
|
||||
else if (user.isAuthorized("essentials.kits." + kiteItem.toLowerCase(Locale.ENGLISH)))
|
||||
{
|
||||
String cost = "";
|
||||
Double costPrice = new Trade("kit-" + kiteItem.toLowerCase(Locale.ENGLISH), ess).getCommandCost(user);
|
||||
if (costPrice > 0d)
|
||||
{
|
||||
cost = _("kitCost", Util.displayCurrency(costPrice, ess));
|
||||
}
|
||||
|
||||
list.append(" ").append(capitalCase(kiteItem)).append(cost);
|
||||
}
|
||||
}
|
||||
return list.toString().trim();
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ public class Commandfeed extends EssentialsCommand
|
||||
|
||||
private void feedPlayer(CommandSender sender, Player player) throws QuietAbortException
|
||||
{
|
||||
final int amount = 20;
|
||||
final int amount = 100;
|
||||
|
||||
final FoodLevelChangeEvent flce = new FoodLevelChangeEvent(player, amount);
|
||||
ess.getServer().getPluginManager().callEvent(flce);
|
||||
|
@ -538,3 +538,4 @@ socialSpy=\u00a76SocialSpy for {0}\u00a76: {1}
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
kitCost=\ ({0})
|
||||
|
@ -541,3 +541,4 @@ socialSpy=\u00a76SocialSpy for {0}\u00a76: {1}
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
kitCost=\ ({0})
|
||||
|
@ -538,3 +538,4 @@ socialSpy=\u00a76SocialSpy for {0}\u00a76: {1}
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
kitCost=\ ({0})
|
||||
|
@ -538,3 +538,4 @@ socialSpy=\u00a76SocialSpy for {0}\u00a76: {1}
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
kitCost=\ ({0})
|
||||
|
@ -538,3 +538,4 @@ socialSpy=\u00a76SocialSpy for {0}\u00a76: {1}
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
kitCost=\ ({0})
|
||||
|
@ -538,3 +538,4 @@ socialSpy=\u00a76SocialSpy for {0}\u00a76: {1}
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
kitCost=\ ({0})
|
||||
|
@ -538,3 +538,4 @@ socialSpy=\u00a76SocialSpy for {0}\u00a76: {1}
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
kitCost=\ ({0})
|
||||
|
@ -538,3 +538,4 @@ socialSpy=\u00a76SocialSpy for {0}\u00a76: {1}
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
kitCost=\ ({0})
|
||||
|
@ -538,3 +538,4 @@ socialSpy=\u00a76SocialSpy for {0}\u00a76: {1}
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
kitCost=\ ({0})
|
||||
|
@ -538,3 +538,4 @@ socialSpy=\u00a76SocialSpy for {0}\u00a76: {1}
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
kitCost=\ ({0})
|
||||
|
@ -538,3 +538,4 @@ socialSpy=\u00a77SocialSpy dla {0}\u00a76: {1}
|
||||
setBal=\u00a7aTwoj stan konta ustawiono na {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
insufficientFunds=\u00a74Nie posiadasz wystarczajacych srodkow.
|
||||
kitCost=\ ({0})
|
||||
|
@ -537,3 +537,4 @@ socialSpy=\u00a76SocialSpy for {0}\u00a76: {1}
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
kitCost=\ ({0})
|
||||
|
@ -538,3 +538,4 @@ socialSpy=\u00a76SocialSpy for {0}\u00a76: {1}
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
kitCost=\ ({0})
|
||||
|
@ -538,3 +538,4 @@ socialSpy=\u00a76SocialSpy for {0}\u00a76: {1}
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
kitCost=\ ({0})
|
||||
|
@ -547,3 +547,4 @@ bookTitleSet=\u00a76Title of the book set to {0}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
kitCost=\ ({0})
|
||||
|
@ -547,3 +547,4 @@ bookTitleSet=\u00a76Title of the book set to {0}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
kitCost=\ ({0})
|
||||
|
@ -547,3 +547,4 @@ bookTitleSet=\u00a76Title of the book set to {0}.
|
||||
insufficientFunds=\u00a74Insufficient funds available.
|
||||
setBal=\u00a7aYour balance was set to {0}.
|
||||
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.
|
||||
kitCost=\ ({0})
|
||||
|
Loading…
Reference in New Issue
Block a user