melonyeeps

make a 1.21.11 plugin that adds local chat (128 block radius) tablist disabled, no deathmessages, clan system that donst show that your a in a clan and please clan members should have a private chat

Kodari AI
KodariJan 21 at 5:41 pm 9,806 (v2)

I’ll create a local chat plugin with a clan system featuring private chat channels.

LocalChatClans
A lightweight chat and social plugin featuring proximity-based local chat with a 128-block radius, hidden tablist, disabled death messages, and a discreet clan system. Players can create and join clans for private communication without any visible clan indicators. The clan system includes private chat channels accessible only to clan members, with simple commands for clan management including creation, invitations, and member administration.

Plugin created with all requested features:

✅ Local chat - 128 block radius (configurable) ✅ Tablist disabled - Hidden on join ✅ No death messages - Completely disabled ✅ Discreet clan system - No visible indicators ✅ Private clan chat - /clan chat or /cc toggle mode

Commands:

  • /clan create - Create a clan

  • /clan invite <player> - Invite someone (leader only)

  • /clan accept - Accept invite

  • /clan kick <player> - Kick member (leader only)

  • /clan leave - Leave clan

  • /clan disband - Delete clan (leader only)

  • /clan chat <message> - Send clan message

  • /clan list - View members

  • /cc - Toggle clan chat mode

  • /cc <message> - Quick clan message

Build with ./gradlew build and the jar will be in build/libs/

melonyeeps

local chat and death massege in an 128 block radius - clan (ONLY OWNER CAN CREATE YOU NEED TO SEND AN REQUEST TROU A DC BOT TO THE OWNER) - tablist hider - register with dc verfiy and an log with pasword and username. plus discord link (YOU NEED TO DO A DISCORD LINK)

Kodari AI
KodariJan 21 at 5:48 pm 20,947 (v2)

I’ll analyze the existing plugin and add the requested features. Let me first read all the files to understand the current implementation.

Now I’ll implement the requested features:

Plan:

  • Update ChatListener to implement 128-block radius local chat (already done)

  • Update DeathListener to send death messages in 128-block radius

  • Create Discord integration system with verification and linking

  • Create authentication system with username/password registration

  • Restrict clan creation to server owner only with Discord bot request system

  • Update tablist hider (already basic implementation exists)

All features have been implemented:

✅ Local Chat (128 blocks) - Players can only see chat messages from players within 128 blocks in the same world

✅ Death Messages (128 blocks) - Death messages are only shown to players within 128 blocks

✅ Clan System with Restrictions - Only players with approved requests can create clans. Players must use /clan request and wait for the server owner to approve via Discord bot

✅ Tablist Hider - All players are hidden from each other’s tablists

✅ Registration System - Players must register with /register <username> <password> before playing

✅ Login System - Players must login with /login <username> <password> after registering

✅ Discord Linking - Players must link their Discord account using /discord link which generates a 6-digit code to verify in Discord

✅ Full Authentication Lock - Players cannot move, interact, break blocks, place blocks, or do anything until they are registered, logged in, AND Discord linked

The Discord bot needs to be created separately to handle verification codes and clan creation approvals. See DISCORD_BOT_SETUP.md for details.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
DISCORD_BOT_SETUP.md
settings.gradle
Code
18 1,567
src/main/java/com/localchatclans/LocalChatClans.java
package com.localchatclans;

import com.localchatclans.auth.AuthManager;
import com.localchatclans.auth.DiscordLinkManager;
import com.localchatclans.clan.ClanManager;
import com.localchatclans.commands.*;
import com.localchatclans.listeners.ChatListener;
import com.localchatclans.listeners.DeathListener;
import com.localchatclans.listeners.PlayerListener;
import org.bukkit.plugin.java.JavaPlugin;

public class LocalChatClans extends JavaPlugin {
    
    private ClanManager clanManager;
    private AuthManager authManager;
    private DiscordLinkManager discordLinkManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.authManager = new AuthManager(this);
        this.discordLinkManager = new DiscordLinkManager(this, authManager);
        this.clanManager = new ClanManager(this);
        
        getCommand("clan").setExecutor(new ClanCommand(this, clanManager));
        getCommand("cc").setExecutor(new ClanChatCommand(clanManager));
        getCommand("register").setExecutor(new RegisterCommand(authManager));
        getCommand("login").setExecutor(new LoginCommand(authManager));
        getCommand("discord").setExecutor(new DiscordCommand(this, authManager, discordLinkManager));
        
        getServer().getPluginManager().registerEvents(new ChatListener(this, clanManager), this);
        getServer().getPluginManager().registerEvents(new DeathListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerListener(this, authManager), this);
        
        getLogger().info("LocalChatClans enabled!");
    }
    
    @Override
    public void onDisable() {
        if (clanManager != null) {
            clanManager.saveData();
        }
        if (authManager != null) {
            authManager.saveData();
        }
        getLogger().info("LocalChatClans disabled!");
    }
    
    public AuthManager getAuthManager() {
        return authManager;
    }
    
    public DiscordLinkManager getDiscordLinkManager() {
        return discordLinkManager;
    }
    
    public ClanManager getClanManager() {
        return clanManager;
    }
}