summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-03-17 01:43:49 +0000
committerKHobbits <rob@khobbits.co.uk>2012-03-17 01:43:49 +0000
commit87cd6930208560b206a32ec047c75342423c940a (patch)
tree36e3b8e9db1c3fa7a100eede05fe9f2d9811a57e
parentbaadd4b1cbe132c822d5f36da52225d843c0d584 (diff)
downloadEssentials-87cd6930208560b206a32ec047c75342423c940a.tar
Essentials-87cd6930208560b206a32ec047c75342423c940a.tar.gz
Essentials-87cd6930208560b206a32ec047c75342423c940a.tar.lz
Essentials-87cd6930208560b206a32ec047c75342423c940a.tar.xz
Essentials-87cd6930208560b206a32ec047c75342423c940a.zip
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.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandwhois.java2
-rw-r--r--Essentials/src/messages.properties1
-rw-r--r--Essentials/src/messages_da.properties1
-rw-r--r--Essentials/src/messages_de.properties1
-rw-r--r--Essentials/src/messages_en.properties1
-rw-r--r--Essentials/src/messages_es.properties1
-rw-r--r--Essentials/src/messages_fr.properties1
-rw-r--r--Essentials/src/messages_nl.properties1
8 files changed, 9 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java b/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java
index f9955cfb4..8adc4c95c 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java
@@ -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))));
diff --git a/Essentials/src/messages.properties b/Essentials/src/messages.properties
index 0db1ab1b3..71922e49c 100644
--- a/Essentials/src/messages.properties
+++ b/Essentials/src/messages.properties
@@ -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}
diff --git a/Essentials/src/messages_da.properties b/Essentials/src/messages_da.properties
index 6168b7bdb..f5ce209cb 100644
--- a/Essentials/src/messages_da.properties
+++ b/Essentials/src/messages_da.properties
@@ -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}
diff --git a/Essentials/src/messages_de.properties b/Essentials/src/messages_de.properties
index 1ebac92ae..fbc93504e 100644
--- a/Essentials/src/messages_de.properties
+++ b/Essentials/src/messages_de.properties
@@ -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})
diff --git a/Essentials/src/messages_en.properties b/Essentials/src/messages_en.properties
index e7433b943..09ee97a55 100644
--- a/Essentials/src/messages_en.properties
+++ b/Essentials/src/messages_en.properties
@@ -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}
diff --git a/Essentials/src/messages_es.properties b/Essentials/src/messages_es.properties
index 9ffe1fa6c..d9add11c0 100644
--- a/Essentials/src/messages_es.properties
+++ b/Essentials/src/messages_es.properties
@@ -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}
diff --git a/Essentials/src/messages_fr.properties b/Essentials/src/messages_fr.properties
index a65e79c52..78b1b894e 100644
--- a/Essentials/src/messages_fr.properties
+++ b/Essentials/src/messages_fr.properties
@@ -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}
diff --git a/Essentials/src/messages_nl.properties b/Essentials/src/messages_nl.properties
index b21185784..9b855643a 100644
--- a/Essentials/src/messages_nl.properties
+++ b/Essentials/src/messages_nl.properties
@@ -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}