Перейти к содержимому
Mineforgian

SafeLogin

Prevents players from taking damage (namely from mobs) when logging in (mainly an issue for big modpacks.)

Загрузки
5K
Подписчики
4
Обновлён
23 октября 2025 г.
Лицензия
AGPL-3.0-only

Опубликован 23 июля 2024 г.

SafeLogin is to ensure that the player cannot be harmed when they are logging in.

It accomplishes this by setting the player to be invulnerable, invisible and flying (to prevent fluid pushing you, sinking into fluid or when you join mid air) on the server side and when pushed by a mob AGGRESIVELY teleports the player back to the center of the spawn block to make them unpushable (in the case of MOVE mode).

If you do step off the block you spawned in on (in the case of MOVE mode), enter the specified command (COMMAND mode), or exit the GUI (GUI mode), the server will remove your invulnerability, invisibility, unpushability, and flying.

Ченджлог

1.1.2Релиз1.20.1 · 23 октября 2025 г.
  • Removed Client Side requirement
  • Added a config file (in config/safelogin/config.json5) with
    • protectionType, MOVE (default), COMMAND, and GUI
      • MOVE, (mostly) the same mode as 1.0.0 but the way you are unpushable is executed differently (fully server side approach)
      • COMMAND, you must enter in a (configurable) command to disable the protection, if you attempt to move off the block, you will be stopped and prompted to enter the command
      • GUI, when attempting to leave your login block, a GUI will open and upon closing, will disable your login protection
    • delayJoinMessage, if you wish to only have the join message send when the player has disabled protection (i.e successfully loaded in)
    • command where you can set the command in which the player executes to disable protection in COMMAND Protection Type
  • Added logic to store previous user state in case (for instance) the player is in creative mode and their invulnerable boolean was set to true before SafeLogin set it to true, so when protection is disabled mobs will target and can attack and damage you in creative mode upon having protection disabled
  • Added ignoring of certain packets (attack, break, and place) when invulnerable in case someone were to try to abuse the perks of invulnerability (even if they could only hit, break or place, while staying inside 1 block)
1.0.0Релиз1.20.1 · 23 июля 2024 г.

Login protection, invulnerable (no damage), invisible (no mob tracking), un-pushable while in the same block you logged in on. You are still pushable by fluid like running water, and it will disable login protection and if you log out in an ocean, it will disable as well (moved off the block you were on, y-level), so long as you log out and log in on a solid block, you should be fine/it should work as intended, if not, open an issue.

Комментарии

Загружаем…