Releases: thejames10/TownyDiscordChat
Pre-Release Build 1.0.8
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
Pre-Release Build 1.0.7
Changelog
Added
- DiscordSRV API - 1.24.0
Pre-Release Build 1.0.6
Changelog
Modified
- Support for Minecraft 1.18
Added
- Spigot API - 1.18
- Towny API - 0.97.5.0
- DiscordSRV API - 1.22.0
Pre-Release Build 1.0.5
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
Pre-Release Build 1.0.4
Fixes
Resolved issue #3.
Changelog
Modified
- Methods to use OfflinePlayer instead of Player
- Methods to use UUID when not able to use OfflinePlayer
Pre-Release Build 1.0.3
Changelog
Changes
- Updated DiscordSRV to latest API.
- Added bstats support.
- Removed unused imports.
- Removed unused messages.yml.
Pre-Release Build 1.0.2
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
Pre-Release Build 1.0.1
I would recommend using this version for now. I am still learning these APIs and best practices.
I welcome contribution and improvement!
Changes
- Modified NewDayEvent Listener to run a daily checkup on all linked towns and nations
- Added better logic to handle accidentally deleting a town or nation discord channel
- Added better logic to handle accidentally deleting a town or nation server role
- Removed /TownyDiscordChat command to do nothing (left it registered for now).
Pre-Release Build 1.0.0
This is our first release!
Our server was looking for an integration plugin that would be the bridge between Towny and Discord.
We've since forked https://www.spigotmc.org/resources/discordtownylink.78179/ and have added way more features and plan to make this your go-to plugin to bridge Towny and Discord. I wish this helps your players as much as it does for ours!
We have added the following events below and added support for nations
This is a work in progress but this should get the job done if you are looking for a plugin like this!
Towny Advanced Events:
NewDayEvent event
TownAddResidentEvent
TownRemoveResidentEvent
NationAddTownEvent
NationRemoveTownEvent
RenameTownEvent
RenameNationEvent
DeleteTownEvent
DeleteNationEvent
DiscordSRV Events:
AccountLinkedEvent