▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Limited Spectator
Limited Spectator

Limited Spectator

A lightweight NeoForge mod that introduces a restricted spectator mode for Minecraft players (fully customizable).

Оцените первым
983
2
Все версииLimited Spectator 1.21.x-1.0.1

Limited Spectator 1.21.x-1.0.1

Release06.11.2025

Список изменений

[1.0.1] - 2025-11-05

Changed

  • Updated mod initialization to use IEventBus parameter in constructor instead of deprecated @EventBusSubscriber(bus = ...) annotation
  • Modernized event registration for NeoForge 1.21.1+ compatibility
  • Replaced all System.out.println() and System.err.println() calls with proper SLF4J logging
  • Replaced printStackTrace() calls with LOGGER.error() with exception parameter for better error tracking
  • Updated NeoForge from 21.1.209 to 21.1.213 for bug fixes and security improvements

Fixed

  • Suppressed IDE warnings for event handler methods that are called via reflection
  • Suppressed deprecation warnings for mayfly ability field (awaiting NeoForge API replacement)
  • Removed redundant null check in /survival command after getPlayerOrException() call
  • Removed always-true condition checking player.connection != null && player.server != null in /survival command
  • Removed always-false null check for BlockState in onPlayerRightClickBlock event handler

Security

  • Resolved CVE-2025-24970 (Netty vulnerability, Score 7.5) by forcing Netty upgrade to 4.1.118.Final
  • Added dependency resolution strategy in build.gradle to force Netty 4.1.118.Final (from transitive 4.1.97.Final)
  • Netty handler vulnerability that could cause native crash with malformed SSL packets has been fully patched
  • Resolved CVE-2025-48924 (Apache Commons Lang3 vulnerability, Score 5.3) by forcing upgrade to 3.18.0
  • Fixed uncontrolled recursion vulnerability in ClassUtils.getClass() that could cause StackOverflowError with very long inputs
  • Upgraded from Commons Lang3 3.14.0 to 3.18.0 (from transitive dependency)

Technical

  • Removed deprecated @EventBusSubscriber with bus parameter
  • Replaced inner ModEvents class with direct IEventBus.addListener() registration
  • Added @SuppressWarnings("unused") to all event handler methods in SpectatorMod and ClientEventHandler
  • Added @SuppressWarnings("deprecation") to methods using deprecated mayfly ability field
  • Added SLF4J Logger instances to SpectatorMod, NetworkHandler, and ClientEventHandler classes
  • Converted console output to proper log levels: LOGGER.info(), LOGGER.error(), and LOGGER.debug()
  • Updated commented debug statements to use SLF4J logger with parameterized messages
  • Added Gradle dependency resolution strategy to force specific dependency versions:
    • Netty 4.1.118.Final (handler, common, buffer, transport, codec)
    • Apache Commons Lang3 3.18.0

Файлы

LimitedSpectator-1.21.1-1.0.1.jar(150.16 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.21-1.0.1

Загрузчики

NeoForge

Версии игры

1.21.1–1.21.10

Загрузок

35

Дата публикации

06.11.2025

Загрузил

ID версии

Главная