Help me about Code

Discussion in 'Spigot Plugin Development' started by guyguyko, Jul 21, 2018.

  1. I want code

    //Check ip Server
    } else {
    • Funny Funny x 1
  2. gzx


    You ask us to spoonfeed you some code, and then give us a three word explanation for what code you need. This community will help you with problems, but we will not give you code that you can blindly use, nor are we able to read your mind about what you want help with.

    Please explain what code you are trying to figure out in a better way.
  3. Optic_Fusion1

    Resource Staff

    i assume they want to see if the servers ip is equal to another IP if not, disable the plugin (however this bit of code can easily be removed anyways if they are trying to stop something like a leak or piracy)
  4. gzx


    You can send an HTTP request to This will return your server's public IP address as a string. Then, compare it with whatever IP address you want to check it with.
    • Agree Agree x 1