mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-24 10:09:50 +01:00
[FEATURE] Add configurable max nick length
This commit is contained in:
parent
aa65a2b349
commit
2ad346e84c
@ -194,4 +194,6 @@ public interface ISettings extends IConf
|
||||
long getMaxTempban();
|
||||
|
||||
public Map<String, Object> getListGroupConfig();
|
||||
|
||||
public int getMaxNickLength();
|
||||
}
|
||||
|
@ -1099,4 +1099,10 @@ public class Settings implements ISettings
|
||||
{
|
||||
return config.getLong("max-tempban-time", -1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxNickLength()
|
||||
{
|
||||
return config.getInt("max-nick-length", 16);
|
||||
}
|
||||
}
|
||||
|
@ -94,6 +94,10 @@ public class Commandnick extends EssentialsCommand
|
||||
{
|
||||
throw new Exception(_("nickNamesAlpha"));
|
||||
}
|
||||
else if (nick.length() > ess.getSettings().getMaxNickLength())
|
||||
{
|
||||
throw new Exception(_("nickTooLong"));
|
||||
}
|
||||
else if (target.getName().equalsIgnoreCase(nick))
|
||||
{
|
||||
target.setNickname(nick);
|
||||
|
@ -25,6 +25,9 @@ ops-name-color: '4'
|
||||
# The character(s) to prefix all nicknames, so that you know they are not true usernames.
|
||||
nickname-prefix: '~'
|
||||
|
||||
# The maximum length allowed in nicknames. The prefix is not included in this.
|
||||
max-nick-length: 16
|
||||
|
||||
# Disable this if you have any other plugin, that modifies the displayname of a user.
|
||||
change-displayname: true
|
||||
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a74Nicknames must be alphanumeric.
|
||||
nickNoMore=\u00a76You no longer have a nickname.
|
||||
nickOthersPermission=\u00a74You do not have permission to change the nickname of others\!
|
||||
nickSet=\u00a76Your nickname is now \u00a7c{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a74You do not have access to that command.
|
||||
noAccessPermission=\u00a74You do not have permission to access that {0}.
|
||||
noBreakBedrock=\u00a74You are not allowed to destroy bedrock.
|
||||
|
@ -281,6 +281,7 @@ nickNamesAlpha=\u00a7cNick musi byt alfanumericky.
|
||||
nickNoMore=\u00a77Uz nemas zadny nick.
|
||||
nickOthersPermission=\u00a7cNemas opravneni menit ostatnim nick.
|
||||
nickSet=\u00a77Nyni mas nickname\: \u00a7c{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a7cNemas povoleni na tento prikaz.
|
||||
noAccessPermission=\u00a7cNemas povoleni k tomuto {0}.
|
||||
noBreakBedrock=Nemas opravneni nicit bedrock.
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a7cNicknames skal v\u00e6re alfanumeriske.
|
||||
nickNoMore=\u00a7Du har ikke l\u00e6ngere et nickname.
|
||||
nickOthersPermission=\u00a7cDu har ikke tilladelse til at \u00e6ndre en andens nickname.
|
||||
nickSet=\u00a77Dit nickname er nu \u00a7c{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a7cDu har ikke adgang til denne kommando.
|
||||
noAccessPermission=\u00a7cDu har ikke tilladelse til at f\u00e5 adgang til {0}.
|
||||
noBreakBedrock=You are not allowed to destroy bedrock.
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a7cNicknamen d\u00fcrfen nur alphanumerische Zeichen enthalte
|
||||
nickNoMore=\u00a7cDu hast keinen Nicknamen mehr.
|
||||
nickOthersPermission=\u00a7cDu hast keine Rechte um den Nicknamen von anderen zu \u00e4ndern.
|
||||
nickSet=\u00a77Dein Nickname ist nun \u00a7c{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a7cDu hast keinen Zugriff auf diesen Befehl.
|
||||
noAccessPermission=\u00a7cDu hast keine Rechte, den Block {0} zu \u00f6ffnen.
|
||||
noBreakBedrock=You are not allowed to destroy bedrock.
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a74Nicknames must be alphanumeric.
|
||||
nickNoMore=\u00a76You no longer have a nickname.
|
||||
nickOthersPermission=\u00a74You do not have permission to change the nickname of others\!
|
||||
nickSet=\u00a76Your nickname is now \u00a7c{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a74You do not have access to that command.
|
||||
noAccessPermission=\u00a74You do not have permission to access that {0}.
|
||||
noBreakBedrock=\u00a74You are not allowed to destroy bedrock.
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a7cLos nombres tienen que ser alfanumericos.
|
||||
nickNoMore=\u00a77Ya no tienes un nombre de usuario.
|
||||
nickOthersPermission=\u00a7cNo tienes permiso para cambiar el nombre de usuario de otros.
|
||||
nickSet=\u00a77Tu nombre es ahora \u00a7c{0} .
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a7cNo tienes acceso a ese comando.
|
||||
noAccessPermission=\u00a7cNo tienes permisos para eso {0} .
|
||||
noBreakBedrock=No puedes romper roca madre.
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a7cLempinimen pit\u00e4\u00e4 olla aakkosista.
|
||||
nickNoMore=\u00a77Sinulla ei ole en\u00e4\u00e4 lempinime\u00e4.
|
||||
nickOthersPermission=\u00a7cSinulla ei ole oikeutta vaihtaa muiden lempinimi\u00e4
|
||||
nickSet=\u00a77Lempinimesi on nyt \u00a7c{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a7cSinulla ei ole oikeutta tuohon komentoon.
|
||||
noAccessPermission=\u00a7cSinulla ei ole oikeutta tuohon {0}.
|
||||
noBreakBedrock=Sinulla ei ole lupaa tuhota bedrock-palikoita.
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a7cLes surnoms doivent \u00eatre alphanum\u00e9riques.
|
||||
nickNoMore=\u00a7 Vous n''avez plus de surnom.
|
||||
nickOthersPermission=\u00a7cVous n''avez pas la permission de changer le surnom des autres.
|
||||
nickSet=\u00a77Votre surnom est maintenant \u00a7c{0}.
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a7cVous n''avez pas acc\u00e8s \u00e0 cette commande.
|
||||
noAccessPermission=\u00a7cVous n''avez pas la permission d''acc\u00e9der \u00e0 cette {0}.
|
||||
noBreakBedrock=Vous n''\u00eates pas autoris\u00e9s \u00e0 d\u00e9truire la bedrock.
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a7cI Nickname devono essere alfanumerici.
|
||||
nickNoMore=\u00a77Non disponi piu'' di un nickname.
|
||||
nickOthersPermission=\u00a7cNon hai il permesso di cambiare il nickname degli altri
|
||||
nickSet=\u00a77Il tuo nickname e'' ora \u00a7c{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a7cNon hai accesso a questo comando.
|
||||
noAccessPermission=\u00a7cNon hai i permessi di accesso per {0}.
|
||||
noBreakBedrock=Non sei abilitato a distruggere la bedrock.
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a7cBijnamen moeten alfanumeriek zijn.
|
||||
nickNoMore=\u00a7U heeft geen bijnaam meer.
|
||||
nickOthersPermission=\u00a7cU herft geen toestemming om de bijnaam van anderen te veranderen.
|
||||
nickSet=\u00a77Uw bijnaam is nu \u00a7c{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a7cU heeft geen toegang tot dat commando.
|
||||
noAccessPermission=\u00a7cU heeft hier geen toestemming voor {0}.
|
||||
noBreakBedrock=U heeft geen toestemming om bodemgesteente te breken.
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a74Pseudonimy musza byc alfanumeryczne.
|
||||
nickNoMore=\u00a77Nie masz juz pseudonimu.
|
||||
nickOthersPermission=\u00a7cNie masz uprawnienia do zmiany pseudonimu innym.
|
||||
nickSet=\u00a77Twoj pseudonim od teraz to \u00a7c{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a74Nie masz dostepu do tej komendy.
|
||||
noAccessPermission=\u00a74Nie masz uprawnien do dostepu do {0}.
|
||||
noBreakBedrock=\u00a74Nie masz uprawnien do niszczenia bedrocka.
|
||||
|
@ -275,6 +275,7 @@ nickNamesAlpha=\u00a74Nicks devem ser alfanum\u00c3\u00a9ricos.
|
||||
nickNoMore=\u00a76Voc\u00c3\u00aa nao tem mais um nick.
|
||||
nickOthersPermission=\u00a74Voc\u00c3\u00aa nao tem permissao para alterar o nick dos outros!
|
||||
nickSet=\u00a76Seu nick agora \u00c3\u00a9 \u00a7c{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a74Voc\u00c3\u00aa nao tem acesso a esse comando.
|
||||
noAccessPermission=\u00a74Voc\u00c3\u00aa nao tem permissao para acessar esse {0}.
|
||||
noBreakBedrock=\u00a74Voc\u00c3\u00aa nao tem permissao para quebrar bedrock.
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a74Numele trebuie sa fie alfanumeric.
|
||||
nickNoMore=\u00a76Nu mai ai nume.
|
||||
nickOthersPermission=\u00a74Nu ai permisiunea sa schimbi numele altor jucatori\!
|
||||
nickSet=\u00a76Numele tau este acum \u00a7c{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a74Nu ai acces la aceasta comanda.
|
||||
noAccessPermission=\u00a74Nu ai permisiunea la aceasta/acest {0}.
|
||||
noBreakBedrock=\u00a74Nu ai permisiunea sa spargi roca.
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a7cSmeknamn m\u00e5ste vara alfanumeriska.
|
||||
nickNoMore=\u00a77Du har inte ett smeknamn l\u00e4ngre
|
||||
nickOthersPermission=\u00a7cDu har inte tillst\u00e5nd att \u00e4ndra andras smeknamn
|
||||
nickSet=\u00a77Ditt smeknamn \u00e4r nu \u00a7c{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a7cDu har inte tillg\u00e5ng till det kommandot.
|
||||
noAccessPermission=\u00a7cDu har inte tillst\u00e5nd till att komma \u00e5t det {0}.
|
||||
noBreakBedrock=Du har inte till\u00e5telse att f\u00f6rst\u00f6ra berggrund.
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a74\u6635\u79f0\u5fc5\u987b\u4e3a\u5b57\u6bcd\u6216\u6570\u5b
|
||||
nickNoMore=\u00a76\u4f60\u4e0d\u518d\u62e5\u6709\u4e00\u4e2a\u6635\u79f0
|
||||
nickOthersPermission=\u00a74\u4f60\u6ca1\u6709\u66f4\u6539\u522b\u4eba\u6635\u79f0\u7684\u6743\u9650
|
||||
nickSet=\u00a76\u4f60\u7684\u6635\u79f0\u73b0\u5728\u662f \u00a74{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a74\u4f60\u6ca1\u6709\u4f7f\u7528\u8be5\u547d\u4ee4\u7684\u6743\u9650
|
||||
noAccessPermission=\u00a74\u4f60\u6ca1\u6709\u4f7f\u7528 {0} \u7684\u6743\u9650
|
||||
noBreakBedrock=\u00a74\u4f60\u4e0d\u80fd\u6467\u6bc1\u57fa\u5ca9\uff01
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a74\u66b1\u7a31\u5fc5\u9808\u70ba\u5b57\u6bcd\u6216\u6578\u5b
|
||||
nickNoMore=\u00a76\u4f60\u4e0d\u518d\u64c1\u6709\u4e00\u500b\u66b1\u7a31
|
||||
nickOthersPermission=\u00a74\u4f60\u6c92\u6709\u66f4\u6539\u5225\u4eba\u66b1\u7a31\u7684\u6b0a\u9650
|
||||
nickSet=\u00a76\u4f60\u7684\u66b1\u7a31\u73fe\u5728\u662f \u00a74{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a74\u4f60\u6c92\u6709\u4f7f\u7528\u8a72\u547d\u4ee4\u7684\u6b0a\u9650
|
||||
noAccessPermission=\u00a74\u4f60\u6c92\u6709\u4f7f\u7528 {0} \u7684\u6b0a\u9650
|
||||
noBreakBedrock=\u00a74\u4f60\u4e0d\u80fd\u6467\u6bc0\u57fa\u5ca9\uff01
|
||||
|
@ -276,6 +276,7 @@ nickNamesAlpha=\u00a74\u66b1\u7a31\u5fc5\u9808\u70ba\u5b57\u6bcd\u6216\u6578\u5b
|
||||
nickNoMore=\u00a76\u4f60\u4e0d\u518d\u64c1\u6709\u4e00\u500b\u66b1\u7a31
|
||||
nickOthersPermission=\u00a74\u4f60\u6c92\u6709\u66f4\u6539\u5225\u4eba\u66b1\u7a31\u7684\u8a31\u53ef\u6b0a
|
||||
nickSet=\u00a76\u4f60\u7684\u66b1\u7a31\u73fe\u5728\u662f \u00a74{0}
|
||||
nickTooLong=\u00a74That nickname is too long.
|
||||
noAccessCommand=\u00a74\u4f60\u6c92\u6709\u4f7f\u7528\u8a72\u547d\u4ee4\u7684\u8a31\u53ef\u6b0a
|
||||
noAccessPermission=\u00a74\u4f60\u6c92\u6709\u4f7f\u7528 {0} \u7684\u8a31\u53ef\u6b0a
|
||||
noBreakBedrock=\u00a74\u4f60\u4e0d\u80fd\u6467\u6bc0\u57fa\u5ca9\uff01
|
||||
|
Loading…
Reference in New Issue
Block a user