Plugin category: Chat related Suggested name: SoundsOfChat (... or maybe MoCChat, as MoCCraft is the name of my server ) What I want: There are lot's of chat related plugins out there, that play sounds on different events. There are even ones, that play sounds when someone says something (such as More Sounds, ChatSounds etc...) But my request is bit different from these plugins, so hear me out. I just could not find a decent chat-sound-plugin where I could change when and how sounds are played. For example, I have a server that I have configured so that player can chat locally - seen by players in certain radius - and then there's a global chat which is seen by everyone. And ofcourse there's private messages. So what I need, is a plugin which plays: sound in a certain radius for local (normal) chat a bit different sound when using global chat a bit different sound when someone is asking a question yet again... a bit different sound when private messaging. For extra information: I'm using essentials global chat function where you put exclamation mark before message ... or question mark for question. Ideas for commands: Toggle sounds for different chats. Ideas for permissions: different permissions for if player can year certain chat sounds. When I'd like it by: As soon as possible, since my server is allready in an open beta state. Hopefully someone can help me with that! Cheers!
So, you want a plugin where if somebody types a message, it plays a sound? I can do that! Just tell me if I got the idea right.
Right now I'm using essentials chat, but if you know any other/better then I'm open for any suggestions. I did take a glance on mChat, because it has chat channels. Not sure if it has local/global chat function, though. Edit: Well, I looked up, and yes there is a way to set radius for chat in mChat. So I'm thinking of making this plugin compatible with mChat. What do you think? And ofcourse, thank you for replying!
nipshu I would suggest HeroChat, really good for chat channels and I believe it has a DeveloperAPI to hook into. Not sure about ess chat.
97WaterPolo I just tried to add HeroChat plugin, but it just wont load. Console gives me this: Could not load 'plugins\HeroChat.jar' in folder 'plugins' Also, it seems kinda outdated. Another thing I like about essentials chat is that I can shout with just placing "!" infront. Which I think herochat doesn't have. Thanks for suggesting, though.
nipshu If you still want the sound chat, put AsyncPlayerChatEvent, get the player's location Location loc = player.getLocation();, then get the world they are in World world = loc.getWorld(), Then play the sound at their location, world.playSound(loc, <sound>, <radius sound should be heard>, <how many times>)
BetrayedQU Your suggestion seems logical, but I have no idea what you are talking about. Sorry! You seem to think, that I'm the one making this plugin? Well, I know nothing about creating a plugin, unfortunately. And it doesn't seem to solve global chat sound problem anyways.
nipshu oh no, the bit of code I gave you, if you give it to someone, what it does is it plays a sound at the person's chatting location and people in a certain radius can hear it.
@BetrayedQU I figured that. But I don't know what to do with that code anyway. And there are plugins that do exactly that. But I need more than that. Thank you for your response, though.