geforkt von Mirrors/Velocity
Add missing allowed check. Fixes #335
Dieser Commit ist enthalten in:
Ursprung
7ab56d0ca0
Commit
5a515f37a3
@ -219,9 +219,11 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler {
|
||||
PluginMessageEvent event = new PluginMessageEvent(player, serverConn, id,
|
||||
ByteBufUtil.getBytes(packet.content()));
|
||||
server.getEventManager().fire(event).thenAcceptAsync(pme -> {
|
||||
if (pme.getResult().isAllowed()) {
|
||||
PluginMessage message = new PluginMessage(packet.getChannel(),
|
||||
Unpooled.wrappedBuffer(copy));
|
||||
backendConn.write(message);
|
||||
}
|
||||
}, backendConn.eventLoop());
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren