Add playtime to `/whois`. #1212 Courtesy of @molor.

This commit is contained in:
Ali Moghnieh 2017-06-03 09:31:53 +01:00
parent 85d0644868
commit 7c0fa46b4d
No known key found for this signature in database
GPG Key ID: F09D3A1BAF2E6D70
25 changed files with 27 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import com.earth2me.essentials.craftbukkit.SetExpFix;
import com.earth2me.essentials.utils.DateUtil;
import com.earth2me.essentials.utils.NumberUtil;
import org.bukkit.Server;
import org.bukkit.Statistic;
import java.util.Locale;
@ -32,6 +33,8 @@ public class Commandwhois extends EssentialsCommand {
sender.sendMessage(tl("whoisHunger", user.getBase().getFoodLevel(), user.getBase().getSaturation()));
sender.sendMessage(tl("whoisExp", SetExpFix.getTotalExperience(user.getBase()), user.getBase().getLevel()));
sender.sendMessage(tl("whoisLocation", user.getLocation().getWorld().getName(), user.getLocation().getBlockX(), user.getLocation().getBlockY(), user.getLocation().getBlockZ()));
long playtimeMs = System.currentTimeMillis() - (user.getBase().getStatistic(Statistic.PLAY_ONE_TICK) * 50);
sender.sendMessage(tl("whoisPlaytime", DateUtil.formatDateDiff(playtimeMs)));
if (!ess.getSettings().isEcoDisabled()) {
sender.sendMessage(tl("whoisMoney", NumberUtil.displayCurrency(user.getMoney(), ess)));
}

View File

@ -522,6 +522,7 @@ whoisMoney=\u00a76 - Money\:\u00a7r {0}
whoisMuted=\u00a76 - Muted\:\u00a7r {0}
whoisNick=\u00a76 - Nick\:\u00a7r {0}
whoisOp=\u00a76 - OP\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a7aStack of {0} worth \u00a7c{1}\u00a7a ({2} item(s) at {3} each)
worthMeta=\u00a7aStack of {0} with metadata of {1} worth \u00a7c{2}\u00a7a ({3} item(s) at {4} each)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - Penize\:\u00a7f {0}
whoisMuted=\u00a76 - Umlcen\:\u00a7f {0}
whoisNick=\u00a76 - Nick\:\u00a7f {0}
whoisOp=\u00a76 - OP\:\u00a7f {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a77Stack {0} ceny \u00a7c{1}\u00a77 ({2} kus(u) za {3} kus)
worthMeta=\u00a77Stack {0} s metadaty {1} ceny \u00a7c{2}\u00a77 ({3} kus(u) za {4} kus)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - Penge\:\u00a7r {0}
whoisMuted=\u00a76 - Gjort tavs\:\u00a7r {0}
whoisNick=\u00a76 - Nick\:\u00a7r {0}
whoisOp=\u00a76 - OP\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a7aStak af {0} med en v\u00e6rdi af \u00a7c{1}\u00a7a ({2} ting \u00e1 {3} hver)
worthMeta=\u00a7aStak af {0} med metadata af {1} med en v\u00e6rdi af \u00a7c{2}\u00a7a ({3} element(er) \u00e1 {4} hver)

View File

@ -519,6 +519,7 @@ whoisMoney=\u00a76 - Kontostand\:\u00a7r {0}
whoisMuted=\u00a76 - Stumm\:\u00a7r {0}
whoisNick=\u00a76 - Spitzname\:\u00a7r {0}
whoisOp=\u00a76 - OP\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a7aEin Stapel {0} ist \u00a7c{1}\u00a7a wert ({2} Einheiten je {3})
worthMeta=\u00a7aEin Stapel von {0} mit Metadaten {1} ist \u00a7c{2}\u00a7a wert. ({3} Einheiten je {4})

View File

@ -516,6 +516,7 @@ whoisMoney=\u00a76 - Money\:\u00a7r {0}
whoisMuted=\u00a76 - Muted\:\u00a7r {0}
whoisNick=\u00a76 - Nick\:\u00a7r {0}
whoisOp=\u00a76 - OP\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a7aStack of {0} worth \u00a7c{1}\u00a7a ({2} item(s) at {3} each)
worthMeta=\u00a7aStack of {0} with metadata of {1} worth \u00a7c{2}\u00a7a ({3} item(s) at {4} each)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a77 - Dinero\:\u00a7f {0}
whoisMuted=\u00a77 - Silenciado\:\u00a7f {0}
whoisNick=\u00a77 - Nick\:\u00a7f {0}
whoisOp=\u00a77 - OP\:\u00a7f {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\= Acerca de\:\u00a7c {0} \u00a76 \=\=\=
worth=\u00a77Pila de {0} con valor de \u00a7c{1}\u00a77 ({2} objeto(s) a {3} cada uno)
worthMeta=\u00a77Pila de {0} con metadata de {1} , con valor de \u00a7c{2}\u00a77 ({3} objeto(s) a {4} cada uno)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - Raha\:\u00a7r {0}
whoisMuted=\u00a76 - Vaigistatud\:\u00a7r {0}
whoisNick=\u00a76 - H\u00fc\u00fcdnimi\:\u00a7r {0}
whoisOp=\u00a76 - OP\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a7aStack {0}''i on v\u00e4\u00e4rt \u00a7c{1}\u00a7a ({2} ese(t)(s) asukohas {3} \u00fcks)
worthMeta=\u00a7aStack {0}''i metadataga {1} v\u00e4\u00e4rt \u00a7c{2}\u00a7a ({3} ese(t) asukohas {4} \u00fcks)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - Money\:\u00a7f {0}
whoisMuted=\u00a76 - Muted\:\u00a7f {0}
whoisNick=\u00a76 - Nick\:\u00a7f {0}
whoisOp=\u00a76 - OP\:\u00a7f {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a77Pino tavaraa "{0}" on arvoltaan \u00a7c{1}\u00a77 ({2} tavara(a) \= {3} kappale)
worthMeta=\u00a77Pino tavaraa "{0}" metadatan kanssa {1} on arvoltaan \u00a7c{2}\u00a77 ({3} tavara(a) \= {4} kappale)

View File

@ -516,6 +516,7 @@ whoisMoney=\u00a76 - Argent \:\u00a7f {0}
whoisMuted=\u00a76 - Muet \:\u00a7f {0}
whoisNick=\u00a76 - Surnom \:\u00a7f {0}
whoisOp=\u00a76 - OP \:\u00a7f {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a77Un stack de {0} vaut \u00a7c{1}\u00a77 ({2} objet(s) \u00e0 {3} chacun)
worthMeta=\u00a77Un stack de {0} de type {1} vaut \u00a7c{2}\u00a77 ({3} objet(s) \u00e0 {4} chacun)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - P\u00e9nz\:\u00a7r {0}
whoisMuted=\u00a76 - N\u00e9m\u00edtva\:\u00a7r {0}
whoisNick=\u00a76 - Nick\:\u00a7r {0}
whoisOp=\u00a76 - OP\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= KiIs\u00d6\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a7aStack of {0} worth \u00a7c{1}\u00a7a ({2} item(s) at {3} each)
worthMeta=\u00a7aStack of {0} with metadata of {1} worth \u00a7c{2}\u00a7a ({3} item(s) at {4} each)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - Denaro\:\u00a7f {0}
whoisMuted=\u00a76 - Muted\:\u00a7f {0}
whoisNick=\u00a76 - Nick\:\u00a7f {0}
whoisOp=\u00a76 - OP\:\u00a7f {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a77Pila di {0} valore \u00a7c{1}\u00a77 ({2} oggetto(i) a {3} l''uno)
worthMeta=\u00a77Pila di {0} con metadati di {1} valore \u00a7c{2}\u00a77 ({3} oggetto(i) a {4} l''uno)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a79 - \uc794\uc561\: {0}
whoisMuted=\u00a76 - \ucc44\ud305 \uae08\uc9c0\:\u00a7r {0}
whoisNick=\u00a76 - \ub2c9\ub124\uc784\:\u00a7r {0}
whoisOp=\u00a76 - \uad00\ub9ac\uc790\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a7a{0} {2}\uac1c\uc758 \uac00\uaca9\uc740 \u00a7c{1}\u00a7a \uc785\ub2c8\ub2e4. (\uc544\uc774\ud15c 1\uac1c\uc758 \uac00\uaca9\uc740 {3} \uc785\ub2c8\ub2e4.)
worthMeta=\u00a77\uacb9\uccd0\uc9c4 {0}\:{1} \ub294 \u00a7c{2}\uc758 \uac00\uce58\uac00 \uc788\uc501\ub2c8\ub2e4.\u00a77 (\uc544\uc774\ud15c {3}\ub294 \uac01 {4} \ub9cc\ud07c\uc758 \uac00\uce58)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - Balansas\:\u00a7r {0}
whoisMuted=\u00a76 - U\u017etildytas\:\u00a7r {0}
whoisNick=\u00a76 - Slapyvardis\: \u00a7r {0}
whoisOp=\u00a76 - OP\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a7aStack of {0} worth \u00a7c{1}\u00a7a ({2} item(s) at {3} each)
worthMeta=\u00a7aStack of {0} with metadata of {1} worth \u00a7c{2}\u00a7a ({3} item(s) at {4} each)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - Geld\:\u00a7f {0}
whoisMuted=\u00a76 - Gedempt\:\u00a7f {0}
whoisNick=\u00a76 - Bijnaam\:\u00a7f {0}
whoisOp=\u00a76 - OP\:\u00a7f {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7f {0} \u00a76\=\=\=\=\=\=
worth=\u00a7aStapel {0} met waarde \u00a7c{1}\u00a7a ({2} voorwerp(en) voor {3} per stuk)
worthMeta=\u00a7aStapel {0} met een metadata van {1} met waarde \u00a7c{2}\u00a7a ({3} voorwerp(en) voor {4} per stuk)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a77 - Pieniadze\:\u00a7r {0}.
whoisMuted=\u00a77 - Wyciszony\:\u00a7r {0}
whoisNick=\u00a77 - Nick\:\u00a7r {0}
whoisOp=\u00a77 - OP\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a7aStack {0} jest warty \u00a7c{1}\u00a7a ({2}rzedmiot(y) po {3} kazdy)
worthMeta=\u00a7aStack {0} z metadata {1} jest warty \u00a7c{2}\u00a7a ({3} przedmiot(y) po {4} kazdy)

View File

@ -513,6 +513,7 @@ whoisMoney=\u00A76 - Dinheiro:\u00A7r {0}
whoisMuted=\u00A76 - Silenciado:\u00A7r {0}
whoisNick=\u00A76 - Nick:\u00A7r {0}
whoisOp=\u00A76 - OP:\u00A7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00A76 ====== Quem \u00E9:\u00A7c {0} \u00A76======
worth=\u00A7aStack de {0} vale \u00A7c{1}\u00A7a ({2} a {3} cada)
worthMeta=\u00A7aStack de {0} com metadata de {1} vale \u00A7c{2}\u00A7a ({3} a {4} cada)

View File

@ -513,6 +513,7 @@ whoisMoney=\u00A76 - Dinheiro\:\u00A7r {0}
whoisMuted=\u00A76 - Silenciado\:\u00A7r {0}
whoisNick=\u00A76 - Apelido\:\u00A7r {0}
whoisOp=\u00A76 - OP\:\u00A7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00A76 \=\=\=\=\=\= Quem \u00E9\:\u00A7c {0} \u00A76\=\=\=\=\=\=
worth=\u00A7aPack de {0} vale \u00A7c{1}\u00A7a ({2} a {3} cada)
worthMeta=\u00A7aPack de {0} com metadata de {1} vale \u00A7c{2}\u00A7a ({3} a {4} cada)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - Bani\:\u00a7r {0}
whoisMuted=\u00a76 - Vorbit interzis\:\u00a7r {0}
whoisNick=\u00a76 - Nume\:\u00a7r {0}
whoisOp=\u00a76 - OP\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\= Cine este\:\u00a7c {0} \u00a76 \=\=\=
worth=\u00a7aUn stac de {0} valoreaza \u00a7c{1}\u00a7a ({2} obiect(e) la {3} fiecare)
worthMeta=\u00a7aUn stac de {0} cu metadata de {1} valoreaza \u00a7c{2}\u00a7a ({3} obiect(e) la {4} fiecare)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - \u0414\u0435\u043d\u044c\u0433\u0438\:\u00a7r {0}
whoisMuted=\u00a76 - \u0412 \u043c\u0443\u0442\u0435\:\u00a7r {0}
whoisNick=\u00a76 - \u041d\u0438\u043a\:\u00a7r {0}
whoisOp=\u00a76 - OP\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a7a\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u0442\u0430\u043a\u0430 {0} \u0441\u043e\u0441\u0442\u043e\u0432\u043b\u044f\u0435\u0442 \u00a7c{1}\u00a7a ({2} \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432 \u0437\u0430 {3} \u043a\u0430\u0436\u0434\u044b\u0439)
worthMeta=\u00a7a\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u0442\u0430\u043a\u0430 {0} \u0441 \u043c\u0435\u0442\u0434\u0430\u043d\u043d\u044b\u043c\u0438 {1} \u0441\u043e\u0441\u0442\u043e\u0432\u043b\u044f\u0435\u0442 \u00a7c{2}\u00a7a ({3} \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432 \u0437\u0430 {4} \u043a\u0430\u0436\u0434\u044b\u0439)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - Pengar\:\u00a7f {0}
whoisMuted=\u00a76 - Tystad\:\u00a7f {0}
whoisNick=\u00a76 - Smeknamn\:\u00a7f {0}
whoisOp=\u00a76 - OP\:\u00a7f {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= WhoIs\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a77Stapeln med {0} ({2} objekt) \u00e4r v\u00e4rd \u00a7c{1}\u00a77 ({3} styck)
worthMeta=\u00a77Stapeln med {0} av typ {1} ({3} objekt) \u00e4r v\u00e4rd \u00a7c{2}\u00a77 ({4} styck)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - Para\:\u00a7r {0}
whoisMuted=\u00a76 - Susturulan\:\u00a7r {0}
whoisNick=\u00a76 - Isim\:\u00a7r {0}
whoisOp=\u00a76 - OP\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= Kim\:\u00a7c {0} \u00a76\=\=\=\=\=\=
worth=\u00a7aDolusu of {0} worth \u00a7c{1}\u00a7a ({2} item(s) at {3} each)
worthMeta=\u00a7aDolusu of {0} metadata of {1} worth \u00a7c{2}\u00a7a ({3} item(s) at {4} each)

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - \u73b0\u91d1\:\u00a7r {0}
whoisMuted=\u00a76 - \u7981\u8a00\:\u00a7r {0}
whoisNick=\u00a76 - \u6635\u79f0\:\u00a7r {0}
whoisOp=\u00a76 - \u7ba1\u7406\u5458\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= \u00a7c {0} \u00a76\u7684\u8d44\u6599\=\=\=\=\=\=
worth=\u00a76\u4e00\u7ec4 {0} \u4ef7\u503c \u00a74{1}\u00a76\uff08{2} \u5355\u4f4d\u7269\u54c1,\u6bcf\u4e2a\u4ef7\u503c {3}\uff09
worthMeta=\u00a7a\u4e00\u7ec4\u526f\u7801\u4e3a {1} \u7684 {0} \u4ef7\u503c \u00a7c{2}\u00a76\uff08{3} \u5355\u4f4d\u7269\u54c1,\u6bcf\u4e2a\u4ef7\u503c {4}\uff09

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - \u73fe\u91d1\:\u00a7r {0}
whoisMuted=\u00a76 - \u7981\u8a00\:\u00a7r {0}
whoisNick=\u00a76 - \u66b1\u7a31\:\u00a7r {0}
whoisOp=\u00a76 - OP\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= \u00a7c {0} \u00a76\u7684\u8cc7\u6599\=\=\=\=\=\=
worth=\u00a76\u4e00\u7d44 {0} \u50f9\u503c \u00a74{1}\u00a76\uff08{2} \u55ae\u4f4d\u7269\u54c1,\u6bcf\u500b\u50f9\u503c {3}\uff09
worthMeta=\u00a7a\u4e00\u7d44\u526f\u78bc\u70ba {1} \u7684 {0} \u50f9\u503c \u00a7c{2}\u00a76\uff08{3} \u55ae\u4f4d\u7269\u54c1,\u6bcf\u500b\u50f9\u503c {4}\uff09

View File

@ -515,6 +515,7 @@ whoisMoney=\u00a76 - \u73fe\u91d1\:\u00a7r {0}
whoisMuted=\u00a76 - \u7981\u8a00\:\u00a7r {0}
whoisNick=\u00a76 - \u66b1\u7a31\:\u00a7r {0}
whoisOp=\u00a76 - OP\:\u00a7r {0}
whoisPlaytime=\u00a76 - Playtime\:\u00a7r {0}
whoisTop=\u00a76 \=\=\=\=\=\= \u00a7c {0} \u00a76\u7684\u8cc7\u6599\=\=\=\=\=\=
worth=\u00a76\u4e00\u7d44 {0} \u50f9\u503c \u00a74{1}\u00a76\uff08{2} \u55ae\u4f4d\u7269\u54c1,\u6bcf\u500b\u50f9\u503c {3}\uff09
worthMeta=\u00a7a\u4e00\u7d44\u526f\u78bc\u70ba {1} \u7684 {0} \u50f9\u503c \u00a7c{2}\u00a76\uff08{3} \u55ae\u4f4d\u7269\u54c1,\u6bcf\u500b\u50f9\u503c {4}\uff09