WorldChannels
WorldChannels
About
This plugin allows for directional chat between worlds. For instance, when a player speaks in a specific world, their message gets sent to players of specified receiver worlds. WorldChannels was made for Ny Verden Productions' Amazocraft.
Features
- Separate channels based on worlds.
- Player messages can be directed to specific worlds.
- Per-world message formatting.
- Supports various fields, such as player prefix / suffix, world name, etc.
- Supports parsing chat colors and formatting codes.
- Observer mode to allow staff to hear all messages regardless of message direction.
- Per-world announcements.
- Per-world local radius chat.
- (Should) Work with other chat formatting plugins.
This plugin depends on Vault.
Commands and Permissions
Configuration
TODO:
- ???
Trello Dev board
Visit the Trello board to see the current todo list for all projects.
You can comment and vote on any of the topics there.
All changes on the Trello board are in real-time.
If this plugin has helped you, please consider donating.
-
View User Profile
-
Send Message
Posted Jul 25, 2012How I can put colors on the names?
-
View User Profile
-
Send Message
Posted Jul 20, 2012@Mitsugaru
Yea you could set i up so that its like group manager setup. You have global groups that go for everyone. Then make it so you can setup individual chats for world. make is if the option. Shout is on ,Local is on, global is on Stuff like that of some sort. Im sorry if my explaination is not detailed enough. Msg me on skype bfathman
-
View User Profile
-
Send Message
Posted Jul 19, 2012@bfathman6
Could take this idea a step farther:
Does any of the above sound worth it? I think this would be my approach to implementing what you want, as it allows for much more flexibility in how each world's chat channels are configured.
-
View User Profile
-
Send Message
Posted Jul 19, 2012I was wondering if you could set it up so that. You can setup multiple chats in each world. So like have a Local Chat Then you could make a global chat with perms. Kinda like herochats? Just make it so you dont have to focus only on one chat. You see what im saying?
-
View User Profile
-
Send Message
Posted Jul 18, 2012@Appljuze
Thanks for the stack trace.
First, let me point out something important, if you look at the first line of the exception:
You'll see that it's Vault that is causing the NullPointerException due to something with mChatSuite.
In any case, I've added some catch clauses around any of Vault's Chat class code. While this will mitigate any exceptions thrown by Vault's Chat class, this does mean that those fields that it tried to get, such as the group name, prefix and suffix, will not be populated by WorldChannels.
However, you did say that you wanted mChatSuite to handle your formatting, so it shouldn't be an issue for you.
I would say you ought to let the developers of Vault know of your exception, and give them a copy of the stack trace as well.
I'll be submitting the new version to BukkitDev. If its not available when you check the page, you'll also be able to grab it from the GitHub downloads page as well while it is awaiting approval here.
-
View User Profile
-
Send Message
Posted Jul 18, 2012Sure thing. This shows up in my console every 5 seconds or so:
http://pastebin.com/tKRuFeSn
-
View User Profile
-
Send Message
Posted Jul 18, 2012@Appljuze
I loaded the latest available version for mChatSuite, and it works with the default, auto-generated settings.
So, would you please post the entire stack trace of the error you are getting? Else, I can't do much.
-
View User Profile
-
Send Message
Posted Jul 18, 2012I'm having an issue with this working correctly with mChatSuite.
I disabled the "formatting" feature, yet i still get an error saying that it cant pass playerChatEvent to WorldChannels.
Any idea how to fix this?
-
View User Profile
-
Send Message
Posted Jul 11, 2012@xDrapor
Ok, I just looked at McMMO's code. Their listener for chat events is on High. Mine is on Highest, so theirs executes first. For both the admin / party chats, they cancel the event, thus my plugin doesn't even touch the receivers at all for their chat stuff...
So, any "incompatability" with McMMO shouldn't be on my side, as my stuff doesn't execute for either the party or admin chat events because they receive and handle the event before I ever do.
Also, I've integrated the nobody message and the auto-observer permission node works now.
-
View User Profile
-
Send Message
Posted Jul 9, 2012@xDrapor
Hey, sorry for the late reply.
Thanks for your work, it'd be pretty helpful if you were to send that over. Kinda tied up, but I'll try and work on it when I can.
-
View User Profile
-
Send Message
Posted Jul 8, 2012@Mitsugaru Added noRecipients message, it was really simple, however, need to fix that darn McMMO listener :) If I am successful, I'll send you the source in the jar, if not , then just my noRecipients version to make your life simpler haha.
-
View User Profile
-
Send Message
Posted Jul 7, 2012@Mitsugaru
Tried it, first attempt failed haha. I'll have a look at my code again, I listened for a McMMOAdminChatEvent because that's what I was trying to fix, however if I do get it working, I'll also listen for the McMMOChatEvent to get it working with it completely. Hopefully my 2nd attempt doesnt fail x). I think my set isnt visible to the normal chat event, so when I add the players name (if not canceled, as you said), it doesn't really do anything.
-
View User Profile
-
Send Message
Posted Jul 6, 2012@sgttarn
Yeah, definitely. That should go along with fixing the auto-observer node too... I'll get around to it when I can.
-
View User Profile
-
Send Message
Posted Jul 5, 2012In the future, could you add a command or perm node so that the player's chat goes to all worlds? Something for admins to use to speak to all users, but without having to shout each time
-
View User Profile
-
Send Message
Posted Jul 4, 2012@xDrapor
Yeah, it sounds logical... but who knows, maybe it won't work as planned and end up being more complicated :P Won't know till I or you try to make the solution.
Also, yeah, lacking that message with the local chat feature... It was sorta rushed out so that the server that it was made for could use it immediately. So, I didn't add in that message... just got the basic proof of concept up and running for them. I'll make sure to add in the configurable message in later.
-
View User Profile
-
Send Message
Posted Jul 4, 2012@Mitsugaru
I just moved, so I understand :) That seems like a good way to go about it, I'll see if I have time. Also, could you add that "No one hears you for the chat radius". I'll have a look at your code and see what I can do.
Thanks for the quick reply!
xDrapor
-
View User Profile
-
Send Message
Posted Jul 4, 2012@sgttarn
That's correct, the formatter is completely optional. You would want to disable it in the global config as well as in each world config.
You should be able to still have it broadcasting to other worlds even with the formatter disabled. Can't look into it at the moment, but if it is still an issue later on, I'll look into it when I'm free.
-
View User Profile
-
Send Message
Posted Jul 4, 2012If I disable the formatter in the config, will this still separate by worlds? I'm using Essentials for my chat, and i need to keep the format to stay how it is. All I need is separated chat for each world. I have the formatter disabled in the config and now it doesn't seem to separate chat?
-
View User Profile
-
Send Message
Posted Jul 3, 2012@xDrapor
Yeah, its pretty simple. This plugin modifies who receives the message whenever a chat event occurs, based on the configuration for that world. The same applies for admin chat, in which it modifies who receives the message for the admin chat channel.
If you want, I can add in McMMO chat compatability for the next version. However, the update is going to be delayed until I finish moving... so I won't be able to do it until the weekend.
Or, if you want and if you have the time, you could make add in the compatibility and once its up you can make the pull request to have it added in to the official builds.
I think the solution would be rather simple:
Obviously, the above is just a theory, but that's how I'd approach it and then test to make sure it works.
But hey, if you don't have the time, I'll make sure to add it in myself when I can. Just going sorta busy with moving between states and can't work on it until I'm properly situated.
Thanks for bringing it to my attention. I hope the above was helpful.
-
View User Profile
-
Send Message
Posted Jul 3, 2012@Mitsugaru
Hey, any reason why this wouldn't work with McMMO's admin chat? Everyone can see the chat (Permissions are fine).