diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-03-12 15:21:37 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-03-12 15:21:37 +0000 |
commit | c0490c08902dafe6db021f8ac5c08610f3a58d9e (patch) | |
tree | c358b24f6bed617235eb2ff8982e1bcc4d1ca5be | |
parent | 2da802d4b7b73ecdacfe6a02ce9197a468c75cbc (diff) | |
download | Essentials-c0490c08902dafe6db021f8ac5c08610f3a58d9e.tar Essentials-c0490c08902dafe6db021f8ac5c08610f3a58d9e.tar.gz Essentials-c0490c08902dafe6db021f8ac5c08610f3a58d9e.tar.lz Essentials-c0490c08902dafe6db021f8ac5c08610f3a58d9e.tar.xz Essentials-c0490c08902dafe6db021f8ac5c08610f3a58d9e.zip |
New TL Key, allow formatting/colouring of help output.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/textreader/HelpInput.java | 10 | ||||
-rw-r--r-- | Essentials/src/messages.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_da.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_de.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_en.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_es.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_fr.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_nl.properties | 1 |
8 files changed, 12 insertions, 5 deletions
diff --git a/Essentials/src/com/earth2me/essentials/textreader/HelpInput.java b/Essentials/src/com/earth2me/essentials/textreader/HelpInput.java index efe66d585..6d4efd811 100644 --- a/Essentials/src/com/earth2me/essentials/textreader/HelpInput.java +++ b/Essentials/src/com/earth2me/essentials/textreader/HelpInput.java @@ -50,7 +50,7 @@ public class HelpInput implements IText final String node = "essentials." + k.getKey(); if (!ess.getSettings().isCommandDisabled(k.getKey()) && user.isAuthorized(node)) { - lines.add("§c" + k.getKey() + "§7: " + k.getValue().get(DESCRIPTION)); + lines.add(_("helpLine", k.getKey(), k.getValue().get(DESCRIPTION))); } } else @@ -69,7 +69,7 @@ public class HelpInput implements IText } if (user.isAuthorized("essentials.help." + pluginName)) { - lines.add("§c" + k.getKey() + "§7: " + value.get(DESCRIPTION)); + lines.add(_("helpLine", k.getKey(), value.get(DESCRIPTION))); } else if (permissions instanceof List && !((List<Object>)permissions).isEmpty()) { @@ -84,21 +84,21 @@ public class HelpInput implements IText } if (enabled) { - lines.add("§c" + k.getKey() + "§7: " + value.get(DESCRIPTION)); + lines.add(_("helpLine", k.getKey(), value.get(DESCRIPTION))); } } else if (permissions instanceof String && !"".equals(permissions)) { if (user.isAuthorized(permissions.toString())) { - lines.add("§c" + k.getKey() + "§7: " + value.get(DESCRIPTION)); + lines.add(_("helpLine", k.getKey(), value.get(DESCRIPTION))); } } else { if (!ess.getSettings().hidePermissionlessHelp()) { - lines.add("§c" + k.getKey() + "§7: " + value.get(DESCRIPTION)); + lines.add(_("helpLine", k.getKey(), value.get(DESCRIPTION))); } } } diff --git a/Essentials/src/messages.properties b/Essentials/src/messages.properties index 390cd3564..b41c3be0a 100644 --- a/Essentials/src/messages.properties +++ b/Essentials/src/messages.properties @@ -410,3 +410,4 @@ year=year years=years youAreHealed=\u00a77You have been healed. youHaveNewMail=\u00a7cYou have {0} messages!\u00a7f Type \u00a77/mail read\u00a7f to view your mail. +helpLine=\u00a76/{0}\u00a7f: {1} diff --git a/Essentials/src/messages_da.properties b/Essentials/src/messages_da.properties index 23a8cd46f..7973ce9f0 100644 --- a/Essentials/src/messages_da.properties +++ b/Essentials/src/messages_da.properties @@ -410,3 +410,4 @@ year=\u00e5r years=\u00e5r youAreHealed=\u00a77Du er blevet healed. Halleluja! youHaveNewMail=\u00a7cDu har {0} flaskeposter!\u00a7f Type \u00a77/mail read for at se din flaskepost. +helpLine=\u00a76/{0}\u00a7f: {1} diff --git a/Essentials/src/messages_de.properties b/Essentials/src/messages_de.properties index 3365afd38..ed3bc4285 100644 --- a/Essentials/src/messages_de.properties +++ b/Essentials/src/messages_de.properties @@ -410,3 +410,4 @@ year=Jahr years=Jahre youAreHealed=\u00a77Du wurdest geheilt. youHaveNewMail=\u00a7cDu hast {0} Nachrichten!\u00a7f Schreibe \u00a77/mail read\u00a7f um deine Nachrichten anzuzeigen. +helpLine=\u00a76/{0}\u00a7f: {1} diff --git a/Essentials/src/messages_en.properties b/Essentials/src/messages_en.properties index 171e022a0..e2582525f 100644 --- a/Essentials/src/messages_en.properties +++ b/Essentials/src/messages_en.properties @@ -410,3 +410,4 @@ year=year years=years youAreHealed=\u00a77You have been healed. youHaveNewMail=\u00a7cYou have {0} messages!\u00a7f Type \u00a77/mail read\u00a7f to view your mail. +helpLine=\u00a76/{0}\u00a7f: {1} diff --git a/Essentials/src/messages_es.properties b/Essentials/src/messages_es.properties index f33ca8b07..bbbd5e787 100644 --- a/Essentials/src/messages_es.properties +++ b/Essentials/src/messages_es.properties @@ -410,3 +410,4 @@ year=año years=años youAreHealed=\u00a77Has sido curado. youHaveNewMail=\u00a7cTienes {0} mensajes!\u00a7f Pon \u00a77/mail read\u00a7f para ver tus emails no leidos!. +helpLine=\u00a76/{0}\u00a7f: {1} diff --git a/Essentials/src/messages_fr.properties b/Essentials/src/messages_fr.properties index 420f40f46..c012a6242 100644 --- a/Essentials/src/messages_fr.properties +++ b/Essentials/src/messages_fr.properties @@ -410,3 +410,4 @@ year=ann\u00e9e years=ann\u00e9es youAreHealed=\u00a77Vous avez \u00e9t\u00e9 soign\u00e9. youHaveNewMail=\u00a7cVous avez {0} messages ! \u00a7fEntrez \u00a77/mail read\u00a7f pour voir votre courrier. +helpLine=\u00a76/{0}\u00a7f: {1} diff --git a/Essentials/src/messages_nl.properties b/Essentials/src/messages_nl.properties index 60d1caaea..66f9a74c0 100644 --- a/Essentials/src/messages_nl.properties +++ b/Essentials/src/messages_nl.properties @@ -410,3 +410,4 @@ year=jaar years=jaren youAreHealed=\u00a77Je bent genezen. youHaveNewMail=\u00a7cJe hebt {0} berichten!\u00a7f Type \u00a77/mail read\u00a7f om je berichten te bekijken. +helpLine=\u00a76/{0}\u00a7f: {1} |