SimpleIRC-Formatter
SimpleIRC-Formatter
Description
Provides chat formatting to messages sent from IRC using the SimpleIRC plugin, you need Vault for this to work as that is used to get the format from whichever permissions plugin you are using.
Bug Reports / Suggestions
If you find a bug, encounter a problem or have a suggestion, please fill out a ticket via the Tickets link above. I do not have the time to read through the comments section, any comment that fits the previous three categories will be ignored.
Usage
The plugin does not have any config or commands, it gets everything from SimpleIRC and Vault directly. Simply drop it in the plugins folder and restart the server.
Config
The default config file will look like this
default-prefix: '<' default-suffix: '> ' irc-prefix: '&b[IRC]#r'
default-prefix and default-suffix set the prefix and suffix that will be used when one cannot be found from Vault, these will usually be the same as for your default group but you may wish to set a different value. irc-prefix is an additional prefix that is prepended to all messages from IRC to the game.
Contributing
Contributions to the project are very much welcome, if you have a feature that you want implemented and know a nice way to do it then consider forking the repo and submitting a pull request. These will be accepted as long as the following simple guidelines are followed.
- Do not edit the structure of the pom.xml file, feel free to add a dependency if you need it but the formatting and structure should not be changed.
- If you are exposing a new API method, add a JavaDoc comment to it, but don't over-comment internal code.
- Follow the existing code style, don't antagonise over every space though !
All dependencies that are used are now available from a public Maven repo, so you don't have to worry about building several other projects just to add a simple change any more.
Source Code
Available on GitHub.
Dev Builds
Changes Since Last Release
Download
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
http://bukkit.jacekk.co.uk:8000/job/SimpleIRC-Formatter/
I have this as my config: default-prefix: '[' default-suffix: '] ' irc-prefix: '&b[IRC]&r'
and the outcome is:
http://i.imgur.com/plTDwlX.jpg (Image a bit too spammy here)
@ic_trab
The prefix is simply added to the start of the message, so if it does not end in a reset code then the colour will continue.
Hello I am using pex and the output from vault seems to not be separating player names from the chat.
Also the player colors are "leaking" onto the chat.
I have tried fiddling around with prefixes and suffixes and the string formatting to no avail.
My name from pex is like this (without the quotes): Prefix: "&b|IC| " Name: "trab"
That part is coming out fine however the chat after my name is the same colour as the prefix and the usual ": " after my name is not there.
Any ideas?
@wide_load
Thx for the help!
Matt!
@MattIPv4
You should not use formatting in the alias config, that is for names only. If you set up the name correctly it should get the prefix from Vault.
@MattIPv4
Depends on the IRC server, check their documentation.
Also please stop writing in title case ._.
@wide_load
Another Question, Sorry For Pestering, But I'm New To IRC
How Do I Protect My Nickname I'm Using?? So Only I Can Use It (Do I Use My IP??)
Thanks In Advance For the Help, Matt
@MattIPv4
I Have Now Also Tried
matthew_cowley:§c§k 11 §r§3[Owner]§r§c§k 11 §r§b<matthew_cowley>§r
And That Did Not Work Either, Please Help!
The Reason I Need This Is, On The Server I Have been Using IRC And In-game It Says Before My Name That I'm Owner, But Not On IRC And People Are Saying I'm A Random Person Pretending To Be The Owner!
Please Help!
Thanks, Matt
@wide_load
On The Main Plugin, In The Alises File I Typed
matthew_cowley:&c&k 11 &r&3[Owner]&r&c&k 11 &r&b<matthew_cowley>&r
But When I Chat In The IRC, On The Server It Just Displays It Like In The File, No Colours.
What Should I Do?!?
Thanks, Matt
@wide_load
Thanks, Just Read The Description Again, I Forgot Vault!!
@MattIPv4
Check the server log for any errors on startup and file a bug report if you find one. Also make sure all the dependencies are installed.
I Am Using Your SimpleIRC On My Server, And Have Just Installed This Formatter, I Have Restared My Server God Knows How Many Times, And Still The Formatter Hasn't Generated A Config File!!
What Should I Do??
Thanks, Matt