mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-26 11:07:55 +01:00
balance top output to chat
This commit is contained in:
parent
fb8f89e6dc
commit
3898970bba
@ -7,6 +7,7 @@ import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
|
||||
public class Commandbalancetop extends EssentialsCommand
|
||||
@ -40,6 +41,7 @@ public class Commandbalancetop extends EssentialsCommand
|
||||
balances.put(u.getValue(), u.getValue().getMoney());
|
||||
}
|
||||
int count = 0;
|
||||
server.broadcastMessage(Util.format("balanceTop", max));
|
||||
for (Iterator i = Util.sortMapByValueDesc(balances).iterator(); i.hasNext();)
|
||||
{
|
||||
if (count == max)
|
||||
@ -47,7 +49,12 @@ public class Commandbalancetop extends EssentialsCommand
|
||||
break;
|
||||
}
|
||||
User key = (User)i.next();
|
||||
|
||||
server.broadcastMessage(key.getDisplayName() + ", " + Util.formatCurrency(balances.get(key)));
|
||||
if(!(sender instanceof Player))
|
||||
{
|
||||
sender.sendMessage(key.getDisplayName() + ", " + Util.formatCurrency(balances.get(key)));
|
||||
}
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ backUsageMsg = \u00a77Returning to previous location.
|
||||
backupFinished = Backup finished
|
||||
backupStarted = Backup started
|
||||
balance = \u00a77Balance: {0}
|
||||
balanceTop = $7 Top {0} balances
|
||||
banIpAddress = \u00a77Banned IP address
|
||||
bannedIpsFileError = Error reading banned-ips.txt
|
||||
bannedIpsFileNotFound = banned-ips.txt not found
|
||||
|
@ -14,6 +14,7 @@ backUsageMsg = \u00a77Returnere til tidligere placering.
|
||||
backupFinished = Backup sluttede
|
||||
backupStarted = Backup startede
|
||||
balance = \u00a77Balance: {0}
|
||||
balanceTop = $7 Top {0} saldi
|
||||
banIpAddress = \u00a77Bannede IP addresse
|
||||
bannedIpsFileError = Fejl i l\u00e6sning af banned-ips.txt
|
||||
bannedIpsFileNotFound = banned-ips.txt ikke fundet
|
||||
|
@ -12,6 +12,7 @@ backUsageMsg = \u00a77Kehre zur letzten Position zur\u00fcck.
|
||||
backupFinished = Backup beendet
|
||||
backupStarted = Backup gestartet
|
||||
balance = \u00a77Geldb\u00f6rse: {0}
|
||||
balanceTop = $7 Top {0} Guthaben
|
||||
banIpAddress = \u00a77IP-Adresse gesperrt.
|
||||
bannedIpsFileError = Fehler beim Lesen von banned-ips.txt
|
||||
bannedIpsFileNotFound = banned-ips.txt nicht gefunden
|
||||
|
@ -12,6 +12,7 @@ backUsageMsg = \u00a77Returning to previous location.
|
||||
backupFinished = Backup finished
|
||||
backupStarted = Backup started
|
||||
balance = \u00a77Balance: {0}
|
||||
balanceTop = $7 Top {0} balances
|
||||
banIpAddress = \u00a77Banned IP address
|
||||
bannedIpsFileError = Error reading banned-ips.txt
|
||||
bannedIpsFileNotFound = banned-ips.txt not found
|
||||
|
@ -12,6 +12,7 @@ backUsageMsg = \u00a77Retour a votre emplacement pr\u00e9c\u00e8dent.
|
||||
backupFinished = Backup termin\u00e9
|
||||
backupStarted = D\u00e9but du backup
|
||||
balance = \u00a77Solde: {0}
|
||||
balanceTop = $7 Top {0} soldes
|
||||
banIpAddress = \u00a77Adresse IP banni
|
||||
bannedIpsFileError = Erreur de lecture de banned-ips.txt
|
||||
bannedIpsFileNotFound = Fichier banned-ips.txt introuvable
|
||||
|
@ -13,6 +13,7 @@ backUsageMsg = \u00a77Bezig met terugkeren naar vorige locatie.
|
||||
backupFinished = Backup voltooid
|
||||
backupStarted = Backup wordt nu gemaakt
|
||||
balance = \u00a77Saldo: {0}
|
||||
balanceTop = $7 Top {0} saldi
|
||||
banIpAddress = \u00a77Verboden IP-adres
|
||||
bannedIpsFileError = Fout bij het lezen van banned-ips.txt
|
||||
bannedIpsFileNotFound = banned-ips.txt werd niet gevonden
|
||||
|
Loading…
Reference in New Issue
Block a user