Standalone ServerPinger 0.0.1-SNAPSHOT

Ping any Minecraft Server with Java (1.3 >)

  1. samczsun

    Supporter

    samczsun submitted a new resource:

    ServerPinger - Ping any Minecraft Server with Java (1.3 >)

    Read more about this resource...
     
    • Like Like x 1
  2. U speck spanish no? you put the word (etcetera)
     
  3. samczsun

    Supporter

  4. the question is fixed, so it etcetera??
     
  5. samczsun

    Supporter

    @ZombieCraft

    It's just something meaning "and more stuff I don't want to list"
     
  6. @samczsun
    You could dynamically resolve the protocol used and so there are not three differents methods(POST_NETTY_REWRITE, pre_netty_rewrite ...) but only one. I'm pretty (but not totally) sure it's possible.
     
  7. samczsun

    Supporter

    @AlphartDev

    Well, does this work?

    Code (Text):

    int version = 0;
    String[] nextsplit = s.split(":");
    String ip = nextsplit[0];
    int port = nextsplit.length == 2 ? Integer.parseInt(nextsplit[1]) : 25565;
    if (ServerPinger.POST_NETTY_REWRITE.fetchData(ip, port) != null) {
        version = 3;
    } else if (ServerPinger.PRE_NETTY_REWRITE.fetchData(ip, port) != null) {
        version = 2;
    } else if (ServerPinger.PRE_1_3.fetchData(ip, port) != null) {
        version = 1;
    } else {
        getLogger().severe("Could not determine server version for " + ip + ":" + port);
    }
    if (version != 0) {
        getLogger().info("Loaded server " + ip + ":" + port + " with version " + version);
    }
     
     
  8. @samczsun
    Yeah it seems like a great idea (maybe you can put it in the plugin and not removing the others meethod so people have the choice) :D
     
  9. samczsun

    Supporter

    @AlphartDev

    Eh. I'll put it on the main page. This is meant for developers, and ultimately it's up to them to decide how to implement this library
     
    • Agree Agree x 1
  10. Please update plugin
     
  11. samczsun

    Supporter

  12.  
  13. samczsun

    Supporter

  14. when you said this:
     
  15. Please Update This if you can :D