promotional bannermobile promotional banner
premium banner
A lightweight, configurable Proximity Chat solution with extensive API support for developers.

Description

Hytale Proximity Core

A distance-based chat limiter for Hytale servers.

This mod limits chat visibility to a specific radius. It is designed to serve as a standard library for distance-based chat functionality in Hytale.

Discord

Join the server to report bugs, suggest features, or just chat: >> Join Discord <<

Features

  • Proximity Chat: Players can only communicate with others within a specific range (Default: 30 blocks).
  • Global Chat: Bypass proximity using ! prefix (Requires proximitychat.global permission).
  • Chat Modes: Configure default behavior (PROXIMITY or GLOBAL).
  • Configurable: Full control over radius, formats, and messages.
  • Developer API: Includes an API for other mods.

Roleplay Core

This mod is standalone, but it pairs perfectly with Roleplay Core.

Download Roleplay Core - Roleplay command suite (/me, /do, /w, /y).


Image

Image

Developer API

This mod provides an API for sending distance-based messages, filtering chat, and managing chat modes.

Usage

// Check if API is loaded
if (ProximityChatAPI.get() != null) {
    // Send a message to players within custom radius (e.g. 100 blocks)
    ProximityChatAPI.get().broadcastMessage(sender, Message.raw("Hello World!"), 100.0);
}

Chat Modes

You can force a player into Global or Proximity mode regardless of their input prefix.

// Force player into GLOBAL mode
ProximityChatAPI.get().setChatMode(playerUuid, ChatMode.GLOBAL);

// Revert to Proximity
ProximityChatAPI.get().setChatMode(playerUuid, ChatMode.PROXIMITY);

Chat Filters

Register filters to intercept messages (e.g. for Mute systems).

ProximityChatAPI.get().registerFilter((sender, receiver, msg) -> {
    // Return false to block the message
    return !MutedPlayerManager.isMuted(sender);
});