Earlier Versions
| Name | Size | Uploaded | Game Version | Downloads | |
| THCL v2.0 release | 22.13 KB | Jan 26, 2014 | 1.7.2 | 697 | Download |
| THCL_1.2 release | 20.20 KB | Jan 24, 2014 | 1.7.2 | 110 | Download |
| THCL_1.0 release | 18.81 KB | Jan 24, 2014 | 1.7.2 | 90 | Download |
Description
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!
Get 0.05 TON 💎
Download

Add a comment