cnaude / PurpleIRC

Minecraft Bukkit plugin that provides an IRC bridge. This repo has been archived. Please see https://github.com/cnaude/PurpleIRC-spigot for the latest and greatest PurpleIRC code for Bukkit servers (Spigot, Paper etc...)
20 stars 9 forks source link

Feature request: Essentials Admin Chat #70

Closed ProfX66 closed 10 years ago

ProfX66 commented 10 years ago

I looked to see if this had been suggested yet, and it may not be possible until Essentials decides to be better at events, but it would be really nice to be able to have the Essentials admin chat messages sent to and from IRC. I don't use other chat plugins because I don't really need all the extra things they add, but I do find admin chat to be useful and would like to use it when I'm not on the server.

cnaude commented 10 years ago

I might be able to do something with this. How do you go about using admin chat? Is it a command you run?

ProfX66 commented 10 years ago

Yeah its a command that you run (helpop, amsg, or ac) essentially all arguments to that command are broadcast to everyone with the permission node to see it. (/ac [Text to be sent])

-From essentials' command page- Instructions: This command allows players to send a message to players with the matching helpop permission. Typically only Mods and admins are given the permission to receive.

Permissions: essentials.helpop - Allow access to the /helpop command. essentials.helpop.receive - Allows you to see Helpop messages

Aliases: /helpop /amsg /ac

Salamander commented 10 years ago

I moderate for a small community server, and I can confirm that it would be really nice to be able to send admin chat to a separate IRC channel. I don't have much to add, just wanted to +1 this feature. Keep up the good work, this is a great plugin!

cnaude commented 10 years ago

I'm not really sure how to implement this. Bukkit has no event for broadcast messages. I'll have to think of a way to do this...

cnaude commented 10 years ago

Please try build 110 and let me know if it works for you. http://h.cnaude.org:8081/job/PurpleIRC/110/ Just add ess-helpop to your bot yml file and edit the template in config.yml as needed.

ProfX66 commented 10 years ago

Works like a charm, at least from game to IRC.

Would it be possible to say have all chat in a IRC channel broadcast to /helpop? I only ask because it would be cool to be able to chat to game through helpop.

I did create a command to run, which works -- although it shows as console sending the helpop command, which I just added the name variable to so now it looks like Console: Name: Message. It would just be nice if we didn't have to type the command every time to chat.

Either way, I'm glad you got it working as it is now!

cnaude commented 10 years ago

See build 111: http://h.cnaude.org:8081/job/PurpleIRC/111/ I added a new token irc-ess-helpop. It will broadcast messages from irc to the helpop receievers in the game. You will want to enable irc-ess-helpop for the bot and disable irc-chat.

ProfX66 commented 10 years ago

This is working perfectly!

Thank you very much, this will help me and my staff greatly.