GeoIP 2.2

Providing Location API for plugins to use

  1. DreTaX
    Fougerite Compatibility:
    All Versions
    Plugin's Engine:
    • C# (Modules)
    Description:

    This plugin is able to provide local information of the given IP address on a local database, making It safer/faster for anyone.

    Server owners just have to install this plugin as a C# plugin only.

    Plugin Devs:

    Python Example:

    Code (Python):
    __author__ = 'DreTaX'
    __version__ = '1.0'

    import clr
    clr.AddReferenceByPartialName("Fougerite")
    import Fougerite

    try:
        clr.AddReferenceByPartialName("GeoIP")
        import GeoIP
        from GeoIP import GeoIP as RealGeoIP
    except:
        raise ImportError("Failed to reference the GeoIP.dll")

    geo = RealGeoIP.Instance


    class Test2:

        def On_PluginInit(self):
            IPData = geo.GetDataOfIP("0.0.0.0")
            if IPData is None:
                Server.Broadcast("FAILED")
                return
            Plugin.Log("Data", IPData.Country)


    JavaScript:

    Soon...

    Lua:

    Soon...

    API:

    Methods:

    Code (C#):
    GetDataOfIP(string ip):IPData
    Variables:

    IPData class
    Code (C#):
    Instance:GeoIP
    // IPData Class Variables, returned by GetDataOfIp
    CityData:GCityData
    IPRange:string
    CountryCode:string
    RegisteredCountryCode:string
    IsAnonymousProxy:bool
    IsSatelliteProvider:bool
    IPLocationData:IPLocationData // It stores the country and continents below, It's just there, no need to use It.
    Country:string
    CountryShort:string
    Continent:string
    ContinentShort:string
    StoredIP:string // Gives back the IP you are checking
    GCityData class
    Code (C#):
    GeoID:string
    CountryGeoID:string
    AnonymousProxy:bool
    SatelliteProvider:bool
    Latitude:string
    Longitude:string
    Country:string
    CountryShort:string
    Continent:string
    ContinentShort:string
    Jakkee likes this.

Recent Updates

  1. 2.2
  2. 2.2
  3. 2.0

Recent Reviews

  1. Jakkee
    Jakkee
    5/5,
    Version: 1.1
    Excellent Database! Saves doing web requests!
    1. DreTaX
  2. Leonardo
    Leonardo
    5/5,
    Version: 1.1
    Amazing.. :)
    1. DreTaX