Player Hover Message

Discussion in 'Plugin Development' started by BrickBoy55, Sep 28, 2015.

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

    BrickBoy55

    Hello again, I am wondering how you would set the message after you scroll over the player list in your server list. I do not want to use ProtocolLib or reflection, if you can just tell me the packet, and I can figure it out, that would be great. Thanks in advance!
     
  2. I don't know the packet, but I'm sure you could find it in ProtocolLib's code
     
  3. Offline

    BrickBoy55

    I did some research and found some classes and coded this:

    Code:
            ServerPing ping = new ServerPing();
            ServerPingPlayerSample sample = new ServerPingPlayerSample(1, 1);
            GameProfile[] profile = { new GameProfile(UUID.randomUUID(), ChatColor.translateAlternateColorCodes('&', "&5&lTest")) };
            sample.a(profile);
            ping.setPlayerSample(sample);
           
            PacketStatusOutServerInfo packet = new PacketStatusOutServerInfo(ping);
    
    But I'm not quite sure on how to send it to people when the server is pinged, any ideas?
     
  4. Offline

    FabeGabeMC

Thread Status:
Not open for further replies.

Share This Page