Skip to content

Provides placeholders related to a player's geographical location

License

Notifications You must be signed in to change notification settings

extendedclip/Geolocation-Expansion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Geolocation

Geolocation is an expansion for the plugin PlaceholderAPI that provides placeholders related to a player's geographical location.

Installation

Simply issue the command /papi ecloud download Geolocation.

Alternatively, download and drop the Expansion-Geolocation.jar file into plugins/PlaceHolderAPI/expansions and then reload PlaceholderAPI.

Usage

Geolocation provides the following placeholders:

Replace <identifier> in %geolocation_<identifier>% to use.

  • county Returns the player's country. Ex: United States
  • countryCode Returns the player's country code. Ex: US
  • regionName Returns the player's region name. Ex: Virginia
  • region Returns the player's region code. Ex: VA
  • city Returns the player's city name. Ex: Chantilly
  • zip Returns the player's zip code. Ex: 20151
  • lat Returns the player's latitude. Ex: 38.9036
  • lon Returns the player's longitude. Ex: -77.4512
  • timezone Returns the player's timezone. Ex: America/New_York
  • isp Returns the player's internet service provider. Ex: Example ISP

Tools Used

NOTE: ip-api only allows up to 150 requests per minute. If you try to call these placeholders more often than that, it is possible that your server IP will be banned from using the service. You can remove the IP ban here.

License

PluginInfo is licensed under the MIT License. For more information please refer to the LICENSE file.

About

Provides placeholders related to a player's geographical location

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%