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.
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.
# 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