1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Get player's country

Discussion in 'Skript' started by Digger, Jun 12, 2018.

Thread Status:
Not open for further replies.
  1. Digger

    Addon Developer

    Joined:
    Jan 26, 2017
    Messages:
    44
    Likes Received:
    13
    So, I'm trying to make a player info tracking system and I was wondering if it is possible to get a player's country?
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    give this a try
    uses SkUtilities

    obviously re-arrange to suit the needs of your code
    Code (Skript):
    1. command /test <player>:
    2.     trigger:
    3.         set {_ip} to ip of arg-1
    4.         set {_text} to text from "http://ip-api.com/json/%{_ip}%"
    5.         set {_text2} to content of json value "country" from text {_text}
    6.         broadcast "%{_text2}%"
    --- Double Post Merged, Jun 15, 2018, Original Post Date: Jun 13, 2018 ---
    I also just found this
    WOLVSK

    This syntax
    Code (Skript):
    1. country of %player%
    So i guess you could do like "country of arg" or "country of {variable}"

    Probably a lot simpler than the last code I sent
     
  3. Pikachu

    Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    never use a skutilities for that and wolvsk is abandoned
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    wolvsk was updated a few weeks ago
     
  5. Pikachu

    Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    hmmm maybe he decided not to do it in the end
     
Thread Status:
Not open for further replies.

Share This Page

Loading...