Skip to content

Pre-Release Build 1.0.2

Pre-release
Pre-release

Choose a tag to compare

@thejames10 thejames10 released this 08 Apr 17:15
· 228 commits to main since this release

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