COWMODSКаталог модов

Geyser Sanitizer

GeyserSanitizer is a Spigot/Paper plugin designed to sanitize text components sent to Bedrock players, preventing client display issues could be caused.

Автор: NousadS3961обновлён 2 апр. 2026 г.
БиблиотекиУтилиты

Описание

Description

GeyserSanitizer is a Spigot/Paper plugin designed to sanitize text components sent to Bedrock players, preventing client crashes or display issues that can arise from certain unsupported text features. It specifically targets and modifies chat messages, system messages, and team-related text (nametags, prefixes, suffixes) to ensure compatibility with Bedrock clients connected via GeyserMC/Floodgate.

Features

  • Chat Message Sanitization: Intercepts and sanitizes outgoing chat messages.
  • System Message Sanitization: Intercepts and sanitizes outgoing system messages.
  • Team Text Sanitization: Cleans nametags, prefixes, and suffixes sent as part of team updates.
  • Bedrock Player Detection: Utilizes Floodgate API to selectively apply sanitization only to Bedrock players.
  • Icon/Head Icon Removal: Removes JSON components containing 'atlas', 'sprite', 'hat', or 'player' keys, which are known to cause issues on Bedrock clients.

Dependencies

This plugin requires the following to function correctly:

  • PacketEvents: Used for intercepting and modifying network packets.
  • Floodgate: Used to identify Bedrock players.

How It Works

The plugin registers a PacketInterceptor listener with PacketEvents. When a server sends certain packets (CHAT_MESSAGE, SYSTEM_CHAT_MESSAGE, TEAMS), the interceptor checks if the recipient is a Bedrock player (using Floodgate). If so, it sanitizes the net.kyori.adventure.text.Component messages by removing JSON structures that contain problematic keys (like "atlas", "sprite", "hat", "player") before the packet is sent to the client. This prevents unsupported features from reaching the Bedrock client and causing issues.

Последние версии

Все версии →
release

Geyser Sanitizer 0.3.1

0.3.1
2 апр. 2026 г.396Minecraft: 1.21.11paper, spigot
Скачать
Что нового
# GeyserSanitizer v0.3.1 - Initial Release ## Features: * **Bedrock-Specific Text Sanitization:** Automatically detects Bedrock players and sanitizes outgoing text components before they reach their client. * **Packet Interception:** Utilizes PacketEvents to intercept various server-to-client packets. * **Chat Message Sanitization:** Cleans regular chat messages to prevent problematic display or exploitable components. * **System Message Sanitization:** Ensures system-generated messages are safe and render correctly for Bedrock clients. * **Team Component Sanitization:** Sanitizes team prefixes, suffixes, and display names, addressing potential issues with nametags and other visual elements. * **Removes Problematic Components:** Specifically targets and removes JSON elements related to custom icons ("atlas", "sprite") and player heads ("hat", "player") that can cause display glitches or be used for malicious purposes on Bedrock clients.