TownyDiscordChat icon

TownyDiscordChat -----

Link Between Towny and Discord




Fixes
Out of bounds error for passed event from Towny.

[Server] ERROR Could not pass event TownAddResidentEvent to TownyDiscordChat v1.0.7
[Server] INFO java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
[Server] INFO at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]

Changelog
Modified

  • Removed messages being sent to player's private messages in discord
----------, Jan 13, 2022

Changelog
Added

  • DiscordSRV API - 1.24.0
----------, Dec 28, 2021

Changelog

**Modified**
- Support for Minecraft 1.18

**Added**

- Spigot API - 1.18
- Towny API - 0.97.5.0
- DiscordSRV API - 1.22.0
----------, Dec 27, 2021

Fixes
Potentially solved an issue where the nation wouldn't get added after town on DiscordSRVAccountLinkEvent.

Changelog
Modified
  • Methods to use separate queue calls to receive individual callbacks on completion (success or failure).
Added
  • Added Installation instructions in README
  • Added Configuration File explanation in README
  • Custom message support in config.yml
----------, Apr 14, 2021

Fixes
Resolved issue #3 on GitHub.

Changelog
Modified
  • Methods to use OfflinePlayer instead of Player
  • Methods to use UUID when not able to use OfflinePlayer
----------, Apr 11, 2021

Changes
  • Updated DiscordSRV to latest API.
  • Added bstats support.
  • Removed unused imports.
  • Removed unused messages.yml.
----------, Apr 8, 2021

Fixes
Resolved issues where duplicate channels would be created and assigned with the wrong roles.
Please delete these duplicate channels before updating the plugin.

Changelog
Split initial server role and channel creations into different methods to help reduce rest actions when needing to re-use commands.

Changes

  • Added /TDC as alias to /TownyDiscordChat
  • Modified NewDayEvent Listener to use individual methods on daily checkup
  • Rewrote logic in TDCManager class
  • Added new commands to use in-game
  • Added permissions for commands
Commands
When adding this plugin to an existing Towny server make sure to run the first 4 commands in the order shown below.
Make sure to check they have completed before running the next one.

/TDC Check Role CreateAllTownsAndNations
Permission Node: TownyDiscordChat.Check.Role.CreateAllTownsAndNations:
Description: Allows you to force run a check for discord roles of all players in a town or nation and creates them if needed

/TDC Check TextChannel AllTownsAndNations
Permission Node: TownyDiscordChat.Check.TextChannel.AllTownsAndNations:
Description: Allows you to force run a check for discord text channels of all players in a town or nation and creates them if needed

/TDC Check VoiceChannel AllTownsAndNations
Permission Node: TownyDiscordChat.Check.VoiceChannel.AllTownsAndNations:
Description: Allows you to force run a check for discord voice channels of all players in a town or nation and creates them if needed

/TDC Check Role AllLinked
Permission Node: TownyDiscordChat.Check.Role.AllLinked:
Description: Allows you to force run a check for discord roles of all players in a town or nation then adds or removes them if needed

/TDC Check Role
Permission Node: TownyDiscordChat.Check.Role:
Description: Allows you to force run a check for discord roles of a single player in a town or nation then adds or removes

Nodes Structure
TownyDiscordChat.Admin

  • TownyDiscordChat.Check.Role.CreateAllTownsAndNations
  • TownyDiscordChat.Check.TextChannel.AllTownsAndNations
  • TownyDiscordChat.Check.VoiceChannel.AllTownsAndNations
  • TownyDiscordChat.Check.Role.AllLinked
  • TownyDiscordChat.Check.Role
TownyDiscordChat.Player

  • TownyDiscordChat.Check.Role
----------, Apr 8, 2021

Resource Information
Author:
----------
Total Downloads: 761
First Release: Apr 7, 2021
Last Update: Jan 13, 2022
Category: ---------------
All-Time Rating:
5 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings