TownyHerochatLink
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!
-
View User Profile
-
Send Message
Posted May 23, 2014@L337Lobster
So.. I don't see anywhere to post Tickets... I hate to do this but...
I'm running a Bukkit 1.7.9, with bPermissions and Vault installed on my server.
Hero Chat, and Towny as well.
On Start-up I get this..
http://pastebin.com/qeecQ6np
When issuing the "load towns" command..
http://pastebin.com/MBDjBzcB
-
View User Profile
-
Send Message
Posted Mar 12, 2014@erik1988
I suppose that would be possible. I can certainly look into it. I've never used either though so if you would do me the kindness to submit a Plugin Request thread (or pm me a request in that format) so I know exactly what you want it to do. Also there seems to be a chat plugin with HeroChat support for simpleclans already (at least according to the page). If you want to check that out first I would try that, it's better to use a more well developed plugin than a brand new one IMO (usually)
I also apologize for my delayed response, I am currently in college and I've been concentrating more on that recently.
-
View User Profile
-
Send Message
Posted Mar 5, 2014Can you make a plugin like this for other team/clan plugins? For instance simpleclans and xTeam.
-
View User Profile
-
Send Message
Posted Jan 31, 2014@Jewremy
Yes, hence I had to make this plugin.
@wiedzmin137
As for this, I will look into it as soon as I get a chance. With classes started again I have less time for this than I would like.
-
View User Profile
-
Send Message
Posted Jan 29, 2014@wiedzmin137
Except that doesn't work. The messages go to everybody. Variables show up as {town} literal with modifychat.enabled: 'true' in chatconfig.yml
-
View User Profile
-
Send Message
Posted Jan 27, 2014As I see, I won't use this, sorry. Why? TownyChat plugin has compatibility with HeroChat and give me /nationchat, /townychat and {vaiarbles} for Towny into HeroChat config. But anyway - good job, you have learned new things. If you will continue that project - look at that error.
Or... I won't use HeroChat.
-
View User Profile
-
Send Message
Posted Jan 25, 2014@wiedzmin137
Version 2.0 has GroupManager support, whenever Bukkit approves it please let me know how it works! I haven't tested it but the core stuff works with zPermissions and the differences are handled correctly as far as I know so there should be no problems. Just watch out for towns/nations with non-alphanumeric characters, it tends to not make channels for them because herochat doesn't allow those characters in the channel names, I'm working on a fix but I can't figure out why what I'm trying isn't working so not sure when that will be out.
-
View User Profile
-
Send Message
Posted Jan 25, 2014@L337Lobster
I'll tomorrow install it and check how it works. I'll tell you about any bugs.
-
View User Profile
-
Send Message
Posted Jan 25, 2014@wiedzmin137
Well I am almost done adding support for GroupManager so I will release a version when that part is ready! I hope you like my plugin!
-
View User Profile
-
Send Message
Posted Jan 24, 2014@L337Lobster
I use PermissionsEx, but it SO bugged then I planing change that for Essentials GroupManager.
-
View User Profile
-
Send Message
Posted Jan 24, 2014@wiedzmin137
Sorry for the double post but wanted to update you, I have it working with Vault right now but there are some things I need it to do that Vault can't do (like delete a group). I can accomplish this but it requires I check which permissions plugin you are running and then selecting a certain command from there. This is a simple matter but it is tedious and may take a while. If you tell me what permission plugin you are running I can add support for that first and publish it so you can start using it sooner.
Thanks, Jack
-
View User Profile
-
Send Message
Posted Jan 24, 2014@wiedzmin137
I'm working on getting vault to work right after I finish with the refresh command, which is almost done just working out a few kinks.
The issue with Vault was I needed it to pull a list of all of the current groups and I couldn't get it to do that, and since the server I own and help run uses zPermissions, which is great by the way, I just decided to get it to work with that since I was originally not planning on publishing it.
Basically I'll get the Vault working as soon as I can, however it might take a bit of recoding so it's hard to give an ETA especially when I have classes 4 days a week and have to study, stupid college :P
-
View User Profile
-
Send Message
Posted Jan 24, 2014So do you say it's time for change SimpleChat to HeroChat... I'll use that (when you will use Vault)! Thanks.