Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.55 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.55 KB

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

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