2022-05-12 09:36:43 -04:00
|
|
|
CLASS net/minecraft/class_7472 net/minecraft/network/packet/c2s/play/CommandExecutionC2SPacket
|
|
|
|
COMMENT A packet used to execute commands on the server.
|
|
|
|
COMMENT
|
2022-05-23 08:07:30 -04:00
|
|
|
COMMENT <p>This truncates the command to at most 256 characters before sending to the
|
|
|
|
COMMENT server on the client. If the server receives the command longer than 256 characters,
|
|
|
|
COMMENT it will reject the message and disconnect the client.
|
2022-05-12 09:36:43 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT <p>If the command contains an invalid character (see {@link
|
2022-07-15 10:12:43 -04:00
|
|
|
COMMENT net.minecraft.SharedConstants#isValidChar}) or if the server receives
|
2022-07-06 07:57:17 -04:00
|
|
|
COMMENT the commands in improper order, the server will reject the command and disconnect
|
|
|
|
COMMENT the client.
|
2022-05-12 09:36:43 -04:00
|
|
|
COMMENT
|
2022-07-15 10:12:43 -04:00
|
|
|
COMMENT <p>Commands that took more than {@link
|
|
|
|
COMMENT net.minecraft.network.message.SignedMessage#SERVERBOUND_TIME_TO_LIVE}
|
2022-07-06 07:57:17 -04:00
|
|
|
COMMENT to reach the server are considered expired and log warnings on the server
|
|
|
|
COMMENT if it contains signed message arguments. If the message takes more than
|
2022-07-15 10:12:43 -04:00
|
|
|
COMMENT {@link net.minecraft.network.message.SignedMessage#CLIENTBOUND_TIME_TO_LIVE} to
|
|
|
|
COMMENT reach the clients (including the time it took to reach the server), the message
|
|
|
|
COMMENT is not considered secure anymore by the clients, and may be discarded depending
|
|
|
|
COMMENT on the clients' options.
|
2022-05-12 09:36:43 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT @see net.minecraft.client.network.ClientPlayerEntity#sendCommand
|
|
|
|
COMMENT @see net.minecraft.server.network.ServerPlayNetworkHandler#onCommandExecution
|
2022-05-23 08:07:30 -04:00
|
|
|
FIELD comp_809 timestamp Ljava/time/Instant;
|
2022-07-08 09:17:43 -04:00
|
|
|
METHOD <init> (Ljava/lang/String;Ljava/time/Instant;JLnet/minecraft/class_7450;Z)V
|
2022-05-12 09:36:43 -04:00
|
|
|
ARG 1 command
|
2022-05-23 08:07:30 -04:00
|
|
|
ARG 2 timestamp
|
2022-07-15 10:12:43 -04:00
|
|
|
ARG 3 salt
|
|
|
|
ARG 5 argumentSignatures
|
|
|
|
ARG 6 signedPreview
|
2022-05-12 09:36:43 -04:00
|
|
|
METHOD <init> (Lnet/minecraft/class_2540;)V
|
|
|
|
ARG 1 buf
|
2022-05-23 08:07:30 -04:00
|
|
|
METHOD comp_809 timestamp ()Ljava/time/Instant;
|
2022-07-15 10:12:43 -04:00
|
|
|
METHOD method_43896 createSignedArguments (Lnet/minecraft/class_3222;)Lnet/minecraft/class_7448;
|
|
|
|
ARG 1 player
|