Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
529 B
2
Indexable
Never
package ballistickemu.Lobby.handlers;

import ballistickemu.Lobby.LobbyServer;
import ballistickemu.Main;
import ballistickemu.Tools.StickPacketMaker;
import ballistickemu.Types.StickClient;


public class GenericSendDataHandler
{
  public static void HandlePacket(StickClient client, String Packet)
  {
    if (Packet.length() < 5) return;
    String ToUID = Packet.substring(2, 5);
    
    Main.getLobbyServer().sendToUID(ToUID, StickPacketMaker.GenericSendPacket(client.getUID(), Packet.substring(5)));
  }
}