Aller au contenu

[MOD] Skript de géo localisation


Messages recommandés

Posté(e)

Je ne crois pas que cela est possible en Skript, j'ai cherché mais je n'ai rien trouvé ...

Posté(e)
command /geoloc <offline player=%player%>:
   trigger:
       if player has permissions "TA PERMISSIONS":
           set {_result} to result of connect to "http://ip-api.com/json/%arg-1's ip%?fields=country"
           replace "{" or "}" or ":" or "country" or """" with "" in {_result}
           wait 4 ticks
           set {_result1} to result of connect to "http://ip-api.com/json/%arg-1's ip%?fields=regionName"
           replace "{" or "}" or ":" or "regionName" or """" with "" in {_result1}
           send "    "
           send "&4Geoip by Yghore"
           send "    "
           send "&b=========%arg-1%==============="
           send "    "
           send "&6Pays: %{_result}%"
           send "&4Région: %{_result1}%"
           send "&bIp: %arg-1's ip%"
           send "   "
           send "&b=========%arg-1%==============="
       else:
           send "&cTu n'a pas la permissions !"

Posté(e)
@Soufreur78 en commande sa donne quoi ? Car là che pas ce que sait :/

 

@Yghore je test

 

EDit: Merci Yghore , sa marche :)

 

command /country:
   trigger:
       set {_geoip} to text from "http://ip-api.com/json/%IP of player%"
       set {_test} to "[%{_geoip}%]"
       replace all " " in {_test} with "SPACE"
       set {_country} to json string "%{_test}%" from "country"
       message "%{_country}%"

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.