Sueta

Country on Join - Bungee Edition

1.1.0

Broadcasts join messages mentioning the country from which the players connects. Multi-language.

·Plugin

Welcome! This is the Bungee version of my Country On Join for Bukkit!

What it do?

It broadcasts join messages mentioning the country from which the players connects. Like this:
Capture1.PNG


Multi-language & customizable messages

The default available languages are:

  • English
  • Español (Spanish)
  • Русский (Russian)
  • 汉语 (Simplified Chinese) Thank you @R_Josef

And you can create your own translation just creating a new file in the folder of "messages" and/or in the folder "countrynames".

Configuration

This is the simple configuration file:

# If could not get the country for the player (e.g. internal network).
# Set to true to broadcast the join message anyway.
# Set to false for no join message.
broadcastOnUnknownCountry: true

# If could not get the country for the player and the broadcastOnUnknownCountry is set to true.
# Set to true to broadcast the join message without the country version.
# Set to false to broadcast the normal join message using the 'unknown' country name.
broadcastAltJoinMsgOnUnknownCountry: true

# The messages file to use.
# See in the 'messages' folder for available cultures in the filenames: messages/messages.<culture>.yml
messages-culture: "en-US"

# The country names file to use.
# See in the 'countrynames' folder for available cultures in the filenames: countrynames/countrynames.<culture>.yml
countrynames-culture: "en-US"

# Spam the console with useful information for error reporting. Should be disabled on production environment.
debug: false

Commands

/countryonjoin reload

You can reload the changes in the configuration without restarting the server.

Permissions

countryonjoin.hide

You can hide the country for the player. (default: false)

countryonjoin.command.reload

Access to the command "/countryonjoin reload". (default: false)

No auto-update
No statistics send
No special requirements

Installation

  1. Drop the downloaded JAR file in your BungeeCord plugins folder and restart the server.
  2. Open the config.yml file and change it as needed and save the changes.
  3. Type countryonjoin reload in the BungeeCord console.
  4. Done!

F.A.Q.

Why it not shows my country?
Maybe you are connecting from the internal network... it will not work because the plugin needs your public (internet) IP.
Or you need to review your network setup. Are the BungeeCord server getting the real player IP?

How it works?
This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com

Do I need to update the database?
In the maxmind site states "GeoLite2 databases are updated on the first Tuesday of each month." so you can download the new database from here (the "GeoLite2 Country" in the format "MaxMind DB binary, gzipped"), extract it, and replace manually the file "GeoLite2-Country.mmdb" in the plugin folder.

How can I create a new translation?
Create the new file in folder "messages" with the pattern "messages.<culture>.yml" and a new file in the folder "countrynames" with the pattern "countrynames.<culture>.yml" (where culture is the id you will set in the config.yml). Then copy the contents from an existing file for use it as a base for your translation. When done change the config.yml to the new culture id. And reload the configuration or restart the server.

Why the join message is duplicated?
This plugin will not suppress the default minecraft join message. You will need an Spigot plugin to get rid of these.

Why the JAR file is big?
Because it includes a large GeoIP database and all the needed libraries for querying it without external dependencies.

Can I use it without BungeeCord?
No. But you can use the "Bukkit Edition" of this plugin.

Server throws a warning "Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 support added".
You can safely ignore that warning. It is coming from a third party dependency and I cannot suppress it at the moment.

I tested it only on the mentioned game versions. Please share your results on other versions.

It is open source and unlicensed (public domain)

Similar projects

Plugin →