PacketTask

constructor(packet: Packet<*>, interval: Long, getViewers: () -> Iterable<Player>)

Creates a new PacketTask that sends the given packet to all players from getViewers.


constructor(packets: List<Packet<*>>, interval: Long, getViewers: () -> Iterable<Player>)