Sennen Fernando

make mod it so when a player join the server it doesn't show that player join message it only shows players leaving message when it leave and only server side

Kodari AI
KodariNov 2 at 2:09 pm 1
SilentJoin
A Minecraft Fabric mod that suppresses the default player join message when a player enters the server, while keeping the leave message visible when a player exits. The mod operates server-side only, ensuring clients do not require the mod to be installed. It intercepts the player join event and cancels the broadcast message, leaving all other server functionality untouched. This provides a cleaner, quieter server experience without removing the ability to see when players leave.

Plan:

  1. Verify the 1.21.11 server join/leave message hooks and Fabric callback signatures.

  2. Create a server-only Fabric mod that suppresses join announcements while preserving leave announcements.

  3. Include its metadata and mixin configuration.

Created a Fabric 1.21.11 server-only mod that suppresses player join announcements and keeps leave announcements unchanged. Install it on the server; it does not require clients to install the mod.

Sennen Fernando

if you play join the game it should not show the joining message

Kodari AI
KodariNov 2 at 2:11 pm 1

Yes—the server-only mod suppresses the join announcement for everyone when a player joins. Leave messages remain visible.

Sennen Fernando

if a player leave the server it should show the leaving message

Kodari AI
KodariNov 2 at 2:12 pm 1

Yes. The mod suppresses only the join announcement; the server’s separate disconnect announcement is left unchanged, so players will still see a leaving message.

Sennen Fernando

it did not work when I tried it in only shows the joining messages I need the joining messages to be invisible and make the leaving messages visible

Kodari AI
KodariNov 2 at 2:26 pm 1
  1. Check the current join-message mixin and its configuration.

  2. Verify the 1.21.11 disconnect/join message method signatures.

  3. Correct the hook so join notices are hidden and leave notices still display.

Fixed the mixin’s missing refmap configuration, which could prevent its Yarn-mapped join hook from matching on a production server. Recompile and replace the server’s mod JAR, then restart: join messages should be hidden, while leave messages remain visible.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
6 116
src/main/java/com/kodari/quietjoins/mixin/PlayerManagerMixin.java
package com.kodari.quietjoins.mixin;

import net.minecraft.network.ClientConnection;
import net.minecraft.server.PlayerManager;
import net.minecraft.server.network.ConnectedClientData;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.text.Text;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;

@Mixin(PlayerManager.class)
public abstract class PlayerManagerMixin {
    @Redirect(
            method = "onPlayerConnect(Lnet/minecraft/network/ClientConnection;Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/server/network/ConnectedClientData;)V",
            at = @At(
                    value = "INVOKE",
                    target = "Lnet/minecraft/server/PlayerManager;broadcast(Lnet/minecraft/text/Text;Z)V"
            )
    )
    private void quietjoins$suppressJoinAnnouncement(
            PlayerManager playerManager,
            Text message,
            boolean overlay
    ) {
    }
}