Country Flags

Show each player's country flag as a head next to their name. The country is found from the player's IP, or the player picks it.

Commands

/countryflags              # open the flag menu
/countryflags <country>    # pick by name or two letter code
/countryflags reset        # remove your choice

Aliases: /countryflag, /flags, /country. Permission: shyamduels.country (everyone has it). Show flags in tab, scoreboards and duels with the country placeholders.

Finding the Country

When a player joins, their country is found from their IP with the free MaxMind GeoLite2 database. The plugin downloads it for you.

country:
  enabled: true
  default-enabled: true     # flags shown for new players
  update-on-join: true      # check the IP again on each join
  maxmind:
    database: "GeoLite2-Country.mmdb"
    auto-download: true

Hiding the Flag

Players can hide their flag in /settings. flag-hiding sets who may do this:

ValueWho can hide their flag
everyoneEvery player.
small-countriesOnly players from countries not in large-countries. A flag from a big country cannot point to one person, so those players always show it. This is the default for new installs.
nobodyNobody. Flags always show.
country:
  flag-hiding: small-countries
  large-countries: [US, CA, MX, BR, GB, DE, FR, IN, CN, JP, ...]

Servers that update get everyone, so nothing changes until you pick another value.

For Developers

Use ShyamDuelsProvider.require().country(). See CountryService, PlayerCountryChangeEvent and Code Examples.

All Countries (224)

These are the names shown in game. Use a name with /countryflags <name>, or its two-letter code:

NameCode NameCode NameCode
AfghanistanAFAlbaniaALAlgeriaDZ
AndorraADAngolaAOAnguillaAI
AntarcticaAQAntigua & BarbudaAGArgentinaAR
ArmeniaAMArubaAWAustraliaAU
AustriaATAzerbaijanAZBahamasBS
BahrainBHBangladeshBDBarbadosBB
BelarusBYBelgiumBEBelizeBZ
BeninBJBermudaBMBhutanBT
BoliviaBOBosnia & HerzegovinaBABotswanaBW
BrazilBRBritish Indian Ocean TerritoryIOBruneiBN
BulgariaBGBurkina FasoBFBurundiBI
CambodiaKHCameroonCMCanadaCA
Cape VerdeCVCaribbean NetherlandsBQCentral African RepublicCF
ChadTDChileCLChinaCN
ColombiaCOComorosKMCongo - BrazzavilleCG
Congo - KinshasaCDCook IslandsCKCosta RicaCR
CroatiaHRCubaCUCuraçaoCW
CyprusCYCzechiaCZCôte d’IvoireCI
DenmarkDKDjiboutiDJDominicaDM
Dominican RepublicDOEcuadorECEgyptEG
El SalvadorSVEquatorial GuineaGQEritreaER
EstoniaEEEswatiniSZEthiopiaET
Faroe IslandsFOFijiFJFinlandFI
FranceFRFrench GuianaGFFrench PolynesiaPF
GabonGAGambiaGMGeorgiaGE
GermanyDEGhanaGHGibraltarGI
GreeceGRGreenlandGLGrenadaGD
GuadeloupeGPGuatemalaGTGuernseyGG
GuineaGNGuinea-BissauGWGuyanaGY
HaitiHTHondurasHNHong Kong SAR ChinaHK
HungaryHUIcelandISIndiaIN
IndonesiaIDIranIRIraqIQ
IrelandIEIsraelILItalyIT
JamaicaJMJapanJPJerseyJE
JordanJOKazakhstanKZKenyaKE
KiribatiKIKuwaitKWKyrgyzstanKG
LaosLALatviaLVLebanonLB
LesothoLSLiberiaLRLibyaLY
LiechtensteinLILithuaniaLTLuxembourgLU
Macao SAR ChinaMOMadagascarMGMalawiMW
MalaysiaMYMaldivesMVMaliML
MaltaMTMarshall IslandsMHMartiniqueMQ
MauritaniaMRMauritiusMUMexicoMX
MicronesiaFMMoldovaMDMonacoMC
MongoliaMNMontenegroMEMoroccoMA
MozambiqueMZMyanmar (Burma)MMNamibiaNA
NauruNRNepalNPNetherlandsNL
New CaledoniaNCNew ZealandNZNicaraguaNI
NigerNENigeriaNGNorth KoreaKP
North MacedoniaMKNorwayNOOmanOM
PakistanPKPalauPWPalestinian TerritoriesPS
PanamaPAPapua New GuineaPGParaguayPY
PeruPEPhilippinesPHPolandPL
PortugalPTPuerto RicoPRQatarQA
RomaniaRORussiaRURwandaRW
RéunionRESamoaWSSan MarinoSM
Saudi ArabiaSASenegalSNSerbiaRS
SeychellesSCSierra LeoneSLSingaporeSG
Sint MaartenSXSlovakiaSKSloveniaSI
Solomon IslandsSBSomaliaSOSouth AfricaZA
South KoreaKRSouth SudanSSSpainES
Sri LankaLKSt. BarthélemyBLSt. Kitts & NevisKN
St. LuciaLCSt. Pierre & MiquelonPMSt. Vincent & GrenadinesVC
SudanSDSurinameSRSwedenSE
SwitzerlandCHSyriaSYSão Tomé & PríncipeST
TaiwanTWTajikistanTJTanzaniaTZ
ThailandTHTimor-LesteTLTogoTG
TongaTOTrinidad & TobagoTTTunisiaTN
TurkmenistanTMTuvaluTVTürkiyeTR
U.S. Virgin IslandsVIUgandaUGUkraineUA
United Arab EmiratesAEUnited KingdomGBUnited StatesUS
UruguayUYUzbekistanUZVanuatuVU
Vatican CityVAVenezuelaVEVietnamVN
Wallis & FutunaWFYemenYEZambiaZM
ZimbabweZWÅland IslandsAX