External placeholders doesn't work with url #244


Open
  • breston8 created this issue Jan 18, 2021

    Hello,

    I have to use an external placeholder to check the players' votes with an API but when I put a url like this:

     

    url: https://website-for-players-vote.com/my-server-id/%player_ip%

     

    The placeholder %player_ip% doesn't put xxx.xx.x.xx but it doesn't react at all (it reponds [Mycmd] Sending GET request to : https://website-for-players-vote.com/my-server-id/%player_ip% in the console)

     

    Do you know how I can make it works? I precise it works with /mycmd btell %player_ip% or with text commands. The test is done with the last version (5.6.8).

    I'm still running in 5.6.1 in my production server because it works in this version (and in the older) and I would update.

     

    Thank you

  • ivanfromitaly posted a comment Jan 20, 2021

    I should check and try it.

    Eventually you can expect a fix/solution in the next version

  • ivanfromitaly posted a comment Jan 28, 2021

    I've checked, and the problem is that in that command type, it is set up to not replace "Color codes" so, & don't get replaced. That means PAPI is also disabled, completly. What you can do with PAPI is to send a text to him, and retrieve the text formatted, i can't control what PAPI is replacing. What you can do is to only use MyCommand placeholder for that. There is one for the IP, $getaddress use that one instead.

    Even better, i'm adding $get_ip to only return the IP, getaddress show also the port ecc...


    Edited Jan 28, 2021
  • breston8 posted a comment Mar 14, 2021

    Ok, with the $get_ip it adds text after the ip adress as 00.00.00.00.blablabla.internetserviceprovider.com and it's not the same numbers than the ip adress of the players. Is there any solution to only get the numeric part with real numbers?

     

    The $getadress give me 00.00.00.00.blablabla.operator.com/01.01.01.01:port with the "01" part with good numbers.

     

    Thank you


To post a comment, please login or register a new account.