Added TL key for ban syntax,

Default message: "Banned: <reason>"
Default reason: The Ban Hammer has spoken!
Optional 2nd param to banReason, {1}, will contain user who made the ban.
Example use: "banReason=Banned for {0} by {1}"
This commit is contained in:
KHobbits 2012-06-16 17:10:47 +01:00
parent 4e5e5a9684
commit 0a9c88a990
12 changed files with 14 additions and 4 deletions

View File

@ -44,15 +44,14 @@ public class Commandban extends EssentialsCommand
String banReason;
if (args.length > 1)
{
banReason = getFinalArg(args, 1);
user.setBanReason(banReason);
banReason = _("banFormat", getFinalArg(args, 1), sender.getName());
}
else
{
banReason = _("defaultBanReason");
user.setBanReason("");
banReason = _("banFormat", _("defaultBanReason"), sender.getName());
}
user.setBanReason(banReason);
user.setBanned(true);
user.kickPlayer(banReason);
final String senderName = sender instanceof Player ? ((Player)sender).getDisplayName() : Console.NAME;

View File

@ -441,3 +441,4 @@ years=years
youAreHealed=\u00a77You have been healed.
youHaveNewMail=\u00a7cYou have {0} messages!\u00a7f Type \u00a77/mail read\u00a7f to view your mail.
hatRemoved=\u00a7eYour hat has been removed.
banFormat=Banned: {0}

View File

@ -444,3 +444,4 @@ years=roky
youAreHealed=\u00a77Byl jsi uzdraven.
youHaveNewMail=\u00a7cMas {0} zprav!\u00a7f Napis \u00a77/mail read\u00a7f aby jsi si precetl sve zpravy.
hatRemoved=\u00a7eYour hat has been removed.
banFormat=Banned: {0}

View File

@ -441,3 +441,4 @@ years=\u00e5r
youAreHealed=\u00a77Du er blevet healed. Halleluja!
youHaveNewMail=\u00a7cDu har {0} flaskeposter!\u00a7f Type \u00a77/mail read for at se din flaskepost.
hatRemoved=\u00a7eYour hat has been removed.
banFormat=Banned: {0}

View File

@ -441,3 +441,4 @@ years=Jahre
youAreHealed=\u00a77Du wurdest geheilt.
youHaveNewMail=\u00a7cDu hast {0} Nachrichten!\u00a7f Schreibe \u00a77/mail read\u00a7f um deine Nachrichten anzuzeigen.
hatRemoved=\u00a7eYour hat has been removed.
banFormat=Banned: {0}

View File

@ -441,3 +441,4 @@ years=years
youAreHealed=\u00a77You have been healed.
youHaveNewMail=\u00a7cYou have {0} messages!\u00a7f Type \u00a77/mail read\u00a7f to view your mail.
hatRemoved=\u00a7eYour hat has been removed.
banFormat=Banned: {0}

View File

@ -441,3 +441,4 @@ years=a&ntilde;os
youAreHealed=\u00a77Has sido curado.
youHaveNewMail=\u00a7cTienes {0} mensajes!\u00a7f Pon \u00a77/mail read\u00a7f para ver tus emails no leidos!.
hatRemoved=\u00a7eYour hat has been removed.
banFormat=Banned: {0}

View File

@ -441,3 +441,4 @@ years=ann\u00e9es
youAreHealed=\u00a77Vous avez \u00e9t\u00e9 soign\u00e9.
youHaveNewMail=\u00a7cVous avez {0} messages ! \u00a7fEntrez \u00a77/mail read\u00a7f pour voir votre courrier.
hatRemoved=\u00a7eYour hat has been removed.
banFormat=Banned: {0}

View File

@ -441,3 +441,4 @@ years=anni
youAreHealed=\u00a77Sei stato curato.
youHaveNewMail=\u00a7cHai {0} messaggi!\u00a7f digita \u00a77/mail read\u00a7f per consultare la tua mail.
hatRemoved=\u00a7eYour hat has been removed.
banFormat=Banned: {0}

View File

@ -441,3 +441,4 @@ years=jaren
youAreHealed=\u00a77Je bent genezen.
youHaveNewMail=\u00a7cJe hebt {0} berichten!\u00a7f Type \u00a77/mail read\u00a7f om je berichten te bekijken.
hatRemoved=\u00a7eYour hat has been removed.
banFormat=Banned: {0}

View File

@ -441,3 +441,4 @@ years=lat
youAreHealed=\u00a77Zostales/as uleczony/na.
youHaveNewMail=\u00a7cMasz {0} wiadomosci!\u00a7f napisz \u00a77/mail read\u00a7f aby je przeczytac.
hatRemoved=\u00a7eYour hat has been removed.
banFormat=Banned: {0}

View File

@ -441,3 +441,4 @@ years=anos
youAreHealed=\u00a77Voc\u00ea foi curado.
youHaveNewMail=\u00a7cVoc\u00ea tem {0} mensagens!\u00a7f Digite \u00a77/mail read\u00a7f para ver seu email.
hatRemoved=\u00a7eYour hat has been removed.
banFormat=Banned: {0}