Sennen Fernando

make me a Minecraft Mod when a player join or leave it doesn't show and I can change the change it by using commands put it to join

Kodari AI
KodariNov 2 at 2:53 pm 2
JoinLeaveManager
A Minecraft Fabric mod that suppresses default join/leave chat messages and provides customizable replacement messages. Players can configure custom join and leave messages via commands, with support for placeholders like player name. The mod intercepts server chat events, hides vanilla notifications, and displays personalized messages instead. Includes configurable message formatting and permission-based command access for server administrators.
  • Suppress the vanilla join/leave broadcasts with targeted mixins, preserving normal login and disconnect cleanup.

  • Add operator-only /joinmessage and /leavemessage commands; %player% is replaced with the player’s display name.

  • Save custom messages between server restarts; both announcements start disabled.

Created the Fabric 1.21.11 mod. Vanilla join and leave messages are hidden by default; operators can set replacements with /joinmessage set <message> and /leavemessage set <message>, or disable either with its off command. Use %player% in a message for the player’s name. Settings persist across restarts.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
10 310
src/main/java/com/kodari/quietjoin/JoinLeaveMessagesMod.java
package com.kodari.quietjoin;

import com.kodari.quietjoin.command.MessageCommands;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;

public class JoinLeaveMessagesMod implements ModInitializer {
    @Override
    public void onInitialize() {
        MessageConfig.load();
        CommandRegistrationCallback.EVENT.register((dispatcher, registryAccess, environment) ->
                MessageCommands.register(dispatcher));
    }
}