Skip to content

Commit

Permalink
Only attempt pack application on first server join
Browse files Browse the repository at this point in the history
  • Loading branch information
Kas-tle authored May 8, 2024
1 parent 7217755 commit 1d722c7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public class PackListener {
*/
@Subscribe(order = PostOrder.EARLY)
public void onPostConnect(ServerPostConnectEvent event) {
// TODO: Track per-player pack state
// For now, we can just assume they will not have any packs applied if they just joined the proxy
if (event.getPreviousServer() != null) return;

final Player player = event.getPlayer();
final Optional<ServerConnection> serverConnection = player.getCurrentServer();

Expand Down

0 comments on commit 1d722c7

Please sign in to comment.