Multi-lingua
What it does
Multi-lingua allows players within factions to speak in another language, so that when they chat, players that are not in their faction see only a garbled message and players in their faction see a normal message.
Features
- Enable/disable easily with a simple command
- Config options to degrade messages over distance
- Easily speak so that everyone can understand with a chat prefix
- Yell a message with a chat suffix so that players can hear you from a distance
- Config option to decrease hunger bar and give dizzy effect when yelling
- Created in response to this request: Multi-lingua
Installation
Add the Multi-lingua.jar file to your server's plugins directory and start up the server. A config file will be created automatically with the default values. Use the in-game or console commands to change config settings.
This plugin relies on Factions and will disable itself if Factions is not found.
Tested with Factions 1.6.9.4
How it works
- When a player creates a faction they will be asked if they want to enable Multi-lingua for the faction, to do this they type:
/ml add
- Now when a player uses chat, their messages will appear garbled to non-faction members
- To speak normally you can add a prefix (configurable) before your chat message - by default this is "[@] "
- To make your message be heard over a distance, you add a suffix at the end of your chat message - by default this is " [!]"
- To remove Multi-lingua from your faction, just type:
/ml remove
Commands
/ml add
- turns on Multi-lingua for your faction/ml remove
- turns off Multi-lingua for your faction/ml [config_option] [value]
- sets the specified config option to the value given
Permissions
mulitlingua.admin
- allows a player to edit the Multi-lingua config - default: OP
factions.create
- needed to add Multi-lingua to your faction (you must also be the faction ADMIN to use the /ml add
command)
Config
plain_text_key: <put text here>
- sets the prefix to make speech normal i.e. if <put text here> = '@' when you type "[@] " before your message it will not scramble the text - note that there is a space after the last square bracket!yell_key: <put text here>
- sets the prefix to make you yell your message so that players can hear it beyond the chat_deaf_after distance (see 5) - requires a space before the first square bracket i.e. " [!]" when typed in chatuse_chat_radius: <true|false>
- whether to make the chat message break up over distancechat_degrade_after: <distance>
- the distance (in blocks) after which chat starts breaking up i.e. players within <distance> can hear normally, players outside <distance> start to lose bits, the further away you are the more bits you losechat_deaf_after: <distance>
- the distance (in blocks) after which players are deaf, if you put the yell suffix after your message deafness will be ignoreddizzy_after_yell: <true|false>
- whether to make the yelling player dizzy (confusion effect) and reduce their hunger bardizzy_ticks: [amount]
- how long the dizzy effect lastsdizzy_hunger: [amount]
- how much hunger to remove
Change log
v1.0-beta-3
- Fixed the chat listener ignoring the
/ml remove
command
v1.0-beta-2
- Fixed chat radius not applying to everyone when enabled, this also fixes only faction members needing to yell
- Fixed chat radius related bug where it seemed like it was using the faction creator as the measuring point to start from when degrading chat over distance
v1.0-beta
- Initial beta release
Hey Eccentric!
2 things:
a) Y'think this'll still work?
b) If so, is there any way to configure the TARDIS plugin to auto-translate any Multilingua gibberish for anyone with tardis.translate=true ?
I pretty much only get English speakers on my server, so the ability to meld the two would finally givwe the TARDIS translation something to do...
In reply to RevJesus:
In reply to RevJesus:
Code updated for Bukkit 1.13.1 and Factions 2.14.0 - untested JAR upload awaiting approval
In reply to eccentricnz:
@noremac3000
any errors in console?
EDIT: never mind I think I found the problem... try beta 3
@eccentricnz
/ml remove Doesn't seem to be working. :S
@eccentricnz
Awesome, thanks! I'll test it out in a bit and let ya know if i find any more bugs.
@noremac3000
@jasper580
New version up for testing: http:dev.bukkit.org/media/files/660/850/Multi-lingua.jar
@noremac3000
@jasper580
Forgot to subscribe to this page, but will look at these bugs soon :)
Found a bug. Whenever I enable chat radius, it's like it's only measuring between me and the speaker, not the speaker and the listener. Other people can't hear each other unless I am standing there beside them. I think this might be because I am the one who made the faction?
Woops, smart me :p I tested a few more things, and I have only 2 bugs.
@jasper580
It's not a prefix, it's a suffix i.e. it goes at the end! Like so:
Bug: Yelling doesn't seem to work yet. The prefix isn't recognized. Furthermore: GREAT! :D