promotional bannermobile promotional banner

TownyHerochatLink

Automatically makes channels in chat for towns and nations.

What is it?

This plugin automatically creates a group for each town with the prefix of t: and for nations with the prefix of n:. Then it will add the player or players to the created group. The group has the permissions designated in the config. Then the player is added to the channel. When a town or nation is deleted it removes the group for the town/nation and deletes the corresponding channel. It sets the channel nicknames as the first four letters of the town or nation in all caps, in the event of a duplicate nick it will append numbers on the end starting with 1.

Dependencies:

  • Towny
  • Herochat
  • Vault

Permission Plugins Supported

Due to restrictions on Vault (namely the lack of ability to delete groups) I need to add support for each plugin supported by Vault manually in some areas. Below is a list of plugins currently supported.

  • zPermissions
  • Essentials GroupManager
  • More to come, it's a slow process (if you request a specific permissions plugin in the comments I will put that plugin in priority above the others and release when I have it added)

Commands

  • /thcrefresh - this command is the command to run on the first load of the plugin. It will search through your towns and make sure that there is a channel for each town and nation (if you have them enabled in the config). ALIAS: /thcr

Permissions

  • thcl.refresh: allows usage of /thcrefresh

Example of the default config

# set the selection to true to enable creation of a new channel for towns/nations 
createFor:
    towns: true
    nations: true
createIn:
    world: casual_world
# Settings for the channels
# for the format section use <> instead of {} because {} is causing errors
nations:
    color: GOLD
    format: <default>
towns:
    color: AQUA
    format: <default>
    
# permissions to give to players when they join a town or their town joins a nation
# all permissions will have the appropriate channel name appended on the end
# for example if you put herochat.join in the list the player will recieve herochat.join.<channel>
# where <channel> is the nation or town channel (depending on the situation)
permissions:
    - herochat.autojoin
    - herochat.join
    - herochat.leave
    - herochat.speak
    - herochat.focus

Known Bugs

  • Will display an error on town deletion saying the group and channel does not exist. This is because of the way towny events are run, Be assured this is a minor bug, the group and channel were simply deleted already.
  • Town names cannot have non-alphanumeric characters in them such as herpderp2.0.

Suggestions

  • Please post any suggestions you have in the comments below!

The TownyHerochatLink Team

profile avatar
  • 3
    Projects
  • 3.3K
    Downloads

More from _ForgeUser12475620

  • LLFRankup project image

    LLFRankup

    • 1.2K
    • Bukkit Plugins

    LLF Realms Specific plugin used for opening the rank-up menus

    • 1.2K
    • January 7, 2014
    • Bukkit Plugins
  • LLFRewards project image

    LLFRewards

    • 566
    • Bukkit Plugins

    Executes commands for reaching a certain powerlevel and meeting certain requirements

    • 566
    • October 22, 2013
    • Bukkit Plugins
    • +3
  • LLFRankup project image

    LLFRankup

    • 1.2K
    • Bukkit Plugins

    LLF Realms Specific plugin used for opening the rank-up menus

    • 1.2K
    • January 7, 2014
    • Bukkit Plugins
  • LLFRewards project image

    LLFRewards

    • 566
    • Bukkit Plugins

    Executes commands for reaching a certain powerlevel and meeting certain requirements

    • 566
    • October 22, 2013
    • Bukkit Plugins
    • +3