forked from SpigotMC/BungeeCord
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
9 changed files
with
51 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 0 additions & 111 deletions
111
protocol/src/main/java/net/md_5/bungee/protocol/packet/ClientCommandSigned.java
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
protocol/src/main/java/net/md_5/bungee/protocol/packet/UnsignedClientCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package net.md_5.bungee.protocol.packet; | ||
|
||
import io.netty.buffer.ByteBuf; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
import net.md_5.bungee.protocol.AbstractPacketHandler; | ||
import net.md_5.bungee.protocol.DefinedPacket; | ||
import net.md_5.bungee.protocol.ProtocolConstants; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@EqualsAndHashCode(callSuper = false) | ||
public class UnsignedClientCommand extends DefinedPacket | ||
{ | ||
|
||
private String command; | ||
|
||
@Override | ||
public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) | ||
{ | ||
command = readString( buf, 256 ); | ||
} | ||
|
||
@Override | ||
public void write(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) | ||
{ | ||
writeString( command, buf ); | ||
} | ||
|
||
@Override | ||
public void handle(AbstractPacketHandler handler) throws Exception | ||
{ | ||
handler.handle( this ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters