Language

FakeAdmin?

FakeAdmin?

Modrinth

Blocks players with nicknames similar to protected admin names

4 downloads updated 1mo ago
latest v1.0 Modrinth
Paper Purpur 1.20 – 1.20.6 ManagementSocialUtility

ENG:

A small plugin for blocking players with nicknames similar to your admins' nicknames from entering the server. The list of nicknames can be specified in config.yml (protected-names).

The check is performed as follows:

The nickname is normalized, i.e., converted to lowercase, possible special characters "_" and "." are removed, numbers are converted to letters using the LEET principle (such as 0->o, 1->i, 2->z, and so on), and repeating and consecutive letters are reduced to a single character.
If the match is exact, the player is allowed through. Your authorization plugins can then perform further checks. If the match is inexact, additional checks are performed.

Additional checks:

  1. Normalized equality. Example: admin_ and Admin.
  2. Similarity using the Damerau-Levenshtein distance. Example: admin342 and admin324.
  3. Prefix/suffix addition. Example: admintest and admin.
  4. Middle insertion. Example: TeAdminst and admin.
  5. Similar length substring. Example: adminx and admin.

The similarity threshold is configured via similarity-threshold in config.yml - the higher the value, the more lenient the check.

Commands:

/fakeadmin add <nickname> - Add a nickname to the list, saved in config

/fakeadmin remove <nickname> - Remove a nickname from the list, saved in config

/fakeadmin list - Show a list of administrator nicknames

/fakeadmin check <nickname> - Checks whether a nickname will be blocked by the plugin

/fakeadmin reload - Updates the config.

Permissions:

fakeadmin.manage - use plugin

fakeadmin.bypass - bypass verification

There is protection against false positives like Admin and Badminton.

You can create your own localization by copying one of the source files to the lang directory, translating it, and specifying its name in the configuration file. For example, you could create lang/de.yml, then specify language: de in the configuration.

RUS:

Небольшой плагин для недопуска на сервер игроков с никнеймами, похожими на ники ваших админов. Список никнеймов можно задать в config.yml (protected-names).

Проверка проводится так:

Никнейм нормализуется, т.е. приводится к нижнему регистру, убираются возможные спецсимволы "_" и ".", цифры переводятся в буквы по leet-принципу, (вроде 0->o, 1->i, 2->z и так далее), повторяющиеся и идущие подряд буквы сокращаются до одной.
При точном совпадении - игрока пропускает, дальше уже ваши плагины на авторизацию могут проводить проверки. При неточном совпадении, идут дополнительные проверки.

Дополнительные проверки:

  1. На нормализованное равенство. Пример: admin_ и Admin.
  2. На схожесть по расстоянию Дамерау-Левенштейна. Пример: admin342 и admin324.
  3. На добавление префиксов/суффиксов. Пример: admintest и admin.
  4. На вставку в середину. Пример: TeAdminst и admin.
  5. На подстроку похожей длины. Пример: adminx и admin.

Порог схожести настраивается через similarity-threshold в config.yml - чем выше, тем мягче проверка.

Команды:

/fakeadmin add <ник> - добавить никнейм в список, сохраняется в config

/fakeadmin remove <ник> - удалить никнейм из списка, изменение сохраняется в config

/fakeadmin list - показать список никнеймов администраторов

/fakeadmin check <ник> - для проверки никнейма, заблокирует ли его плагин

/fakeadmin reload - обновление по конфигу.

Права:

fakeadmin.manage - использование плагина

fakeadmin.bypass - обход проверки

Есть защита от ложных срабатываний вроде Admin и Badminton.

Можно создать свою локализацию - в скопируйте в директории lang один из исходных файлов, переведите и укажите в файле конфигурации его название. Например, можно создать lang/de.yml - тогда в конфигурации нужно указать language: de.

Versions

Release
1.0
paper, purpur · 1.20, 1.20.1, 1.20.2 · 1mo ago
4

Comments 0

No comments yet. Be the first to share your thoughts.

FAQ

How do I install FakeAdmin??

Download the file for your Minecraft version and loader from this page, then drop the .jar into your mods (or plugins) folder and launch the game.

Is FakeAdmin? free?

FakeAdmin? is free to download on Modgrid — we link straight to the official source, no paywall or bundled installer.

Which Minecraft versions does FakeAdmin? support?

Works with Paper, Purpur. Supports versions 1.20–1.20.6. See the download section on this page for the full list of supported versions and loaders.

Download FakeAdmin?

Files are served directly from the original source. Modgrid does not host or modify them.