Hook into and Edit Query Response?

Discussion in 'Plugin Development' started by ccrama, May 28, 2014.

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

    ccrama

    Hello Bukkit,
    I'm wondering if it is possible to hook into and edit a query request sent by a certain IP to send out custom data that would otherwise not be sendable. I am trying NOT to create a virtual server like Votifier does.

    If this is NOT possible, do you have any ideas on creative ways to send out server data on request?

    Thanks,
    ccrama
     
  2. Offline

    metalhedd

    ProtocolLib lets you modify incoming and outgoing packets.
     
  3. Offline

    ccrama

    metalhedd does it have the power to intercept the query packet though? I don't think query is even a Bukkit packet. Couldn't find it in the javadocs
     
  4. Offline

    metalhedd


    I think it does, though I can't say for sure. It has a few packets under it's STATUS category that might fit the bill. There is a dedicated ProtocolLib forum where you can probably get a better answer, or just try intercepting all of the STATUS packets and see if any of them are what you're looking for.
     
Thread Status:
Not open for further replies.

Share This Page