mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-04 11:36:24 +00:00
Adding Exp to /whois, shows total exp and ingame level.
Due to the way minecraft calculates levels (flawed formula), its possible to not match calculated level.
This commit is contained in:
parent
baadd4b1cb
commit
87cd693020
8 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,7 @@ package com.earth2me.essentials.commands;
|
|||
import static com.earth2me.essentials.I18n._;
|
||||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.Util;
|
||||
import com.earth2me.essentials.craftbukkit.SetExpFix;
|
||||
import java.util.Locale;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
@ -54,6 +55,7 @@ public class Commandwhois extends EssentialsCommand
|
|||
sender.sendMessage("");
|
||||
sender.sendMessage(_("whoisIs", user.getDisplayName(), user.getName()));
|
||||
sender.sendMessage(_("whoisHealth", user.getHealth()));
|
||||
sender.sendMessage(_("whoisExp", SetExpFix.getTotalExperience(user), user.getLevel()));
|
||||
sender.sendMessage(_("whoisOP", (user.isOp() ? _("true") : _("false"))));
|
||||
sender.sendMessage(_("whoisGod", (user.isGodModeEnabled() ? _("true") : _("false"))));
|
||||
sender.sendMessage(_("whoisGamemode", _(user.getGameMode().toString().toLowerCase(Locale.ENGLISH))));
|
||||
|
|
|
@ -397,6 +397,7 @@ weatherStormFor=\u00a77You set the weather to storm in {0} for {1} seconds
|
|||
weatherSun=\u00a77You set the weather to sun in {0}
|
||||
weatherSunFor=\u00a77You set the weather to sun in {0} for {1} seconds
|
||||
whoisBanned=\u00a79 - Banned: {0}
|
||||
whoisExp=\u00a79 - Exp: {0} (Level {1})
|
||||
whoisGamemode=\u00a79 - Gamemode: {0}
|
||||
whoisGeoLocation=\u00a79 - Location: {0}
|
||||
whoisGod=\u00a79 - God mode: {0}
|
||||
|
|
|
@ -397,6 +397,7 @@ weatherStormFor=\u00a77Du har sat vejret til ''storm'' i {0} i {1} sekunder
|
|||
weatherSun=\u00a77Du har sat vejret til ''sol'' i {0}
|
||||
weatherSunFor=\u00a77Du har sat vejret til ''sol'' i {0} i {1} sekunder
|
||||
whoisBanned=\u00a79 - Banned: {0}
|
||||
whoisExp=\u00a79 - Exp: {0} (Level {1})
|
||||
whoisGamemode=\u00a79 - Gamemode: {0}
|
||||
whoisGeoLocation=\u00a79 - Placering: {0}
|
||||
whoisGod=\u00a79 - God mode: {0}
|
||||
|
|
|
@ -416,3 +416,4 @@ year=Jahr
|
|||
years=Jahre
|
||||
youAreHealed=\u00a77Du wurdest geheilt.
|
||||
youHaveNewMail=\u00a7cDu hast {0} Nachrichten!\u00a7f Schreibe \u00a77/mail read\u00a7f um deine Nachrichten anzuzeigen.
|
||||
whoisExp=\u00a79 - Exp: {0} (Level {1})
|
||||
|
|
|
@ -397,6 +397,7 @@ weatherStormFor=\u00a77You set the weather to storm in {0} for {1} seconds
|
|||
weatherSun=\u00a77You set the weather to sun in {0}
|
||||
weatherSunFor=\u00a77You set the weather to sun in {0} for {1} seconds
|
||||
whoisBanned=\u00a79 - Banned: {0}
|
||||
whoisExp=\u00a79 - Exp: {0} (Level {1})
|
||||
whoisGamemode=\u00a79 - Gamemode: {0}
|
||||
whoisGeoLocation=\u00a79 - Location: {0}
|
||||
whoisGod=\u00a79 - God mode: {0}
|
||||
|
|
|
@ -397,6 +397,7 @@ weatherStormFor=\u00a77Has establecido el tiempo a tormenta en este {1} durante
|
|||
weatherSun=\u00a77Has establecido el tiempo a sol en este mundo.
|
||||
weatherSunFor=\u00a77Has establecido el tiempo a sol en este {1} durante {0} segundos.
|
||||
whoisBanned=\u00a79 - Banned: {0}
|
||||
whoisExp=\u00a79 - Exp: {0} (Level {1})
|
||||
whoisGamemode=\u00a79 - Gamemode: {0}
|
||||
whoisGeoLocation=\u00a79 - Localizacion: {0}
|
||||
whoisGod=\u00a79 - God mode: {0}
|
||||
|
|
|
@ -397,6 +397,7 @@ weatherStormFor=\u00a77Vous avez programm\u00e9 l''orage dans {0} pour {1} secon
|
|||
weatherSun=\u00a77Vous avez programm\u00e9 le beau temps dans {0}
|
||||
weatherSunFor=\u00a77Vous avez programm\u00e9 le beau temps dans {0} pour {1} secondes.
|
||||
whoisBanned=\u00a79 - Banni : {0}
|
||||
whoisExp=\u00a79 - Exp: {0} (Level {1})
|
||||
whoisGamemode=\u00a79 - Mode de jeu : {0}
|
||||
whoisGeoLocation=\u00a79 - Emplacement : {0}
|
||||
whoisGod=\u00a79 - Mode Dieu : {0}
|
||||
|
|
|
@ -397,6 +397,7 @@ weatherStormFor=\u00a77Je hebt het weer in de {0} naar storm gezet voor {1} seco
|
|||
weatherSun=\u00a77Je hebt het weer naar zon gezet in de {0}
|
||||
weatherSunFor=\u00a77Je hebt het weer in de {0} naar zon gezet voor {1} seconde
|
||||
whoisBanned=\u00a79 - Banned: {0}
|
||||
whoisExp=\u00a79 - Exp: {0} (Level {1})
|
||||
whoisGamemode=\u00a79 - Gamemode: {0}
|
||||
whoisGeoLocation=\u00a79 - Locatie: {0}
|
||||
whoisGod=\u00a79 - God mode: {0}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue