Closed retrooper closed 1 month ago
This can be replaced with event.getPlayer() https://github.com/max1mde/PassengerAPI/blob/e68a8e75ffd4c30922c65a252f38ebed1a2ef601/src/main/java/com/maximde/passengerapi/listeners/PacketReceiveListener.java#L27
Thanks for reaching out! I'm gonna fix this asap.
This can be replaced with event.getPlayer()
Yeah I just wasn't sure if event.getPlayer()
returns a bukkit player.
In the new snapshots you don't need to explicitly cast it.
Greetings. A member in our discord server has reported an exception and I took the time out of my day to address it to you directly. This was the exception provided by the user:
In our documentation we explain that you must be cautious when designing your packet listeners as Bukkit often limits asynchronous access:
You have two ways you can fix this.
In fact, you already do so here: https://github.com/max1mde/PassengerAPI/blob/e68a8e75ffd4c30922c65a252f38ebed1a2ef601/src/main/java/com/maximde/passengerapi/listeners/PacketSendListener.java#L45-L56
Therefore, I'm not sure why you didn't carry this out everywhere.