Plugin category: Server Tools Suggested name: Localizer etc. What I want: I seen a topic get players client language. https://forums.bukkit.org/threads/get-a-players-minecraft-language.172468/ I want to getting player's client language and replace "server and plugin messages" to player's language with ProtocolLib. I know, ProtocolLib can replace messages on chat screen. If player's language is en_EN, plugin will show to player messages in en_EN.yml file. Ideas for commands: No commands needed for this plugin. Ideas for permissions: No permissions needed.
irfantogluk I can take a look at this, already made something that can replace stuff, this would be a nice addon to it. Think that loads of servers will like this.
irfantogluk After taking another look at it ( and trying loads of stuff ). I think that I am gonna use a database for this, the only way that I can get it to work properly probably. Normal file storage is not very useful for this
It's not problem. I have a server locally, I want to open the server for global. I need plugin like this. Thanks for your works.
irfantogluk https://www.dropbox.com/s/l1qhqek4csvo1vg/TransMessageLikeMe.jar First version, haven't tested it though, you won't like setting it up that is for sure. It creates a table by itself. Some needed explanation: There are 3 columns, Lang ( language ), Normal ( original ), Translated ( string that fits the language ) The language column stands for the language that the player is using. The normal is the original string with some modifications. Translated is the new string that is send to the player, JSON / tellraw format The normal string can contain changing words / parts, you won't see those in the translated string though. To define a changing part type in : '%VAR%' that will be ignored when checking what string to send. The config contains the default database stuff together with a list of chat formats to ignore ( only the first part is monitored ) and an 'outputRaw' value, this value will determine if the console will spit out any messages that could be put in the database. Put this on false and you won't see the messages again. The database is only used on plugin load, there is also no reload command. Good luck with this.