Mineuniverse
Log in Register
Plugins

TownyHerochatLink

Automatically makes channels in chat for towns and nations.
by _ForgeUser12475620
Download Claim this project
1,561 downloads
0 likes
Updated Jun 30, 2026
0 hypes
Chat Related

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!
THCL v2.0
MC 1.7.2, CB 1.7.2-R0.2, CB 1.7.2-R0.1
Release 2014-01-26 Get
THCL_1.0
MC 1.7.2, CB 1.7.2-R0.2, CB 1.7.2-R0.1
Release 2014-01-24 Get
THCL_1.2
MC 1.7.2, CB 1.7.2-R0.2, CB 1.7.2-R0.1
Release 2014-01-24 Get

More from _ForgeUser12475620

LLFRewards
576
LLFRankup
1,289

You Might Also Like

Little Anti-Swearing Plugin
A small plugin to censore unsuitable words. Words is customizable. Plugin can kick player or only censore word.
9,982
BuildAPrefix
A self-service prefix plugin!
9,972
NoSwearPlus
NoSwearPlus
9,969
FakeTalk Reloaded
FakeTalk Reloaded
9,952
RoboticStaff
RoboticStaff
9,944
AMChat
Chat using a radio on frequencies, limit local chat
9,926