WMCAlliance / BukkitIRCd

BukkitIRCd was an IRC bridge plugin for Minecraft servers running Bukkit. It creates individual 'bot' users for every player to allow seamless communication.
https://wma.im
Other
5 stars 6 forks source link

Formatting codes #1

Closed WizardCM closed 11 years ago

WizardCM commented 11 years ago

Currently, the following colour/formatting codes do not work;

§k Random §l Bold §m Strike §n Underlined §o Italics §r Reset

WizardCM commented 11 years ago

I have no idea where to add this. Any suggestions would be good.

BlaneyXYZ commented 11 years ago

I do not see the use in adding this.

WizardCM commented 11 years ago

If someone bolds (etc) something ingame, the plugin should be able to properly filter/format it. 04-01_22-13-03

BlaneyXYZ commented 11 years ago

I'm pretty sure this can be achieved in the config.

WizardCM commented 11 years ago

This seems like it'll be quite a bit of work.

Currently, the codes are set as a number (possibly a char, though not entirely sure).

Some variables to look into (in IRCd.java) ircColors gameColors

chyyran commented 11 years ago

The IRC codes are mIRC Color Codes

Jdbye commented 11 years ago

Those variables are unrelated to other formatting codes than colors, however convertColors handles those as well. Unless you have changed this, currently convertColors replaces IRC color codes with nothing, it could simply be changed to replace them with the respective Minecraft color codes. As for ingame messages sent to IRC replacing the codes will have to be added in the same way it's done in the rest of the function. I haven't looked at the code in a while but if you can't figure it out I'll try to help out.

chyyran commented 11 years ago

A Python gist I made that may help shed some light on this Thankfully Python is simple enough to be read by even people who don't know python's syntax :)

I intend to do this in Java for real, I'll be rewriting the method using the logic above

chyyran commented 11 years ago

Fixed in pull request #29