✨ Key Features
- Ntfy Integration: Get mobile/desktop notifications when you disconnect or reconnect.
- Auto-Reconnect: No more manual clicking! The mod handles the reconnect loop for you.
- Visual Countdown: See exactly when the next connection attempt will happen.
- Randomized Jitter: Avoid server flags with slightly randomized reconnection intervals.
- Auto-Join Last Server: Automatically jump back into your favorite server on game startup.
- Auto-Commands: Run custom commands (like
/login or /home) automatically upon joining.
- Repeating Commands: Set commands to loop at a specific frequency (perfect for anti-AFK).
- Server Profiles: Create specific command sets and safety rules for different server IPs.
- Safety Guardrails: Anti-spam limits (Max runs per hour) and "Run Once per Session" options.
- Remote Control: Stop the auto-reconnect loop remotely via Ntfy commands.
- GUI Settings: A beautiful configuration screen powered by Cloth Config (accessible via Mod Menu).
⚙️ Configuration
The mod can be configured through the Mod Menu settings screen or via slash commands:
/autoreconnect topic <name>: Quickly set your Ntfy topic. (or set your topic in the GUI)
- DONT FORGET TO CHANGE THE DEFUALT TOPIC...
/autoreconnect debug_disconnect: Test your reconnect flow instantly.
🤖 Auto-Command System
You can configure the mod to automatically run commands (like /home, /login, or /message) whenever you join a server.
1. Global Commands
- Where to find: Settings -> Global Join Commands
- Usage: These commands run every time you join any server.
- Settings:
- Interval: Time between each command in the list.
- Auto-Reconnect Only: If enabled, commands only run if the mod reconnected you (won't run if you join manually).
- Enable Repeating: If enabled, the list of commands will loop continuously.
- Repeat Frequency: How often (in seconds) the loop repeats.
2. Custom Server Profiles
- Where to find: Settings -> Custom Server Profiles
- Usage: Create a profile using a server's IP address (e.g.,
play.example.com) to run commands specific to that server.
- Safety Guards:
- Run Once per Session: Commands only run the first time you join per game session.
- Safety Limit (Max/hr): Prevents the mod from running commands more than X times in an hour (anti-ban measure).
💡 Tips
- Command Format: You don't need to include the leading
/ (the mod adds it automatically if missing).
- Repeating Safety: All repeating commands are automatically cancelled when you disconnect, ensuring you don't spam the wrong server.
- Jitter: Use Randomized Jitter in the main settings to make your reconnection times feel more natural.
📦 Installation
- Fabric Loader: Ensure you have the latest version of Fabric Loader installed.
- Dependencies: This mod requires Cloth Config API, Mod Menu, and Fabric API.
- Download: Place the
autoreconnect.jar file into your .minecraft/mods directory.
🛠️ Development
This mod is built using:
- Fabric Loader & Fabric API
- Cloth Config API (for settings)
- Mod Menu API (for integration)
License
This project is licensed under the CC0-1.0 License - see the LICENSE file for details.