Guest User

Untitled

a guest
May 15th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. ProtocolLibrary.getProtocolManager().addPacketListener(new PacketAdapter(this, ListenerPriority.NORMAL, PacketType.Status.Server.OUT_SERVER_INFO) {
  2. @SuppressWarnings("deprecation")
  3. public void onPacketSending(PacketEvent e) {
  4. final WrappedServerPing ping = (WrappedServerPing) e.getPacket().getServerPings().read(0);
  5. ping.setPlayers(Arrays.asList(new WrappedGameProfile("id1" , "§ejogar.timepvp.com")));
  6. ping.setVersionName("§eFase BETA");
  7. ping.setVersionProtocol(99);
  8. ping.setMotD("§c§lTime§f§lPvP §7(1.8.*)\n§fNovidades em breve...");
  9. }
  10. });
Advertisement
Add Comment
Please, Sign In to add comment