diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandban.java b/Essentials/src/com/earth2me/essentials/commands/Commandban.java index a8ad1753f..62a7bf104 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandban.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandban.java @@ -71,7 +71,7 @@ public class Commandban extends EssentialsCommand server.getLogger().log(Level.INFO, _("playerBanned", senderName, user.getName(), banReason)); if (nomatch) { - sender.sendMessage(_("userUnknown", args[0])); + sender.sendMessage(_("userUnknown", user.getName())); } for (Player onlinePlayer : server.getOnlinePlayers()) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandseen.java b/Essentials/src/com/earth2me/essentials/commands/Commandseen.java index 7a94013e9..f5bf1bc0c 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandseen.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandseen.java @@ -67,14 +67,23 @@ public class Commandseen extends EssentialsCommand throw new Exception(_("playerNotFound")); } player.setDisplayNick(); - sender.sendMessage(_("seenOffline", player.getName(), Util.formatDateDiff(player.getLastLogout()))); + if (player.getLastLogout() > 0) + { + sender.sendMessage(_("seenOffline", player.getName(), Util.formatDateDiff(player.getLastLogout()))); + } + else { + sender.sendMessage(_("userUnknown", player.getName())); + } if (player.isBanned()) { sender.sendMessage(_("whoisBanned", showBan ? player.getBanReason() : _("true"))); } if (extra) { - sender.sendMessage(_("whoisIPAddress", player.getLastLoginAddress())); + if (!player.getLastLoginAddress().isEmpty()) + { + sender.sendMessage(_("whoisIPAddress", player.getLastLoginAddress())); + } final Location loc = player.getLogoutLocation(); if (loc != null) { diff --git a/Essentials/src/messages.properties b/Essentials/src/messages.properties index e3fcdc87e..367f18eff 100644 --- a/Essentials/src/messages.properties +++ b/Essentials/src/messages.properties @@ -462,7 +462,7 @@ antiBuildDrop=\u00a74You are not permitted to drop\u00a7c {0}\u00a74. gcWorld=\u00a76{0} "\u00a7c{1}\u00a76": \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entities. invalidHomeName=\u00a74Invalid home name! invalidWarpName=\u00a74Invalid warp name! -userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this server. +userUnknown=\u00a74Warning: The user ''\u00a7c{0}\u00a74'' has never joined this server. teleportationEnabledFor=\u00a76Teleportation enabled for {0}. teleportationDisabledFor=\u00a76Teleportation disabled for {0}. kitOnce=\u00a74You can't use that kit again. diff --git a/Essentials/src/messages_cs.properties b/Essentials/src/messages_cs.properties index 3bd4503c2..b5b69ae31 100644 --- a/Essentials/src/messages_cs.properties +++ b/Essentials/src/messages_cs.properties @@ -465,7 +465,7 @@ antiBuildDrop=\u00a74You are not permitted to drop\u00a7c {0}\u00a74. gcWorld=\u00a76{0} "\u00a7c{1}\u00a76": \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entities invalidHomeName=\u00a74Invalid home name invalidWarpName=\u00a74Invalid warp name -userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this server. +userUnknown=\u00a74Warning: The user ''\u00a7c{0}\u00a74'' has never joined this server. teleportationEnabledFor=\u00a76Teleportation enabled for {0} teleportationDisabledFor=\u00a76Teleportation disabled for {0} kitOnce=\u00a74You can't use that kit again. diff --git a/Essentials/src/messages_da.properties b/Essentials/src/messages_da.properties index a35f77949..651ab36ca 100644 --- a/Essentials/src/messages_da.properties +++ b/Essentials/src/messages_da.properties @@ -462,7 +462,7 @@ antiBuildDrop=\u00a74You are not permitted to drop\u00a7c {0}\u00a74. gcWorld=\u00a76{0} "\u00a7c{1}\u00a76": \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entities invalidHomeName=\u00a74Invalid home name invalidWarpName=\u00a74Invalid warp name -userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this server. +userUnknown=\u00a74Warning: The user ''\u00a7c{0}\u00a74'' has never joined this server. teleportationEnabledFor=\u00a76Teleportation enabled for {0} teleportationDisabledFor=\u00a76Teleportation disabled for {0} kitOnce=\u00a74You can't use that kit again. diff --git a/Essentials/src/messages_de.properties b/Essentials/src/messages_de.properties index dd2a50a3e..eb287d0a5 100644 --- a/Essentials/src/messages_de.properties +++ b/Essentials/src/messages_de.properties @@ -462,7 +462,7 @@ antiBuildDrop=\u00a74You are not permitted to drop\u00a7c {0}\u00a74. gcWorld=\u00a76{0} "\u00a7c{1}\u00a76": \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entities invalidHomeName=\u00a74Invalid home name invalidWarpName=\u00a74Invalid warp name -userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this server. +userUnknown=\u00a74Warning: The user ''\u00a7c{0}\u00a74'' has never joined this server. teleportationEnabledFor=\u00a76Teleportation enabled for {0} teleportationDisabledFor=\u00a76Teleportation disabled for {0} kitOnce=\u00a74You can't use that kit again. diff --git a/Essentials/src/messages_en.properties b/Essentials/src/messages_en.properties index e3fcdc87e..367f18eff 100644 --- a/Essentials/src/messages_en.properties +++ b/Essentials/src/messages_en.properties @@ -462,7 +462,7 @@ antiBuildDrop=\u00a74You are not permitted to drop\u00a7c {0}\u00a74. gcWorld=\u00a76{0} "\u00a7c{1}\u00a76": \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entities. invalidHomeName=\u00a74Invalid home name! invalidWarpName=\u00a74Invalid warp name! -userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this server. +userUnknown=\u00a74Warning: The user ''\u00a7c{0}\u00a74'' has never joined this server. teleportationEnabledFor=\u00a76Teleportation enabled for {0}. teleportationDisabledFor=\u00a76Teleportation disabled for {0}. kitOnce=\u00a74You can't use that kit again. diff --git a/Essentials/src/messages_es.properties b/Essentials/src/messages_es.properties index cb9edf935..4c0dc3b39 100644 --- a/Essentials/src/messages_es.properties +++ b/Essentials/src/messages_es.properties @@ -462,7 +462,7 @@ antiBuildDrop=\u00a74No se le permite botar \u00a7c {0}\u00a74. gcWorld=\u00a76{0} "\u00a7c{1}\u00a76": \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entidades invalidHomeName=\u00a74Nombre de casa invalido invalidWarpName=\u00a74Nombre de warp invalido -userUnknown=\u00a74Peligro: El jugador '\u00a7c{0}\u00a74' Nunca a ingresado a este servidor. +userUnknown=\u00a74Peligro: El jugador ''\u00a7c{0}\u00a74'' Nunca a ingresado a este servidor. teleportationEnabledFor=\u00a76Teleportation enabled for {0} teleportationDisabledFor=\u00a76Teleportation disabled for {0} kitOnce=\u00a74You can't use that kit again. diff --git a/Essentials/src/messages_fi.properties b/Essentials/src/messages_fi.properties index 00e270e7b..95242475b 100644 --- a/Essentials/src/messages_fi.properties +++ b/Essentials/src/messages_fi.properties @@ -462,7 +462,7 @@ antiBuildDrop=\u00a74You are not permitted to drop\u00a7c {0}\u00a74. gcWorld=\u00a76{0} "\u00a7c{1}\u00a76": \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entities invalidHomeName=\u00a74Invalid home name invalidWarpName=\u00a74Invalid warp name -userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this server. +userUnknown=\u00a74Warning: The user ''\u00a7c{0}\u00a74'' has never joined this server. teleportationEnabledFor=\u00a76Teleportation enabled for {0} teleportationDisabledFor=\u00a76Teleportation disabled for {0} kitOnce=\u00a74You can't use that kit again. diff --git a/Essentials/src/messages_fr.properties b/Essentials/src/messages_fr.properties index 5c9f9ed14..a90cf2655 100644 --- a/Essentials/src/messages_fr.properties +++ b/Essentials/src/messages_fr.properties @@ -462,7 +462,7 @@ antiBuildDrop=\u00a74Vous n'\u00eates pas autoris\u00e9s \u00e0 jeter\u00a7c {0} gcWorld=\u00a76{0} "\u00a7c{1}\u00a76": \u00a7c{2}\u00a76 portions, \u00a7c{3}\u00a76 entit\u00e9s invalidHomeName=\u00a74Nom de r\u00e9sindence invalide invalidWarpName=\u00a74Nom de warp invalide -userUnknown=\u00a74Attention : Le joueur '\u00a7c{0}\u00a74' n'est jamais venu sur ce serveur. +userUnknown=\u00a74Attention : Le joueur ''\u00a7c{0}\u00a74'' n''est jamais venu sur ce serveur. teleportationEnabledFor=\u00a76Teleportation enabled for {0} teleportationDisabledFor=\u00a76Teleportation disabled for {0} kitOnce=\u00a74You can't use that kit again. diff --git a/Essentials/src/messages_it.properties b/Essentials/src/messages_it.properties index 25c06e1f4..c13fe7e54 100644 --- a/Essentials/src/messages_it.properties +++ b/Essentials/src/messages_it.properties @@ -462,7 +462,7 @@ antiBuildDrop=\u00a74You are not permitted to drop\u00a7c {0}\u00a74. gcWorld=\u00a76{0} "\u00a7c{1}\u00a76": \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entities invalidHomeName=\u00a74Invalid home name invalidWarpName=\u00a74Invalid warp name -userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this server. +userUnknown=\u00a74Warning: The user ''\u00a7c{0}\u00a74'' has never joined this server. teleportationEnabledFor=\u00a76Teleportation enabled for {0} teleportationDisabledFor=\u00a76Teleportation disabled for {0} kitOnce=\u00a74You can't use that kit again. diff --git a/Essentials/src/messages_nl.properties b/Essentials/src/messages_nl.properties index 2c10208db..e37e715ec 100644 --- a/Essentials/src/messages_nl.properties +++ b/Essentials/src/messages_nl.properties @@ -462,7 +462,7 @@ antiBuildDrop=\u00a74You are not permitted to drop\u00a7c {0}\u00a74. gcWorld=\u00a76{0} "\u00a7c{1}\u00a76": \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entities invalidHomeName=\u00a74Invalid home name invalidWarpName=\u00a74Invalid warp name -userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this server. +userUnknown=\u00a74Warning: The user ''\u00a7c{0}\u00a74'' has never joined this server. teleportationEnabledFor=\u00a76Teleportation enabled for {0} teleportationDisabledFor=\u00a76Teleportation disabled for {0} kitOnce=\u00a74You can't use that kit again. diff --git a/Essentials/src/messages_pl.properties b/Essentials/src/messages_pl.properties index 65999cadd..4080179be 100644 --- a/Essentials/src/messages_pl.properties +++ b/Essentials/src/messages_pl.properties @@ -462,7 +462,7 @@ antiBuildDrop=\u00a74You are not permitted to drop\u00a7c {0}\u00a74. gcWorld=\u00a76{0} "\u00a7c{1}\u00a76": \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entities invalidHomeName=\u00a74Invalid home name invalidWarpName=\u00a74Invalid warp name -userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this server. +userUnknown=\u00a74Warning: The user ''\u00a7c{0}\u00a74'' has never joined this server. teleportationEnabledFor=\u00a76Teleportation enabled for {0} teleportationDisabledFor=\u00a76Teleportation disabled for {0} kitOnce=\u00a74You can't use that kit again. diff --git a/Essentials/src/messages_pt.properties b/Essentials/src/messages_pt.properties index 8ad7cda4e..ecbf99296 100644 --- a/Essentials/src/messages_pt.properties +++ b/Essentials/src/messages_pt.properties @@ -462,7 +462,7 @@ antiBuildDrop=\u00a74You are not permitted to drop\u00a7c {0}\u00a74. gcWorld=\u00a76{0} "\u00a7c{1}\u00a76": \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entities invalidHomeName=\u00a74Invalid home name invalidWarpName=\u00a74Invalid warp name -userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this server. +userUnknown=\u00a74Warning: The user ''\u00a7c{0}\u00a74'' has never joined this server. teleportationEnabledFor=\u00a76Teleportation enabled for {0} teleportationDisabledFor=\u00a76Teleportation disabled for {0} kitOnce=\u00a74You can't use that kit again. diff --git a/Essentials/src/messages_se.properties b/Essentials/src/messages_se.properties index b23bc2afc..687e58a35 100644 --- a/Essentials/src/messages_se.properties +++ b/Essentials/src/messages_se.properties @@ -462,7 +462,7 @@ antiBuildDrop=\u00a74Du har inte till\u00e5telse att kasta ut\u00a7c {0}\u00a74. gcWorld=\u00a76{0} "\u00a7c{1}\u00a76": \u00a7c{2}\u00a76 bitar, \u00a7c{3}\u00a76 enheter invalidHomeName=\u00a74Ogiltigt hemnamn invalidWarpName=\u00a74Ogiltigt warpnamn -userUnknown=\u00a74Varning: Anv\u00e4ndaren '\u00a7c{0}\u00a74' har aldrig varit inne p\u00e5 denna server tidigare. +userUnknown=\u00a74Varning: Anv\u00e4ndaren ''\u00a7c{0}\u00a74'' har aldrig varit inne p\u00e5 denna server tidigare. teleportationEnabledFor=\u00a76TTeleportering aktiverat f\u00f6r {0} teleportationDisabledFor=\u00a76Teleportering inaktiverat f\u00f6r {0} kitOnce=\u00a74Du kan inte av\u00e4nda det kitet igen.