mirror of
https://github.com/PaperMC/Velocity
synced 2026-08-18 22:23:06 -04:00
Fix inverted PluginMessageEvent source/target in InitialConnectSessionHandler (#1811)
This commit is contained in:
parent
25fbd833cd
commit
3b142f3099
1 changed files with 1 additions and 2 deletions
|
|
@ -65,8 +65,7 @@ public class InitialConnectSessionHandler implements MinecraftSessionHandler {
|
|||
}
|
||||
|
||||
byte[] copy = ByteBufUtil.getBytes(packet.content());
|
||||
PluginMessageEvent event = new PluginMessageEvent(serverConn, serverConn.getPlayer(), id,
|
||||
copy);
|
||||
PluginMessageEvent event = new PluginMessageEvent(player, serverConn, id, copy);
|
||||
server.getEventManager().fire(event)
|
||||
.thenAcceptAsync(pme -> {
|
||||
if (pme.getResult().isAllowed() && serverConn.isActive()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue