A

Yo, make a fabtic mod for me in which i put mod and join a server and then set a custom message and cooldown and then that message auto sends every 1min in donut smp and when I get someones teleport request it checks automatically his stats by /stats [user] if his playtime is like less then a day or 12hours and he got not much money like less then 100k or 1m it auto accepts the tpa

Kodari AI
KodariSep 9 at 2:37 pm 2
AutoTpaGuard
A Fabric mod for Minecraft 1.21.11 that adds an automated message broadcaster and a smart teleport request evaluator. Players can set a custom message and cooldown interval, which the mod will automatically send to the server chat at the specified frequency. When a teleport request is received, the mod automatically checks the requester's stats via the /stats command, analyzing their playtime and in-game money. If the requester's playtime is under 12 hours or their money is below 100k, the mod auto-accepts the teleport request, providing a convenient and safe way to manage incoming TPA requests on servers like Donut SMP.

I’ll create a client-only Fabric 1.21.11 mod with:

  1. Persistent JSON settings for the auto-message, cooldown, and TPA thresholds.

  2. /dauto client commands to configure and toggle the features in-game.

  3. A timed chat sender and chat parser that runs /stats <player> for detected TPA requests.

  4. Automatic /tpaccept only when both playtime and money are below the configured limits.

Created the client-only Fabric 1.21.11 mod.

Features:

  • Sends a configurable chat message on a configurable cooldown.

  • Detects incoming TPA requests.

  • Runs /stats <player> automatically.

  • Executes /tpaccept only when both conditions pass:

    • Playtime under 12 hours

    • Money under 100,000

  • Saves settings to config/donutauto.json.

Commands:

Plain Text
/dauto message <your message>
/dauto cooldown <seconds>
/dauto enable
/dauto disable
/dauto tpa enable
/dauto tpa disable
/dauto maxplaytime <hours>
/dauto maxmoney <amount>
/dauto status

Example setup:

Plain Text
/dauto message Selling items - message me!
/dauto cooldown 60
/dauto enable
/dauto tpa enable
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
11 523
src/client/java/com/kodari/donutauto/DonutAutoClient.java
package com.kodari.donutauto;

import net.fabricmc.api.ClientModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class DonutAutoClient implements ClientModInitializer {
    public static final String MOD_ID = "donutauto";
    public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

    @Override
    public void onInitializeClient() {
        AutoManager.initialize();
    }
}