Skip to content

Commit

Permalink
Merge pull request #1110 from AoElite/2.0
Browse files Browse the repository at this point in the history
add method to user to write packets silently
  • Loading branch information
booky10 authored Jan 12, 2025
2 parents 3d2a872 + 6a99936 commit 6507a73
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ public void writePacket(PacketWrapper<?> wrapper) {
PacketEvents.getAPI().getProtocolManager().writePacket(channel, wrapper);
}

public void writePacketSilently(PacketWrapper<?> wrapper) {
PacketEvents.getAPI().getProtocolManager().writePacketSilently(channel, wrapper);
}

public void flushPackets() {
ChannelHelper.flush(channel);
}
Expand Down

0 comments on commit 6507a73

Please sign in to comment.