Update IPAddressData.kt
This commit is contained in:
@@ -12,6 +12,11 @@ private const val IP_API = "http://ip-api.com/json/"
|
||||
private const val IP_API_FIELDS =
|
||||
"status,message,continent,continentCode,country,countryCode,region,regionName,city,district,zip,lat,lon,timezone,currency,isp,org,query"
|
||||
|
||||
/**
|
||||
* @return The players ip address.
|
||||
*/
|
||||
val Player.ipAddressOrNull get() = address?.hostString
|
||||
|
||||
/**
|
||||
* @see ipAddressData
|
||||
*/
|
||||
|
Reference in New Issue
Block a user