mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-02-17 15:39:30 +08:00
Don't require command to be signed to pass it through as-is
This commit is contained in:
parent
92c48507eb
commit
3b7ffa837e
@ -52,7 +52,7 @@ public class SessionCommandHandler implements CommandHandler<SessionPlayerComman
|
|||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
private MinecraftPacket forwardCommand(SessionPlayerCommandPacket packet, String newCommand) {
|
private MinecraftPacket forwardCommand(SessionPlayerCommandPacket packet, String newCommand) {
|
||||||
if (packet.isSigned() && newCommand.equals(packet.command)) {
|
if (newCommand.equals(packet.command)) {
|
||||||
return packet;
|
return packet;
|
||||||
}
|
}
|
||||||
return modifyCommand(packet, newCommand);
|
return modifyCommand(packet, newCommand);
|
||||||
|
Loading…
Reference in New Issue
Block a user