HomeJavaModsTownyAlerts
TownyAlerts
ModsJava

TownyAlerts

by Karuho · on Modrinth

TownyAlerts is a lightweight Towny addon that sends New Day, bankruptcy, ruin, and town/nation alerts to Discord through DiscordSRV. It supports multiple…

⬇ Download on Modrinth

banner

TownyAlerts is a lightweight community plugin created by DynaDev that listens to official Towny events and sends administrative alerts directly to Discord through DiscordSRV.

It does not modify Towny, taxes, upkeep, towns, nations or player balances. TownyAlerts works only as an observer and notification layer.

Features

How it works

TownyAlerts listens to Towny's official Bukkit events.

When events such as a New Day, bankruptcy or ruined town occur, the plugin creates a notification and sends it asynchronously through DiscordSRV.

Discord and database failures are isolated and will not interfere with Towny's normal operation.

By default, no database is required.

storage:
  type: memory
SQLite, MariaDB and MySQL can optionally be enabled for persistent event history and deduplication.

## Commands

| Command | Description |
|---|---|
| `/townyalerts status` | Shows plugin, Towny, DiscordSRV, language and storage status |
| `/townyalerts test` | Sends a test notification to Discord |
| `/townyalerts reload` | Reloads TownyAlerts configuration and languages |
| `/townyalerts storage status` | Shows the current storage backend status |
| `/townyalerts storage test` | Tests the configured storage connection |

## Permissions

| Permission | Description | Default |
|---|---|---|
| `townyalerts.admin` | Allows access to all TownyAlerts administrative commands | OP |

## Requirements

- Towny
- DiscordSRV
- Java 17 or newer, depending on your Minecraft server version

TownyAlerts is designed around Towny's current Minecraft support range from **1.19.x through 26.2.x**.

Current compatibility is focused on **Paper and Purpur**.

## Languages

Set the language in `config.yml`:

```yaml
language: "en"

Examples:

en
en-us
es
es-cl
es-mx
fr
fr-ca
en-uk

Language identifiers are case-insensitive.

Custom language files can be added to:

plugins/TownyAlerts/languages/

Missing translations automatically fall back to en-us.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more